Announcement

Collapse
No announcement yet.

"Random" questions

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

    "Random" questions

    -Is there anyway to make a script for something to happen planned/randomly? Say at a 50% interval or a 25%? I'm trying to create a spy character and thus feel the need to add a bit of unpredictability to the NPCs that "help" our brave hero out.

    -I was also thinking about making a breakdown for weapons so that there's a chance that you'll find a +10 Long Sword (75%) but there's a lesser chance to find a +12 Long Sword (15%) and possibly even a lesser chance to find a +15 Long Sword (10%), all in the same event! I know that this kind of thing was possible in RM1 (and is not possible in RM3) but I recently got RM2 and I haven't been able to figure this one out.

    -Is there any way to make a spell/skill that effects only the caster? I understand general magic rules (Curative spells hit any/all allies, etc.) but I was wondering if there is a (possibly premade?) spell that only directly changes the caster's status. For example, making a traditionally weak mage a stronger fighter, or allowing the construction of some sort of magical barrier to prevent dammage.

    -Can the opening text be limited? Is there anyway to make everybody in town open with "Welcome to Town!" except for, say the antagonist, who could care less that you feel welcome in town?

    I have the manual and I have the Prima guide thing as well, but I haven't really messed with either beyond making the "Blammo" quest thing. If answers can be found in either, please let me know!
    Last edited by MagusMartovich; 01-11-2007, 04:42 PM.
    A God from the Machine - Menander

    #2
    Re: "Random" questions

    Well for any random thing you can use the premade random number generator, which is accessible in the script command for storing a number to a variable. It's the ? operator. The operators available on that command are +, -, x, /, % (modulus aka remainder function), ? (random function). So just

    Data: Variable [Any Variable] = (Start #) ? (End #)

    Will pick a random number from [Start #, End #] (inclusive I believe). So to do chances like you want just pick a number from 0 to 100, then for a 75% chance see if the number is <= 75 (also picking >= 25 would be the same).

    For spells that only affect the caster this option is in the Direct Effect for the spell. It's in the guide on page 72, and you just access the custom tab of the Direct Effect and then the Target tab, then choose Disable Target Menu.

    Your last question is a resounding yes, and it's pretty easy. For the town members you make an event for each one, then have them all have the same apply Script, which will just print out Welcome to Town. Then make the antagonist have a different apply Script which displays some other message. Remember each script can be used with more than one event. Also remember that scripting is how most things get done, except in battle if you just want the default battle system (then it's direct effects). This should be somewhere in both the manual and guide.

    Like I said in the other post it seems you're still in beginner mode so I recommend switching to hard so you have access to all the options available in RPGM2.
    はじめまして。真(しん)の冷静(れいせい)です。どうぞよろしく。
    http://www.thetruecoolness.com/

    5198-2124-7210 Smash

    Comment


      #3
      Re: &quot;Random&quot; questions

      Is this your first game with this software?

      If so, I'd recommend you start smaller. I know it's hard to not want to put all your great ideas into action, but with the complexity of RPGM2, it's really quite necessary to get a handle on the basics of the system before you go ahead and create advanced scripts.

      I'd recommend creating a single town + dungeon adventure if you're new... you can learn how the create areas, dungoens, items, spells, etc this way and you'll have a cool little product to show off to your friends to boot. You then take what you've learned from that experience and start making your 'real' game.

      Just an idea.

      Comment


        #4
        Re: &quot;Random&quot; questions

        YES!!! It took about two weeks but someone finally answered my questions!

        It IS my first RPG with this RM, but I've already made a few "practice" runs. My main problem is that there is a lot to handle and the way things are organized (game-wise) hasn't sunk completely in yet.

        I've been running it in "Normal" because I was under the impression from another post that running in "Hard" would basically erase all the defaults from the game. I'm not too sure, but I kinda like the battle system and until I get a better idea I don't want that erased. Am I wrong about this?
        Last edited by MagusMartovich; 01-24-2007, 02:25 PM.
        A God from the Machine - Menander

        Comment


          #5
          Re: &quot;Random&quot; questions

          No, switching to hard mode does not erase any of the preset data.

          It's just if you start a new game on hard mode you don't get any of it, but switching once you're started a game will do nothing but open up the items not accessible before.
          はじめまして。真(しん)の冷静(れいせい)です。どうぞよろしく。
          http://www.thetruecoolness.com/

          5198-2124-7210 Smash

          Comment


            #6
            Re: &quot;Random&quot; questions

            Boo-Yah!!! (Well, I already know: I tried it lastnight) Now I can get all up in that-... game... I'm creating... yeah! I wish that I knew all this a few weeks ago, though...
            A God from the Machine - Menander

            Comment

            Working...
            X