• 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.

[Trigger] need trigger help

Status
Not open for further replies.
Level 2
Joined
Sep 13, 2007
Messages
9
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..
 
Level 2
Joined
Nov 10, 2007
Messages
9
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
 
Level 9
Joined
Jul 24, 2007
Messages
308
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
 
Level 2
Joined
Sep 13, 2007
Messages
9
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.
Top