Dorateen wrote:Could you use the Create Variable script command as part of your end of fight script? You could call the variable the name of a group of enemies and set the value to 1. Then you should be able to reference that variable later.
Not sure if that would do what you are looking to achieve.
It seems that I didn't explain myself clearly enough.
Let's say I have a map named "arena", there are one npc and two invisible enemy groups named "e1" and "e2" on the map. Avatar can talk to npc and by choice make "e1" or "e2" visible then fight them. Both group leaders of "e1" and "e2" have an end of fight script which heal (script#111) and hide (script#71) corresponding group. So Avatar could fight them again after talking to npc.
This module works fine now, but it's quite non-expandable. I don't want to set 20 different end of figth scripts for 20 enemy groups.
So what I want is a reusable end of fight script to add dead enemy groups or individual enemy to a variable. But it seems that a script capable of implementing this functionality does not exist yet.