Neareyn

Villager
Member
Joined
Apr 21, 2021
Messages
19
Reaction score
3
First Language
German
Primarily Uses
RMMZ
Hey!

I plan a feature in my game which allows the player to get a random Item in a dungeon. The item will be collectable from a chest and the player can enter the dungeon multiple times to get more items, but never more than one time.

But I couldn't figure out how I can randomize the loot and how I can disable an item that the player already has (I tried to do it with switches and simple eventing but it didn't worked)

So I think I need is a plugin that allows me to get a random event from a trigger, but disable events if a certain switch is off/on.
 

Aerosys

Veteran
Veteran
Joined
Apr 23, 2019
Messages
551
Reaction score
530
First Language
german
Primarily Uses
RMMZ
So you want to get random items, but don't get an item twice? I think you can do this with eventing

Code:
loop
  Set Variable "random" as random number
  If Condition random = 1
    if Condition: Party has item "fiery sword"
      do nothing
     else
      gain item "fiery sword"
      break loop
  If Condition random = 2
    If Condition: Party has item "magical cloak"
      do nothing
    else
      gain item "magical cloak"
      beak loop
end loop

Be aware this eventing will break the game if you have all items from the list.
 

Neareyn

Villager
Member
Joined
Apr 21, 2021
Messages
19
Reaction score
3
First Language
German
Primarily Uses
RMMZ
Thank you very much! I will try it out later.
Can I use it as a common Event so it works with multiple maps?
 

Aerosys

Veteran
Veteran
Joined
Apr 23, 2019
Messages
551
Reaction score
530
First Language
german
Primarily Uses
RMMZ
With some adjustments, yes for sure.
 

slimmmeiske2

Little Red Riding Hood
Global Mod
Joined
Sep 6, 2012
Messages
8,468
Reaction score
5,596
First Language
Dutch
Primarily Uses
RMXP

I've moved this thread to MZ Support. Please be sure to post your threads in the correct forum next time. Thank you.

 

Latest Threads

Latest Posts

Latest Profile Posts

Pretty much stopped posting in the progress thread cuz it feels like talking to the void, lol, so I've just been posting on IG instead. But someone finally liked my post there, lol. Dunno if I'll continue tho. Probably not xD

My game's progressing quite well. Just kinda stuck on mapping right now. Decided to go the side, slightly top down view route. I'm drawing everything from scratch for a personal touch uwu
Stomach isn't feeling too good last time. Perhaps something I ate
Phew! logged back. Seems I was too occupied with 3D learning (yeah for RPGM purposes) creating IRL space, trying to grow catnip, dealing with health and DC is good. (so MrC) ^^
Tyler.stewart wrote on Cherry's profile.
I was wondering if you've heard anything about the patch that allows you to show text anywhere on the screen utilizing pictures being upgraded to work with the official 2k3 release? Your work with 2k3 is awesome dude, keep it alive. I'm 33 and am still playing with 2k3 largely thanks to your work with the game engine. I appreciate the official patch updates you post. Please continue posting
Currently trying to add items in the same style as Kyrise's excellent icons. I like having a large variety of items :3 KyriseandMe.PNG

Forum statistics

Threads
112,333
Messages
1,067,467
Members
145,973
Latest member
Arcanica
Top