Random Item Spawn

Status
Not open for further replies.
Level 6
Joined
Feb 18, 2010
Messages
153
hey how i get to to spawn 1 random item from like 10 dif items on map every like minute or so
 
  • Trigger
  • Events
    • Map Initialization
  • Conditions
  • Actions
    • Set Items[1] = Gloves of Haste
    • Set Items[2] = Boots of Speed
    • Set Items[3] = Swift Blade
    • Set Items[4] = Sword of Miracles
    • ...
    • Set Items[10] = Eye of the Hunter
  • Tr
  • Events
    • Time - Every 60.00 seconds of game-time
  • Conditions
  • Actions
    • Set Point1 = (Random point in (Playable Map Area))
    • Item - Create 1 Items[(Random integer number between 1 and 10)] at Point1
    • Custom script: call RemoveLocation (udg_Point1)
Items[] is an "Item-type" variable.
Point1 is a Point variable.

References:
http://www.hiveworkshop.com/forums/triggers-scripts-269/things-leak-35124/
http://www.hiveworkshop.com/forums/trigger-gui-editor-tutorials-279/variables-5896/
 
Level 6
Joined
Feb 18, 2010
Messages
153
ok i cant find this one

Item - Create 1 Items[(Random integer number between 1 and 10)] at Point1
 
Level 6
Joined
Feb 18, 2010
Messages
153
Thanx i sone now :p

EDIT: when i save it. it says expected a name

and this is hilighted

call RemoveLocation (udg_Point1)
 
Level 6
Joined
Feb 18, 2010
Messages
153
thanx fixed id +rep ye but it says spread some rep first before


my val was point1 on thing i put Point1 i didnt notice it
 
Status
Not open for further replies.
Top