Im needing some help with a type of thing
im working on a "script" useing the skill battle system to beable to locate bolth the enemy ID and the troop enemy ID
ive got the enemy id figrued out but i am needing help with the troop enemy id... what i am needing is to find what place is the enemy on the list such as the first slime that is put into battle is id 1 second slime is id 2 so on and so on... and this is needed to beable to set a scrip to mercy the enmy on... any help will be gladly aprecated
Please give us a description of what you want to do instead of how you want to do this.
Because if my assumptions are correct, you don't need any script to remove an enemy without killing it, that is one of the default options in the game.
OK, that's a bit more complex - but I would still do it in a different way without using scripts.
Make an invisible (no icon, no texts) state "targeted for discussions" or however you name it, and apply that state to the target of the skill.
Then add as a second effect a call common event "discussion".
In that common event you can make one branch for every enemy checking if it has that state (conditional branch), and if yes have your show choices and show texts and whatevery you want. If you want to spare that enemy, have that common event a force action with the escape skill on that enemy.
ok ill try that
after trying that it works but only if one enemy is inflected with it... if it does bolth it kindof causes some probloms... cause a script i am needing to add to witch i completly looked over when doing that... im needing the 2nd one to be set to beable to add a script to set a "can mercy" thing to true. i dont even know if the script will work quite right due to that one item
most of the scripts use that enemy troop id code for it...
if there is any way to id the serten enemy troop that gets the effect then remove the effect right after that would be a nice fix
You don't want the enemy ID, you want the enemy index inside the troop - that is something different than the ID. Search for that, I don't know the exact name/code for it.
I've moved this thread to Learning RGSS. Please be sure to post your threads in the correct forum next time. Thank you.
That is the forum where such questions are better placed. Please also give a link to the script you're trying to use as that will determine which data you really need.