Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
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
   Personal graph by actor zlsl 4 3,905 10-23-2021, 06:43 AM
Last Post: zlsl
   Multi Attack & Combo Display Keeroh 10 12,355 05-15-2017, 06:39 PM
Last Post: DerVVulfman
   Actor names in Quest Script jreagan406 5 7,680 03-07-2017, 08:06 AM
Last Post: JayRay
   [XP]Alternative Attack Algorithms by Xelias - need help with bug Geminil 0 2,956 02-06-2016, 07:56 PM
Last Post: Geminil
   Actor Graphic/Reflection Refuses to Update/Refresh penguwin 6 8,773 11-06-2014, 09:51 PM
Last Post: penguwin
   Enemy Transform w/ Minkoff Animated Battlers Kain Nobel 1 3,784 06-01-2014, 05:41 PM
Last Post: MechanicalPen
   Modifying Actor ID to Class ID for Advanced Individual Battle Commands Script NewHope 1 4,215 07-11-2012, 11:37 PM
Last Post: NewHope
   Repositioning the actor command window. MegaPowerNinja 4 8,624 04-12-2011, 05:21 AM
Last Post: MegaPowerNinja
   [RMXP] Actor Cloning dagarath 2 8,673 03-08-2011, 07:18 AM
Last Post: dagarath
   Ring Menu + Actor Train? Other party members dissapear... Shadowgaz 2 5,841 05-19-2009, 01:35 PM
Last Post: Shadowgaz



Users browsing this thread: