The RPG Maker Resource Kit

RMRK RPG Maker Creation => RPG Maker General => General Tutorials and Eventing => Topic started by: Zambaku on August 19, 2008, 04:54:08 PM

Title: Random item even trouble.
Post by: Zambaku on August 19, 2008, 04:54:08 PM
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?
Title: Re: Random item even trouble.
Post by: modern algebra on August 19, 2008, 10:08:11 PM
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.
Title: Re: Random item even trouble.
Post by: Zambaku on August 20, 2008, 08:22:30 AM
Cheers, mate. Works perfectly^^