Item Respawn drop

ReDruMMurDeR

Member
Reaction score
0
Hey i have a problem with my Item drop After the Creep Revives they stop dropping items

i use this for respawn
Trigger:
  • Events
    • Map initialization
    • conditions
    • actions
    • Set creepId = (creepId + 1)
    • Set creepType[creepId] = (Unit-type of (Picked unit))
    • Set creepLocation[creepId] = (Position of (Picked unit))
    • Set creepLocation[creepId] = (Position of (Picked unit))

Trigger:
  • events
    • Revive trigger 2
    • Unit - A unit Dies
    • conditions
    • (Owner of (Triggering unit)) Equal to Neutral Hostile
    • Actions
    • Custom script: local integer udg_i
    • Set i = (Custom value of (Triggering unit))
    • Wait 20.00 seconds
    • Unit - Create 1 creepType<i> for Neutral Hostile at creepLocation<i> facing Default building facing degrees
    • Unit - Set the custom value of (Last created unit) to i
    • </i></i>


that is what i use Also i wud like to make diffrent creeps drop diffrent things inadvance thanks for ur help
 

Tyman2007

Ya Rly >.
Reaction score
74
Please use indentations in your triggers. it looks like you typed it out. Simply click on the trigger, then above events, right click and click copy as text. Paste it here in WC3 tags.

You have this line
[ljass]local integer udg_i[/ljass]
delete that. It's not being used.

You never set the custom values of the units in the 1st trigger. it is also only running once, so only 1 unit is being indexed.

Try Unit Group - Pick all units in playable map area and do multiple actions

it should work then.
 

ReDruMMurDeR

Member
Reaction score
0
no they revive i just cant get them to drop items separate and also after respawn also i did click copy as text everytime i make them drop a item EVERY creep drops the same item
 

Tawnttoo

New Member
Reaction score
36
freehand, sorry
Trigger:
  • Fake Drop
    • Events
    • Unit - A unit dies
    • Conditions
    • Random Integer between 1 and 10 is 1
    • Actions
    • Item - Create your item at yourpoint
I know it leaks, I don't have WE before me right now.
 

Bankde

Member
Reaction score
20
Trigger:
  • Item Drop
    • Events
      • Unit - A unit Dies
    • Conditions
      • (Unit-type of (Triggering unit)) Equal to &quot;Your Creep&quot;
    • Actions
      • Set Point = (Position of (Triggering unit))
      • If ((Random integer number between 1 and 100) Less than or equal to 5) then do (Item - Create &quot;Your Item&quot; at Point) else do (Do nothing)
      • Custom script: call RemoveLocation (udg_Point)


For non-leak trigger
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top