The RPG Maker Resource Kit

RMRK RPG Maker Creation => RPG Maker General => General Scripting => Topic started by: Jakexxx on April 14, 2006, 05:08:45 AM

Title: Calling a script?
Post by: Jakexxx on April 14, 2006, 05:08:45 AM
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?
Title: Re: Calling a script?
Post by: Zeriab on April 14, 2006, 12:06:23 PM
Just look here: http://www.dubealex.com/asylum/index.php?showtopic=2432
You can use them in the call script box.
Title: Re: Calling a script?
Post by: Jakexxx on April 14, 2006, 09:10:52 PM
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..?