• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

Create Item Spawner

Status
Not open for further replies.
Level 4
Joined
Feb 9, 2014
Messages
32
Hello, I am quite bad at triggering and I am looking for some help.
I am creating an arena map and I would like to make Items(potions) that I've created spawn in random points of certain regions as a periodic event.

To avoid having items stack, it would also be nice if it was possible to make the timer for when a item spawn start when a item of the same type is picked up.(I would then have placed out item at the start, and then I would want the same item spawn in same position x time after it has been picked)

I've tried to find a tutorial or similar text to help me but not found one. If anyone know where I can find information about this or would like to tell me about it, that would help me out a lot, and maybe it could help other people in the future if they find this thread.

I apologize if there already is an answer to my question and I not found it. If this is not too complicated I really would appreciate some help :pgrin:
/Danor
 
Level 11
Joined
Jan 23, 2015
Messages
788
  • SpawnItems
    • Events
      • Time - Elapsed game time is 5.00 seconds
    • Conditions
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Potion[1] is in Region 000 <gen>) Equal to False
        • Then - Actions
          • Item - Create Minor Replenishment Potion at (Random point in Region 000 <gen>)
          • Set Potion[1] = (Last created item)
        • Else - Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Potion[2] is in Region 001 <gen>) Equal to False
        • Then - Actions
          • Item - Create Minor Replenishment Potion at (Random point in Region 001 <gen>)
          • Set Potion[2] = (Last created item)
        • Else - Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Potion[3] is in Region 002 <gen>) Equal to False
        • Then - Actions
          • Item - Create Minor Replenishment Potion at (Random point in Region 002 <gen>)
          • Set Potion[3] = (Last created item)
        • Else - Actions
      • Wait 30.00 seconds
      • Trigger - Run (This trigger) (checking conditions)
i think this should be enough, hope i helped, feel free to ask if u dont know something
 
Status
Not open for further replies.
Top