RMRK is retiring.
Registration is disabled. The site will remain online, but eventually become a read-only archive. More information.

RMRK.net has nothing to do with Blockchains, Cryptocurrency or NFTs. We have been around since the early 2000s, but there is a new group using the RMRK name that deals with those things. We have nothing to do with them.
NFTs are a scam, and if somebody is trying to persuade you to buy or invest in crypto/blockchain/NFT content, please turn them down and save your money. See this video for more information.
Random item even trouble.

0 Members and 1 Guest are viewing this topic.

**
Rep: +0/-0Level 85
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?

*
Rep:
Level 97
2014 Most Unsung Member2014 Best RPG Maker User - Engine2013 Best RPG Maker User (Scripting)2012 Most Mature Member2012 Favorite Staff Member2012 Best RPG Maker User (Scripting)2012 Best MemberSecret Santa 2012 ParticipantProject of the Month winner for July 20092011 Best Use of Avatar and Signature Space2011 Best RPG Maker User (Scripting)2011 Most Mature Member2011 Favourite Staff Member2011 Best Veteran2010 Most Mature Member2010 Favourite Staff Member
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.

**
Rep: +0/-0Level 85
Cheers, mate. Works perfectly^^
« Last Edit: August 20, 2008, 08:36:31 AM by Zambaku »