- Joined
- May 10, 2008
- Messages
- 1,001
How Would A Unit Spawn At Same Point where you Killied It and then setting it as player 1 or 2, etc. Plz Help

Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.

Events

Unit - A unit dies
Conditions

...
Actions

Set temppoint = Position of (triggering unit)

Unit - Create one (unit-type of (triggering unit)) at temppoint facing default building degrees

Unit - Change Owner of (last created unit) [i don't know if triggering unit works here] to Player x
Custom script: call RemoveLocation(udg_temppoint)
Test

Events


Unit - A unit Dies

Conditions

Actions


Set Temp_Loc = (Position of (Triggering unit))


Unit - Create 1 (Unit-type of (Triggering unit)) for (Owner of (Killing unit)) at Temp_Loc facing Default building facing degrees


Custom script: call RemoveLocation(udg_Temp_Loc)
level 300

Events


Unit - A unit Learns a skill

Conditions


(Learned Hero Skill) Equal to Deadly Conversion

Actions


Trigger - Run Level 300 work <gen> (checking conditions)
Level 300 work

Events

Conditions

Actions


Set Temp_Loc = (Position of (Triggering unit))


Unit - Create 1 (Unit-type of (Triggering unit)) for (Owner of (Killing unit)) at Temp_Loc facing Default building facing degrees


Custom script: call RemoveLocation(udg_Temp_Loc)
random trigger
Events

Unit - A unit dies
Actions

Unit - Create 1 (unit -type of (dying unit)) for (owner of (killing unit)) at (position of (dying unit)) facing Default building facing degrees
1st Trigger
Events

Unit - A unit dies
Actions

Trigger - Run (2nd trigger) (check conditions)
2nd trigger
Conditions

(Learned Hero Skill) Equal to Deadly Conversion
Actions

Unit - Create 1 (unit -type of (dying unit)) for (owner of (killing unit)) at (position of (dying unit)) facing Default building facing degrees
Events
Unit - A unit dies
Conditions
((Dying unit) is a hero) Equal To True
Actions
Hero - Instantly revive (Dying unit) at (Position of (Dying unit)), Hide revival graphics
Unit - Change ownership of (Reviving Hero) to (Owner of (Killing unit)) and Change color
Events
Unit - A unit dies
Conditions
Actions
Unit - Create 1 (Unit-type of (Dying unit)) for (Owner of (Killing unit)) at (Position of (Dying unit)) facing (Facing of (Dying unit)) degrees
Hey Thx guys... Btw... would this work?
level 300
Events
Unit - A unit Learns a skill
Conditions
(Learned Hero Skill) Equal to Deadly Conversion
Actions
Trigger - Run Level 300 work <gen> (checking conditions)
Level 300 work
Events
Conditions
Actions
Set Temp_Loc = (Position of (Triggering unit))
Unit - Create 1 (Unit-type of (Triggering unit)) for (Owner of (Killing unit)) at Temp_Loc facing Default building facing degrees
Custom script: call RemoveLocation(udg_Temp_Loc)
yourTrigger
Events

Unit - A unit dies
Conditions

And (All conditions are true)


Integer Comparison (?) level of ( Dark Conversion ) for Killing Unit greater then 0


Boolean Comparison - Killing unit is a Hero equal to false // unless you want to get free heros for each hero kill, or you're the only hero on the map
Events

Unit - Create ( 1 Unit type of (Dying unit) for Owner of (Killing unit) facing default building facing degrees
Level 300 Test

Events


Unit - A unit Dies

Conditions


((Level of Deadly Conversion for (Killing unit)) Greater than or equal to 0) and ((Unit-type of (Dying unit)) Not equal to Emissary)

Actions


Unit - Create 1 (Unit-type of (Dying unit)) for (Owner of (Killing unit)) at (Position of (Dying unit)) facing Default building facing degrees
