Neutral Wander and Random Items

Juno**

Member
Reaction score
6
hey guys, I currently have a system (well i like to call it that way even if it is not) that creates random items in random regions... the problem is that sometimes, two items shows up in a single region.. could you guys help? I just want one item per region...

and with the neutral wander, I placed it on creeps.. but, wander is making these creeps "wander" even if they are still in a battle... is there any way to stop this?

BTW, here's my item spawn trigger..

Trigger:
  • Item Types
    • Events
    • Conditions
    • Actions
    • Set Floor_Item_Types[1] = Tome of Power
    • Set Floor_Item_Types[2] = Tome of Power
    • Set Floor_Item_Types[3] = Tome of Power
    • Set Floor_Item_Types[4] = Tome of Power
    • Set Floor_Item_Types[5] = Tome of Power


Trigger:
  • Item Spawn
    • Events
    • Time - Every 20.00 seconds of game time
    • Conditions
    • Actions
    • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
    • If - Conditions
    • Floor_Item_Aquired Greater than 0
    • Then - Actions
    • Game - Display to (All players) the text: (Item Created: + (String(Floor_Item_Aquired)))
    • For each (Integer A) from 1 to Floor_Item_Aquired, do (Actions)
    • Loop - Actions
    • Item - Create Floor_Item_Types[(Random integer number between 1 and 5)] at (Center of Creep_Spawn_Points[(Random integer number between 1 and 31)])
    • Set Floor_Item_Aquired = 0
    • Else - Actions


Trigger:
  • Item Aquisition
    • Events
    • Unit - A unit Dies
    • Conditions
    • (Item-class of (Item being manipulated)) Equal to Powerup
    • Actions
    • Set Floor_Item_Aquired = (Floor_Item_Aquired + 1)


EDIT: well that was pretty stupid, nvm the wander thingy..
 

Amn

Member
Reaction score
18
do a check (region contains item)
or store the random point on a variable to compate it's not equal
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top