06-30-2014, 07:44 PM
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:
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
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