RPG Maker Forums

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:

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.
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'  :rock-left:

+ I would already like to thank Shaz for giving me advice to use self-switches! I think this is the way to go :)

Latest Threads

Latest Profile Posts

Our latest feature is an interview with... me?!

People4_2 (Capelet off and on) added!

Just beat the last of us 2 last night and starting jedi: fallen order right now, both use unreal engine & when I say i knew 80% of jedi's buttons right away because they were the same buttons as TLOU2 its ridiculous, even the same narrow hallway crawl and barely-made-it jump they do. Unreal Engine is just big budget RPG Maker the way they make games nearly identical at its core lol.
Can someone recommend some fun story-heavy RPGs to me? Coming up with good gameplay is a nightmare! I was thinking of making some gameplay platforming-based, but that doesn't work well in RPG form*. I also was thinking of removing battles, but that would be too much like OneShot. I don't even know how to make good puzzles!
one bad plugin combo later and one of my followers is moonwalking off the screen on his own... I didn't even more yet on the new map lol.

Forum statistics

Threads
106,035
Messages
1,018,454
Members
137,821
Latest member
Capterson
Top