Question about item Respawning

Dodighead147

New Member
Reaction score
0
Hi. I have a few areas in the map where items respawn. The thing is that the items keep on being created one after another. I only want one item on each region at a time. Also, I have two objects that can be created in each region.
Code:
Events
    Time - Every 3.00 seconds of game time
Conditions
    ((Last created item) is in Region 001 <gen>) Equal to False
Actions
    Item - Create Scroll of Speed at (Center of Region 001 <gen>)
    Item - Create Scroll of |cffffcc00T|rhunder Clap at (Center of Region 001 <gen>)

Thanks! :confused:
 

Fir3l0rD

New Member
Reaction score
1
i wouldnt use "last created item" as the item its checking for, but i'm not sure what else you could use.
 

Fir3l0rD

New Member
Reaction score
1
ok, leave the condiotion section empty and try this for actions
Code:
Actions
    Item - Pick every item in (Your region) and do (Actions)
        Loop - Actions
            If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                If - Conditions
                    (Item-type of (Picked item)) Not Equal to Scroll of Speed
                Then - Actions
                  Create 1 Scroll of speed...
                Else - Actions

Just create another if/then/else for every item you want it to check for
 

Somatic

You can change this now in User CP.
Reaction score
84
Use a Variable to store the item last created. And run a trigger which starts with the event of a hero using an item.
 

Dodighead147

New Member
Reaction score
0
Can someone post another code... I can't really understand his. I qould really appreciate it. I also have no clue what you're talking about Somatic...
 

linamus

I r bak!
Reaction score
57
Firstly make item group variable with array (for every region). then:
Events: a unit aquires an item
Conditions
Actions: add item being manipulated to 'variable'.
Other trigger
Events - every some time of game seconds
Conditions:
Actions: create items in 'variable' at some region
set 'variable' - no items

should work
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top