hey people, im having an issue relating to my teleporting function, i have got it to work, what im trying to do now is make it so i can disable the selection to teleport, i have tryed making it like how the save option is disabled, heres what i have got,
i added this to Game_System:
attr_accessor :tele_disabled
then i added this to the initialization in game_system:
then i add into my script if conditions checking if the tele option is disabled or not, and i enable and disable it in an event like so:
@>condition branch: script: $game_system.tele_disabled == true @>text: enable teleport?
@>choices: yes, no
: when [yes]
@>script: $game_system.tele_disabled = false
: when [no]
@>
: branch end
@>
: Else @>text: disable teleport?
@>choices: yes, no
: when [yes]
@>script: $game_system.tele_disabled = true
: when [no]
@>
: branch end
@>
: branch end@>
------------
the problem im having with this is when the game first starts up the teleporting is enabled and works fine, then when i activate the event to enable or disable it i can disable it fine, and it disables in the menu, then when i activate the event again it reconizes that teleporting is disabled and asks if you want to enable it, when i choose the option yes i the game hangs, it does not crash just hangs :/