RPG Maker Forums

....

@menu1.set_handler:)task, method:)command_task))
@menu1.set_handler:)folmagi, method:)command_folmagi))
@menu1.set_handler:)folbruti, method:)command_folbruti))
@menu1.set_handler:)cancel, method:)return_scene))
end

def freezefix
@menu1.active = true
end

def command_task
$game_temp.reserve_common_event(1)
freezefix
end


This is a cutout from me learning rgss3 scripting. I am currently learning how to script an menu.
Anyway, I am having  trouble understanding what controls the flow of when the command event I am calling is ran at.
This part:
 


def command_task
$game_temp.reserve_common_event(1)
freezefix
end


I want the common event to be run directly when that method is called. At the moment the common event is executed after i have exited my custom menu.
Does anyone know how I can get the common event to be executed directly so I do not have tp close my menu in game for it to run?


Sorry for bad english :/

Latest Threads

Latest Profile Posts

Frostorm wrote on Featherbrain's profile.
Hey, so what species are your raptors? Any of these?
... so here's my main characters running around inside "Headspace", a place people use as a safe place away from anxious/panic related thinking.
Stream will be live shortly! I will be doing some music tonight! Feel free to drop by!
Made transition effects for going inside or outside using zoom, pixi filter, and a shutter effect
I have gathered enough feedback from a few selected people. But it is still available if you want to sign up https://forums.rpgmakerweb.com/index.php?threads/looking-for-testers-a-closed-tech-demo.130774/

Forum statistics

Threads
105,992
Messages
1,018,189
Members
137,771
Latest member
evoque
Top