- Joined
- Mar 15, 2012
- Messages
- 2,885
As most likely know, it is difficult to obtain zero or minus white stats however apparently the GUI function fails and the jass/custom script one works quite well. 
[trigger=Zero Stat]
Untitled Trigger 003
Events
Player - Player 1 (Red) skips a cinematic sequence
Conditions
Actions
Unit Group - Pick every unit in (Units currently selected by Player 1 (Red)) and do (Actions)
Loop - Actions
Set i = 0
Set u = (Picked unit)
Custom script: call SetHeroAgi(udg_u,udg_i,true)
[/trigger]
[trigger=Minus Stat]
Untitled Trigger 003
Events
Player - Player 1 (Red) skips a cinematic sequence
Conditions
Actions
Unit Group - Pick every unit in (Units currently selected by Player 1 (Red)) and do (Actions)
Loop - Actions
Set i = -99
Set u = (Picked unit)
Custom script: call SetHeroAgi(udg_u,udg_i,true)
[/trigger]
It might seem and look simple, but I was sure surprised by the number of mapmakers who didn't know this. Hope this'll help people who want zero and minus white stats outside of shift + enter in object editor.
Edit: If you set the strength in object editor too high as a minus that health goes below zero/0, it will crash the game before being able to finish loading the map.

[trigger=Zero Stat]
Untitled Trigger 003
Events
Player - Player 1 (Red) skips a cinematic sequence
Conditions
Actions
Unit Group - Pick every unit in (Units currently selected by Player 1 (Red)) and do (Actions)
Loop - Actions
Set i = 0
Set u = (Picked unit)
Custom script: call SetHeroAgi(udg_u,udg_i,true)
[/trigger]
[trigger=Minus Stat]
Untitled Trigger 003
Events
Player - Player 1 (Red) skips a cinematic sequence
Conditions
Actions
Unit Group - Pick every unit in (Units currently selected by Player 1 (Red)) and do (Actions)
Loop - Actions
Set i = -99
Set u = (Picked unit)
Custom script: call SetHeroAgi(udg_u,udg_i,true)
[/trigger]
It might seem and look simple, but I was sure surprised by the number of mapmakers who didn't know this. Hope this'll help people who want zero and minus white stats outside of shift + enter in object editor.
Edit: If you set the strength in object editor too high as a minus that health goes below zero/0, it will crash the game before being able to finish loading the map.
Last edited: