• 🏆 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!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

Unit within Region dies

Status
Not open for further replies.
Level 8
Joined
Sep 9, 2007
Messages
114
For my current project;
I'm currently stumped (again :slp:) with this prisoner system i'm working up

I want to give a 25% chance that when a unit dies it gets moved to your teams prison

Once inside the prison its health slowely drains ( I have that part done)

But i want it so... when that unit dies within said region. It becomes a skeleton belonging to whoevers prison its in.

Example:
Orc Grunt Dies*
Orc Prisoner spawns in humans Prison
Once the unit within (Region Prison) dies
create a skeleton for player (human)


Problem is i cant figure out how to:
Once unit within region dies
Because theres 4 different teams and 4 different prisons... so i'm having difficulty making each team's prison function correctly

Thanks in advance HWS community
You have all been loads of help these past few days.
 
Level 4
Joined
Jun 1, 2007
Messages
92
Condition is Boolean - Unit - Unit is in region
  • Untitled Trigger 001
    • Events
      • Unit - A unit Dies
    • Conditions
      • (Region 000 <gen> contains (Dying unit)) Equal to True
    • Actions
 
Status
Not open for further replies.
Top