Hi all, I have a skill idea that would make a second enemy attack only if that second enemy is a specific enemy id. Basically what I would need to know is how to write an if statement that would go something like:
If (enemy troop member "x" is equal to enemy_id "x")
{
do stuff
};
For the most part i know how to get this to work but the only thing i need is the Enemy troop member and enemy_id scripts. If anyone can help it would be greatly appreciated.
Additionally, If anyone know how to check the casters enemy_id, that would also be helpful.
Example based on above:
If (enemy troop member "x"'s enemy_id is equal to casters enemy_id )
{
do stuff
};
I was thinking that if I could do it that way, the same skill could be used by other enemies without having to make a second skill.
If (enemy troop member "x" is equal to enemy_id "x")
{
do stuff
};
For the most part i know how to get this to work but the only thing i need is the Enemy troop member and enemy_id scripts. If anyone can help it would be greatly appreciated.
Additionally, If anyone know how to check the casters enemy_id, that would also be helpful.
Example based on above:
If (enemy troop member "x"'s enemy_id is equal to casters enemy_id )
{
do stuff
};
I was thinking that if I could do it that way, the same skill could be used by other enemies without having to make a second skill.