RMRK is retiring.
Server is paid up for the rest of 2026, but the forum may go after that. See here for more information. Please archive or save anything you would like to keep before 2027.
Main Menu
  • Welcome to The RPG Maker Resource Kit.

Calling a script?

Started by Jakexxx, April 14, 2006, 05:08:45 AM

0 Members and 1 Guest are viewing this topic.

Jakexxx

The call script function...

1. Can it be used to change variables within a script (EX:A day night script ... changing the hour of the day variable.)

2. What would the syntax be to call a script like this?

Zeriab


Jakexxx

That page helps a little, but I still do not get how to change it from a call event.

I will give what I need here -


The script is called game_time    it has variables that manage how long each how is, the year, etc.

I think the current hour addition is done with this command...

def add_hours(hours)
@minutes +=hours*@hour_length
end


How would I make a call event to change the hour of the day..?