Something like <save> that'll call a save point or something.
[XP] How would I use an event comment or event name to call a block in the rgss editor?
Learning Ruby and RGSSxWhat do you mean by "call a save point"? If you want to open the save window, just use the event command Call Save Screen.
Event comments and names don't get "called" at a specific time.
You might need to explain in more detail what you want it to do.
Event comments and names don't get "called" at a specific time.
You might need to explain in more detail what you want it to do.
I'm aware of how to do that. I'm trying to use RGSS to call code blocks using event comments or events names. Like if I were to do something like
class Scene_Map
alias Save_Initialize initialize
def initialize
@LocationsSaved = 0
end
Save_Initialize
alias Save_Update update
def update
if @LocationsSave > 100
*fanfare or something I dont know*
end
Save_Update
end
end
I'm sure it has something to do with Game_Event and/ or Interpreter, but I dont know how to actually make it so when I put <Save> in the title or in comment calls it'll actually go back to a code block in the editor.
Edit: I think I found a weird obvious solution. I used a script call... I mean, duh now that I think of it.
class Scene_Map
alias Save_Initialize initialize
def initialize
@LocationsSaved = 0
end
Save_Initialize
alias Save_Update update
def update
if @LocationsSave > 100
*fanfare or something I dont know*
end
Save_Update
end
end
I'm sure it has something to do with Game_Event and/ or Interpreter, but I dont know how to actually make it so when I put <Save> in the title or in comment calls it'll actually go back to a code block in the editor.
Edit: I think I found a weird obvious solution. I used a script call... I mean, duh now that I think of it.
Original thread: https://forums.rpgmakerweb.com/threads/xp-how-would-i-use-an-event-comment-or-event-name-to-call-a-block-in-the-rgss-editor.132242/