[Trigger] need trigger help

Status
Not open for further replies.

sc4n

S

sc4n

Hi, Im making a defense type map, and i want waves of enemies to drop a random items or triggered items that been set by trigger upon killed. is there a way for me to make this thing in editor? since im still new for tigger making

i had couple questions in my mind before but it seems that i forgotten but this i can remember at this time ... thanks..
 
event: a unit dies
condition: unit type and level and what u now want
action: set (integer_var) = random number between 1-100 or less or higher.
if conditions are true then do then actions else do else actions:
condiotn: (integer_var) equal or less than 10
Then action: create item at point of dying unit
else action: do nothing

thats a 10% chance to get item

thats maybe how i would do it, point leak remember to remove.. anyway its a simple stuff, or u can allready have the item on a random guy that spawns so when he dies it drops by death
 
uberowner yours leak.
make it like this :
  • Event:
  • Unit - A Unit Dies
  • Conditions:
  • (the creep type condition or the one you want)
  • Actions:
  • Set (integer_variable) to random number between 1-100 (the max percent of chance is 100)
  • If/Then/Else:
  • Condition : (integer_var) equal or less than 10
  • Action(s) : Set point = position of dying unit
  • create (your item) at point
  • Custuom Script : call RemoveLocation(udg_point)
that one doesnt leak
 
what name should the variable be? and what if i want to make an item to drop randomly with a spesific perscentage ... because i'm planning to put a rare item drop for a recipe later ....

thanks
 
Status
Not open for further replies.
Back
Top