[GUI] How to properly use "Crow Form"

Level 7
Joined
Apr 11, 2011
Messages
173
This is the best way to do it, and the reason to do this is so you can modify the flying height of any unit that isn't flying and allow for 3D/Z axis usage and make the new type of maps everyone is waiting for instead of always using the Grid/2D basic wc3 system.

[trigger=Option]Events
Unit - A unit enters (Playable map area)
Conditions
(Level of Crow Form for (Triggering unit)) Equal to 0
Actions
Unit - Add Crow Form to (Triggering unit)
Unit - Remove Crow Form from (Triggering unit)
Or
Custom script: call UnitAddAbility( 'Amrf', GetTriggerUnit() )
Custom script: call UnitRemoveAbility( 'Amrf', GetTriggerUnit() )
[/trigger]


Another possible way, as in for all preset units.
[trigger=Option]Events
Map initialization
Time - Elapsed game time is 0.01 seconds
Unit Group - Pick every unit in (Units in (Playable map area)) and do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Level of Crow Form for (Picked unit)) Equal to 0
Then - Actions
Unit - Add Crow Form to (Picked unit)
Unit - Remove Crow Form from (Picked unit)
Else - Actions
[/trigger]


Once added you can remove it and its done and over with.

Something you could combine with this for multi-floor systems...

[trigger=Option]Events
Unit - A unit Is attacked
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
Or - Any (Conditions) are true
Conditions
(Current flying height of (Attacking unit)) Not equal to (Current flying height of (Triggering unit))
(Current flying height of (Attacking unit)) Greater than ((Current flying height of (Triggering unit)) + 40.00)
(Current flying height of (Attacking unit)) Less than ((Current flying height of (Triggering unit)) - 45.00)
Then - Actions
Unit - Add Battle Stations (Chaos Orc Burrow) to (Attacking unit)
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
Or - Any (Conditions) are true
Conditions
(Current flying height of (Attacking unit)) Equal to (Current flying height of (Triggering unit))
(Current flying height of (Attacking unit)) Less than ((Current flying height of (Triggering unit)) + 20.00)
Then - Actions
Unit - Cause (Attacking unit) to damage (Triggering unit), dealing 5.00 damage of attack type Spells and damage type Normal
Else - Actions
[/trigger]
 
Last edited:
Level 7
Joined
Apr 11, 2011
Messages
173
Well, don't worry about it.... I say lets compete whoever can get their version of the tutorial approved. =)

I wish you luck, I could of made some other fancy tutorial too, so no worries.

Also after a decade of modding for wc3, you think people would have put more tutorials here but nooo..... they hog the knowledge for themselves and eventually leave without sharing it, maybe we could fix that magther =D
 
Top