Script Call Equivalent of Events

Thanks both of you for explaining this to me. It helped me a lot understanding what it actually does.

Thanks!

PS: What if I want to display a continuous value say for example from 1 - 20 of items...

how can I display it in the goods array? Should I do a loop or anything like that? Is there a function to display a range rather than calling them one by one?
Well, you could use a loop to add the elements to the array.

Code:
goods = []for id in 1..20  goods.push([0, id, 0])end
Well, you could use a loop to add the elements to the array.

goods = []for id in 1..20 goods.push([0, id, 0])end
awesome. Thanks!

PS: Now I have an on map shop because of you 🙂

Greatly appreciate your help.
Couldn't you have done that with the regular Shop Processing command?
No, because I wanted to place it in the menu and only happens when some events were triggered. Those items you can call rare, unique, special and all those. I was just confused how the goods work so I wasn't able to do it correctly. 🙂
Which is the equivalent of comment box?
Do you mean a comment in an event?


Or a text box?


If you look at any posted script you will see how comments are added to a script, right?


So I am not sure what you mean....
Yes, I mean the comment box of an event.

This:

[IMG]http://i5.minus.com/jb0isfn67tXWq9.PNG[/IMG]
There isn't one, because it doesn't execute anything.


This thread is about how to execute things via script that you would normally do via event commands - things that actually do something. A comment box doesn't DO anything, so it has no script equivalent.
Some scripts use the comment box for run. I asked the equivalent of the comment box to make use of these scripts without using an event, but another script directly.
Some scripts use the comment box for run. I asked the equivalent of the comment box to make use of these scripts without using an event, but another script directly.
Don't even try to go that route...

Look into the script in question to locate the functions and variables you want to call and call that directly - do not try to setup a data transfer by comments, as that will cause a lot more problems (depending on how the other script reads and analyses the comment) in the long run.
Don't even try to go that route...

Look into the script in question to locate the functions and variables you want to call and call that directly - do not try to setup a data transfer by comments, as that will cause a lot more problems (depending on how the other script reads and analyses the comment) in the long run.
Ok, I understand.

Thank you. 🙂
Is there a way to get an actor's level and put it into a variable?
Code:
$game_variables[x] = $game_actors[id].level
Replacing x with the variable number and id with the actor's id in the database.
thankies
Do you NEED to do this through scripts? Control Variables already lets you do this: Control Variables > Game Data > Actor's > Level
Do you NEED to do this through scripts? Control Variables already lets you do this: Control Variables > Game Data > Actor's > Level
*gasp*
How does one set weather effects through script calls?
Good thinking!

$game_map.screen.change_weather(type, power, duration)where type is :none, :rain, :storm, or :snow, and power and duration are what you would have set the sliders to on the box.
followed by Wait X Frames if you want it to halt processing until the weather is set.
Thanks Shaz!

Original thread: https://forums.rpgmakerweb.com/threads/script-call-equivalent-of-events.6248/