Hello everyone of HBGames, I'm working on a game using the script XAS Heroes.
I've been working on this project for some time and haven't had any troubles so far. However I've stumbled on a problem that I can't get my head around.
Basically once I've killed a certain enemy in the game I want it to stay dead, so when a player returns to the previous map he isn't faced with the same enemies again. I've notice that the script already locates the event and uses an equivalent of the "erase event" event command, if that helps.
I don't want to use the 'Script Editor' -> 'BATTLER' -> 'DEFEAT_SWITCH_IDS' because they aren't bosses and I have hundreds of them around the map. Is there a way to perhaps turn on a self switch for certain enemies in regards to the same way a defeat_switch_id works?
Something like how the Defeat Switch IDs work as in example below
But turning on Self Switch instead depending on the enemy as in example below...
I wouldn't like this for all monsters just certain ones I add to the list (similar to how DEFEAT_SWITCH_IDS work)
If anyone has any suggestions or know of a solution that I would have over looked I would greatly appreciate it.
Your friend rpg-dutch
I've been working on this project for some time and haven't had any troubles so far. However I've stumbled on a problem that I can't get my head around.
Basically once I've killed a certain enemy in the game I want it to stay dead, so when a player returns to the previous map he isn't faced with the same enemies again. I've notice that the script already locates the event and uses an equivalent of the "erase event" event command, if that helps.
I don't want to use the 'Script Editor' -> 'BATTLER' -> 'DEFEAT_SWITCH_IDS' because they aren't bosses and I have hundreds of them around the map. Is there a way to perhaps turn on a self switch for certain enemies in regards to the same way a defeat_switch_id works?
Something like how the Defeat Switch IDs work as in example below
DEFEAT_SWITCH_IDS = {
7=>57,
18=>116,
26=>106,
27=>114,
31=>131,
35=>135,
39=>139,
42=>144,
40=>205,
45=>202,
46=>203
}
7=>57,
18=>116,
26=>106,
27=>114,
31=>131,
35=>135,
39=>139,
42=>144,
40=>205,
45=>202,
46=>203
}
But turning on Self Switch instead depending on the enemy as in example below...
DEFEAT_SELF_SWITCH_IDS = {
7=>A,
18=>B ,
26=>B,
27=>B,
31=>B
}
7=>A,
18=>B ,
26=>B,
27=>B,
31=>B
}
I wouldn't like this for all monsters just certain ones I add to the list (similar to how DEFEAT_SWITCH_IDS work)
If anyone has any suggestions or know of a solution that I would have over looked I would greatly appreciate it.
Your friend rpg-dutch