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



Users browsing this thread: 1 Guest(s)