Hello,
I cannot figure this out myself so I need your help :|
I need to add some basic functionality to Khas' SAS IV script. Enemies are present on the map as events in this system.
I would like the enemy event self-switch B to toggle when getting hit by the player.
I'm not sure if it helps but here is my research so far:
Due to Khas' request I cannot post his script here directly...
Here is a thread he made:
http://forums.rpgmakerweb.com/index.php?/topic/4918-sapphire-action-system-iv/
If somebody is willing to help out, I have copies of Fez and Bastion on Steam and I will give you the one you want as a 'thank you' 🤘
+ I would already like to thank Shaz for giving me advice to use self-switches! I think this is the way to go 🙂
I cannot figure this out myself so I need your help :|
I need to add some basic functionality to Khas' SAS IV script. Enemies are present on the map as events in this system.
I would like the enemy event self-switch B to toggle when getting hit by the player.
I'm not sure if it helps but here is my research so far:
Khas used self-switch A (by default) to toggle enemies' death. From what I understand it looks like this:$game_self_switches[[$game_map.map_id, @id, 'A']] = trueIf I got it right, @id is a variable that stores event's ID.
I tried entering various things around line 1468 (where I think attacks are processed) and it worked properly.
Yet when I enter
$game_self_switches[[$game_map.map_id, @id, 'B']] = trueit doesn't work :| I'm probably doing something wrong with that @id variable, but my Ruby-fu skills are not good enough to fix this.
I tried entering various things around line 1468 (where I think attacks are processed) and it worked properly.
Yet when I enter
$game_self_switches[[$game_map.map_id, @id, 'B']] = trueit doesn't work :| I'm probably doing something wrong with that @id variable, but my Ruby-fu skills are not good enough to fix this.
Here is a thread he made:
http://forums.rpgmakerweb.com/index.php?/topic/4918-sapphire-action-system-iv/
If somebody is willing to help out, I have copies of Fez and Bastion on Steam and I will give you the one you want as a 'thank you' 🤘
+ I would already like to thank Shaz for giving me advice to use self-switches! I think this is the way to go 🙂