Attack from an enemy to a actor as condinitional branch
#4
He's clearly asking for a script that returns true when the first enemy of a troop attacks Actor 17. He's ALSO asking for it to be a "battle trigger" in an event, which I am pretty sure is not possible. Events can run at the start of a turn, or skills can call them.

If you can make it work, its
Code:
actorAt = -1
for i in 0..$game_party.actors.count
    if $game_party.actors[i] == $game_actors[17]
        actorAt = i
    end
end
return $game_troop.enemies[1].current_action.target_index == actorAt

good luck!
Reply


Messages In This Thread
RE: Attack from an enemy to a actor as condinitional branch - by MechanicalPen - 07-02-2014, 10:51 PM

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



Users browsing this thread: 1 Guest(s)