• Check out the results of the Techtree Contest #19!
  • 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 a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!

[Trigger] How do i make items appearing anywhere?

Status
Not open for further replies.
just have an integer variable, set it to a random number, then with if/then/else decide which item is going to be dropped.
 
In a trigger, set up your table, means
  • Set items[0] = item1
  • Set items[1] = item2
  • Set items[2] = item3
  • Set items[3] = item4
  • Set items[4] = item5
etc

and for your create item trigger, do
  • Set temppoint = Random point in (Playable Map Area)
  • Item - Create a item[Random integer number between x and y] at temppoint
  • Custom script: call RemoveLocation(udg_temppoint)
whereas x is the lowest number you've set in your table and y being the highest
 
O_o thanks squiggy

Edit: Sorry but i still need help :( ... For this line: Item - Create a item[Random integer number between x and y] at temppoint

I can't find the "a item[Random integer number between x and y]" with my editor, can you like tell me the steps like

1) Item-create
2)...
 
Last edited:
okay, go to item, choose the create button,
now if you made the items variable and putted it array,
you should have the option to press variable,
in the array underline area, choose math - random number
and in 1 - 10 just change to w/e you want, or how many items you got in the variable.
hope i helped..

edit:
ops.. i wrote " or how many items you got in the variable"
i meant like if there are 5 items in the variable use

  • Item - Create items[(Random integer number between 1 and 5)] at Point_Which_You_Make
 
Status
Not open for further replies.
Back
Top