Attack from an enemy to a actor as condinitional branch
#1
First of all: Hi... Im new here in this forum and just signed in because i've a huge problem. Im using the rpg xp maker since 6 years but im a total noob in scripting.

I need a script query, so when a enemy troop with the id 1 attacks the actor with the id 17. I need this as a script in the condinational branch, so I can use it as an trigger in a battle.


What I mean is this: If monster 1 from the enemy troops (there can only be 8 enemies) attacks actor with the id 17 or uses a phy, skill or a magical skill against the actor with he id 17.
I need this as an script in the condinational branch.

I tried this one:
Code:
$game_troop.enemies[1].action.target_$game_actors[17]

Very important: The trigger should also happen when the user is attacked with magical, physicla skill or just normal attacks.

but it doesnt work at all.. I made this trigger, so that if this is triggered the actor 17 will use the skill fire.

I only get a nomethoderror. Undefined method action for nil class


Without this, I cant continue my projet...

Thanks in advance
Reply


Messages In This Thread
Attack from an enemy to a actor as condinitional branch - by Djigit - 06-30-2014, 07:44 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
   Lead Actor Swapper script error Ace_V 25 2,054 09-07-2025, 01:22 PM
Last Post: DerVVulfman
   Actor Voices by diamondandplatinum3, note-tag commands not working! Starmage 1 617 08-04-2025, 09:02 AM
Last Post: Starmage
   Personal graph by actor zlsl 4 8,012 10-23-2021, 06:43 AM
Last Post: zlsl
   Multi Attack & Combo Display Keeroh 9 17,720 05-15-2017, 06:39 PM
Last Post: DerVVulfman
   Actor names in Quest Script jreagan406 5 11,492 03-07-2017, 08:06 AM
Last Post: JayRay
   [XP]Alternative Attack Algorithms by Xelias - need help with bug Geminil 0 4,424 02-06-2016, 07:56 PM
Last Post: Geminil
   Actor Graphic/Reflection Refuses to Update/Refresh penguwin 6 12,425 11-06-2014, 09:51 PM
Last Post: penguwin
   Enemy Transform w/ Minkoff Animated Battlers Kain Nobel 1 5,277 06-01-2014, 05:41 PM
Last Post: MechanicalPen
   Modifying Actor ID to Class ID for Advanced Individual Battle Commands Script NewHope 1 5,900 07-11-2012, 11:37 PM
Last Post: NewHope
   Repositioning the actor command window. MegaPowerNinja 4 11,351 04-12-2011, 05:21 AM
Last Post: MegaPowerNinja



Users browsing this thread: 1 Guest(s)