Main Menu
  • Welcome to The RPG Maker Resource Kit.

Random Items [resolved]

Started by GhstHawk, April 01, 2007, 09:02:41 PM

0 Members and 1 Guest are viewing this topic.

GhstHawk

I'm working on a game in which items are made from boiling herbs found in the environment.

Is it possible to make a script which allows you to randomly find items on the ground? Like 1 out of 2-3 maps you find a item lying on the ground and you walk up to it and pick it up. I'd need it to also to only have certain items allowed to be found, and maybe to perform a check whether the map is bigger than 20x15 (my standard inside building size) before it creates the item.
Secret of the Summit: [Working Title]
Scripts: nearly complete (need skill shop)
Storyline: complete
Database: 50%
Game Progress: 10%


Halestorm5

Just make events player touch and make the events move quick as hell away from the character. I think thatll work.

modern algebra

#2
It's possible with events. It requires variables. Basically all you have to do is have a paralell process event in the maps where you want it to be possible, and you want this paralell process to randomize a variable. Then, you give it whatever chance you want this item to appear on the map. If it is, then you just make it appear and become an option. Here is a demo. In order to demonstrate the pseudo randomness I only gave it a 1/6 probability that it won't appear, but it's easy to increase randomness or decrease it.



GhstHawk

I was hoping to avoid events to make it less tedious, but I actually didn't think of having a parallel process to create the variables. I think I'm going to use Common events also to make it quicker.
Thank you.
Secret of the Summit: [Working Title]
Scripts: nearly complete (need skill shop)
Storyline: complete
Database: 50%
Game Progress: 10%