• 💀 Happy Halloween! 💀 It's time to vote for the best terrain! Check out the entries to Hive's HD Terrain Contest #2 - Vampire Folklore.❗️Poll closes on November 14, 2023. 🔗Click here to cast your vote!
  • 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • 🏆 HD Level Design Contest #1 is OPEN! Contestants must create a maze with at least one entry point, and at least one exit point. The map should be made in HD mode, and should not be openable in SD. Only custom models from Hive's HD model and texture sections are allowed. The only exceptions are DNC models and omnilights. This is mainly a visual and design oriented contest, not technical. The UI and video walkthrough rules are there to give everyone an equal shot at victory by standardizing how viewers see the terrain. 🔗Click here to enter!

[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