1 year ago

You can change self switches of other events on the map with these script calls in VX Ace:


$game_self_switches[[@map_id, id, 'A']] = true

In id you put the Event ID of the event you want to change the switch of. @map_id can be left like that, as it will automatically put the current Map ID in it, but you can still replace it with any other Map ID number to change the self switch of an event in a different map.
example:

$game_self_switches[[124, 5, 'A']] = true

The letter A is for Self Switch A. You can use the letters A-D which are all the self switches you can use for an event.

If you want to check if a self switch of a different event is turned on or off, use this in a conditional branch:

$game_self_switches[[$game_map.map_id, 17, "A"]] == false

This would check if Event 17 has Self Switch A turned off on the current map.
($game_map.map_id & @map_id are pretty much the same thing, but $game_map.map_id can be used in other scenes as well, like in the menu or in battles.)

$game_self_switches[[21, 4, "C"]] == true

And this would check if Event 4 on Map 21 has Self Switch C turned on.

In case you want to turn many self switches of several different events off or on, use this in a script call to make the process faster:

ids = (3..14).to_a

ids.each do |id|

$game_self_switches[[@map_id, id, 'A']] = true

end

this switches on self switch A for all the events with an ID number from 3-14.

#scripting #rpgmakervxace #rpgmaker



1 comment

Loading...

Next up

Enemies are animated now.

Menu Transitions. Might still need some changes.

Savefiles from the demo are now compatible with the Fullversion + the demo can be played in 2 other languages now: German and Simplified Chinese.

Valdrich and the chaos in the city Which was not provoked by him. He would never waste all that blood. #pixelart #rpgmaker

Made a customizable Navigation Arrow that rotates around the player and points them to the next story location.

RMV Tutorial #01: RTP Houses/Buildings

Check article for Tutorial info!

Here's title intro cutscene + title screen + system options screen.

Two people staring at each other with wrathful hate always makes for the best scenes to conform them to for all eternity. 🤩

To celebrate 650 members in this community, I made 50 fanworks for games (And an animation for the deception jam winner), each for a person that I vaguely remember seeing a post of here. (in case your name doesn't get mentioned mb)

Hello, everyone! The second chapter of Divine Disports has been released! The forests of Enderaen are swarming with monsters as the kingdom of Mesfahld prepares for war... While a lonely mercenary sets out on his journey. I hope you'll like the chapter!

Making editable diary entries in Y/N's diary.