Announcement

Collapse
No announcement yet.

Scripting For Programmers

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Scripting For Programmers

    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?
    One hoopy frood who always has his towel.

    #2
    Re: Scripting For Programmers

    Originally posted by ReverendWolf View Post
    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.
    Last edited by thetruecoolness; 09-02-2007, 02:16 AM.
    はじめまして。真(しん)の冷静(れいせい)です。どうぞよろしく。
    http://www.thetruecoolness.com/

    5198-2124-7210 Smash

    Comment


      #3
      Re: Scripting For Programmers

      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?
      One hoopy frood who always has his towel.

      Comment


        #4
        Re: Scripting For Programmers

        Originally posted by ReverendWolf View Post
        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.
        Last edited by thetruecoolness; 09-02-2007, 02:30 AM.
        はじめまして。真(しん)の冷静(れいせい)です。どうぞよろしく。
        http://www.thetruecoolness.com/

        5198-2124-7210 Smash

        Comment


          #5
          Re: Scripting For Programmers

          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...
          One hoopy frood who always has his towel.

          Comment


            #6
            Re: Scripting For Programmers

            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!

            Peace

            MOO!




            Comment

            Working...
            X