RMRK is retiring.
Server is paid up for the rest of 2026, but the forum may go after that. See here for more information. Please archive or save anything you would like to keep before 2027.
Main Menu
  • Welcome to The RPG Maker Resource Kit.

Random item even trouble.

Started by Zambaku, August 19, 2008, 04:54:08 PM

0 Members and 1 Guest are viewing this topic.

Zambaku

I'm trying to create an event that basically gives the player a random item by the use of variables.
This is how I want it to work: Each time the player enters the map this event randomly chooses between a number between 1-3 in order to see what item the player should get and choose an apropriate icon. If a sword is selected it's portraited by a sword, if a book is chosen a book will be the portrait and so on and so on. However I can't get this to work properly. You see, the event is scrolling between the icons it will use continuesly. How do I prevent that from happening?

modern algebra

That sounds strange. Anyway, this should work:

The Event
  Page 1: Parallel Process, No Conditions, No Graphic
    Control Variables : Random (1-3)
 
  Page 2: Action Button, Variable > 0, Sword Graphic
    Give Sword

  Page 3: Action Button, Variable > 1, Book Graphic
    Give Book


Etc... That ought to work. You'll need to delete the event at the end there too.

Zambaku

#2
Cheers, mate. Works perfectly^^