PDA

View Full Version : Scripting For Programmers


ReverendWolf
09-02-2007, 12:43 AM
hello, everyone.

during my initial learning curve of RPGM2 i've been looking hard at the scripts. I haven't seen anything like what i'm about to ask, but i ask simply because i have moderate programming experience.

what i'm asking is, can strings be peiced together (concantenated) to form script calls, or is everything point and click to specific script names?

thetruecoolness
09-02-2007, 03:15 AM
hello, everyone.

during my initial learning curve of RPGM2 i've been looking hard at the scripts. I haven't seen anything like what i'm about to ask, but i ask simply because i have moderate programming experience.

what i'm asking is, can strings be peiced together (concantenated) to form script calls, or is everything point and click to specific script names?

If only the system were that powerful *sigh*. But yeah there is no way to call a script by name, closest thing is to use the sort command on an Input variable to call various scripts based on the input (Sort is essentially a switch/case statement).

You can however make loops, and wait/spin locks. Another thing to keep in mind is that action scripts are like threads. Something I wish I would have known in the beginning.

ReverendWolf
09-02-2007, 03:21 AM
wonderful. thanks for the answer. that's going to help immensly with my pseudo-code.

one more question, and i'm sure it's answered in the manual, but sadly my ebay seller couldn't provide me with one.

what are the applicable differences between the different script types?

basically, why would i want to use an action script over a content script and vice versa?

thetruecoolness
09-02-2007, 03:28 AM
wonderful. thanks for the answer. that's going to help immensly with my pseudo-code.

one more question, and i'm sure it's answered in the manual, but sadly my ebay seller couldn't provide me with one.

what are the applicable differences between the different script types?

basically, why would i want to use an action script over a content script and vice versa?

Well some commands are not possible in action scripts (you can find them out by making an action script and going through the menus). Basically a content script is non-concurrent, meaning nothing else can run while it is running (unless called from that script). Action scripts like I said are like threads, so they run concurrently and can be used to keep track of time, weather, event movement and things like that, and can keep running along with other action scripts concurrently. Content scripts for the most part are only fired when an event is touched or interacted with (and are also used for the square button event, most system events, and map enter exit events), action events start immediately when one enters a map (after all map enter and auto content scrips have run) but are paused when a content script is executing.

ReverendWolf
09-02-2007, 03:42 AM
fantastic. thanks again for the info. i'd been wondering about the difference, especially since the little experimental scripts i'm trying to learn with run no differently in either mode.

oh man...scripting this is going to be a blast once i figure out what in sam-hill i'm doing. ha, ha, ha...

Rodak
09-02-2007, 05:05 AM
You sound ready for Dungeon Warden's Advanced FAQ!

It's better than the manual!

Here: http://www.rpgmpavilion.com/index.php?page=rm2tutorial

Dont miss The Final Rune's Map Editor Guide on that same page.

And just to be Egotistical - Check out my own VFX Editor Guide linked to in my Signature.

Between all those, the manual is almost worthless.

Prima's Strategy Guide is not very informative, but has lots of nice Pictures of Everything. So if you see that cheap, grab it too.

Have Fun!

Peacehttp://i16.photobucket.com/albums/b41/Rodak/peace.gif