Site hosted by Angelfire.com: Build your free website today!

Miscellaneous FAQ

by MasterSean2k



I) Why?
II) My event keeps repeating...
III) The Death Event- Battles
IV) The Death Event- Conditions
V) Temporary Removal of Items
Credits


Please note: Rather than explaining how each thing works, I am giving examples of features that can be included in a game without including the raw code. I hope that these inspire you to experiment and play around with switches and variables.


I. Why?

-> Why make this FAQ? <-
Recently on the RM2k Forums, there has been a flood of n00bish questions. Hopefully this will answer some of them and prevent the gurus from wasting their time.

-> What's a n00b? <-
A person/entity who has the ability to find the answer to a simple and common question, yet is unwilling to do so. Not to be confused with newbie. If anyone from the RM2k World Forum wishes to correct me, send me an e-mail.

-> What's a newbie? <-
A person/entity who has recently obtained RM2k or who does not know all the basics.

-> What's a guru? <-
One who specializes in a certain field. (Ex. Coding, graphics, music, maps, stories...)


II. My event keeps repeating...

{You need a switch OR a variable}

You have an event that starts but repeats...
--------------------
[Solution 1]

  1. At the end of your event, turn on any switch.

  2. Create a second page for the event activated by the switch. Set it to push key.


[Solution 2]

  1. Try the above step using a variable.


[Solution 3]

  1. If you plan on never returning, teleport to another map.


[Solution 4]

  1. After the event commands, use Clear Timer.



III. The Death Event- Battles

{You need 8 variables and 1 switch}

You lose a battle and it's game over. Or is it? Use this to set it up so that when your party dies, you reappear somewhere else rather than face the music.
--------------------

  1. First when you teleport from a town map, set a switch and Variable6 (Keep it simple like 1 = world map monsters, 2 = Monsters in dungeon 1, 3 = Monsters in forest, etc.) When you enter a town or monsterless place, turn the switch off and set all the variables to zero.
  2. In the Database make a Parallel Process Event (Activated by the switch)
    • Randomize Variable8 (10-20 would be alright)
    • Label 1
    • Set Variable1 to the hero's X position.
    • Set Variable2 to the hero's Y position.
    • Wait 0.1sec
    • Set Variable3 to the hero's X position.
    • Set Variable4 to the hero's Y position.
    • Make a Fork Condition (Variable1 not equal to Variable3)
      (In the fork)
      • Add 1 to Variable5
      (In the Else case)
      • Make a Fork Condition (Variable2 not equal to Variable4)
        (In the fork)
        • Add 1 to Variable5
    • Make a Fork Condition (Variable5 = Variable8)
      (In the fork)
      • Make a Fork Condition (Variable6 = 1)
        (In the fork)
        • Set Variable7 to random (1-the number of different monsters in the area)
        • Make a Fork Condition (Variable7 = 1)
          (In the fork)
          • Start Combat (ex. slime)
          • Victory= nothing
          • Defeat Case= teleport (maybe to town)
          • Set Variable1 to zero.
          • Set Variable2 to zero.
          • Set Variable3 to zero.
          • Set Variable4 to zero.
          • Set Variable5 to zero.
          • Set Variable6 to zero.
          • Set Variable7 to zero.
          • Set Variable8 to zero.
          • Turn off the switch.
          (In the Else case)
          • Make a Fork Condition (Variable7 = 2)
            (In the fork)
            • Start Combat (ex. wolf)
            • Victory= nothing
            • Defeat Case= teleport (maybe to town)
            • Set Variable1 to zero.
            • Set Variable2 to zero.
            • Set Variable3 to zero.
            • Set Variable4 to zero.
            • Set Variable5 to zero.
            • Set Variable6 to zero.
            • Set Variable7 to zero.
            • Set Variable8 to zero.
            • Turn off the switch.
          • Repeat as many times as necessary.
      (In the Else case)
      • Make a Fork Condition (Variable6 = 2)
        (In the fork)
        • Set Variable7 to random (1-the number of different monsters in the area)
        • Make a Fork Condition (Variable7 = 1)
          (In the fork)
          • Start Combat (ex. bats)
          • Victory= nothing
          • Defeat Case= teleport (maybe to town)
          • Set Variable1 to zero.
          • Set Variable2 to zero.
          • Set Variable3 to zero.
          • Set Variable4 to zero.
          • Set Variable5 to zero.
          • Set Variable6 to zero.
          • Set Variable7 to zero.
          • Set Variable8 to zero.
          • Turn off the switch.
          (In the Else case)
          • Make a Fork Condition (Variable7 = 2)
            (In the fork)
            • Start Combat (ex. rock golem)
            • Victory= nothing
            • Defeat Case= teleport (maybe to town)
            • Set Variable1 to zero.
            • Set Variable2 to zero.
            • Set Variable3 to zero.
            • Set Variable4 to zero.
            • Set Variable5 to zero.
            • Set Variable6 to zero.
            • Set Variable7 to zero.
            • Set Variable8 to zero.
            • Turn off the switch.
          • Repeat as many times as necessary.
    • Wait 0.0sec (to reduce lag)
    • Go to Label 1

**It is extremely important that you turn off the switches, or else you'd be able to fight world map monsters in the middle of a town. And setting the variables to zero is a saftey in case you don't turn off the switch; The location variable (Variable6) will be blank, therefore preventing battling monsters if the switch is accidentally left on.


IV. The Death Event- Conditions

{You need nothing}

So the jellyfish poisoned you in battle and your HP is degrading with every step. When you eventually die, you want to go back to town, but this seems impossible. But there's no need to die at all. In fact, it a party member falls in battle, he can have 1HP when the battle's over, rather than death!
--------------------
  1. Go into the Database and select Conditions.
  2. For every one, change "Field Condition" to "Battle Condition."


V. Temporary Removal of Items

{You need a lot of variables}

For a little while, you want to play as a different character. It's not fair that he starts out with all of the items collected previously. But you can't get rid of them permanently because you want to play as the first character again later.
--------------------
[Removing the items/money]
  1. Make an event and double-click the Event Commands
    • Set Variable1 to the amount of item1 that you carry.
    • Set Variable2 to the amount of item2 that you carry.
    • Set Variable3 to the amount of item3 that you carry.
    • Repeat as necessary.
    • Set the variable after all the items to the amount of money you have.
    • Decrease the quantity of item1 by Variable1.
    • Decrease the quantity of item2 by Variable2.
    • Decrease the quantity of item3 by Variable3.
    • Repeat as necessary.
    • Set money to zero.
[Returning the items/money]
  1. Make an event and double-click the Event Commands
    • Increase the quantity of item1 by Variable1.
    • Increase the quantity of item2 by Variable2.
    • Increase the quantity of item3 by Variable3.
    • Repeat as necessary.
    • Set money to the money variable mentioned above.


Credits
--------------------
If you wish to use this tutorial/FAQ on your website, you must link directly from your website to this document (https://www.angelfire.com/rpg2/mastersean2k/misc_faq.html) unless given permission.

Written by MasterSean2k.
mastersean2k@hotmail.com
http://mstuff.s5.com
© 2002 by MasterSgameS

RM2k by ASCII
RM2k translationby Don Miguel