Code:
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Unit-type of (Target unit of ability being cast)) Equal to Become a Doctor
Then - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Number of items carried by (Casting unit)) Less than 6
Then - Actions
Game - Display to (All players) the text: ((Name of (Owner of (Casting unit))) + is now a doctor.)
Unit - Change ownership of Become a Doctor 0027 <gen> to (Owner of (Casting unit)) and Change color
Game - Display to (Player group((Owner of (Casting unit)))) the text: Nurse: Okay, you're...
Set DiseaseManActive = True
Unit - Create 1 Villager (Diseased) for Player 9 (Gray) at (Random point in (Playable map area)) facing (Position of (Casting unit))
Set Patient = (Last created unit)
Cinematic - Ping minimap for (Player group((Owner of (Casting unit)))) at (Position of (Last created unit)) for 1.00 seconds, using a Flashy ping of color (0.00%, 60.00%, 0.00%)
Wait 0.20 seconds
Unit - Order Disease Man 0029 <gen> to Night Elf Keeper Of The Grove - Entangling Roots Patient
Else - Actions
Else - Actions
Everything works, except the last Order. I know I'm forgetting something, I haven't made maps in ages. :roll: