Trigger/JASS (not sure which is needed) for random item spawn

Holygiant

Active Member
Reaction score
1
So I need to make a trigger in which, every 30 seconds, a random custom item spawns in the center of my region, however if there's already an item in the region then an item won't be made.

How can I do this? Thanks for any help :)
 

Gistergingol

New Member
Reaction score
1
this should work:

View attachment fh.bmp

if the image quality is low i explain you,

-Events
---Time - Every 30 seconds of game time

-Conditions

-Actions
---if (((Last created Item) is in XXX <<gen>>) Equal to TRUE) then do (Do nothing) else do (Item - Create Random Item at (Center of XXX <<gen>>))


I tested this and it works correctly... unless you add more triggers that create items in that region, in that case this trigger would be messed up.

P.S.
to create random custom items, just add ur custom items to an item group, and then instead of Create Random item, use the command Create Random Item in Item Group.
Hope i helped :D
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Staff online

      • Ghan
        Administrator - Servers are fun

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top