Skip to content
Home
Post Code
Jass (Warcraft III)
Wurst
GUI (Warcraft III)
Galaxy (StarCraft II)
GUI (StarCraft II)
C++
Java
Delphi
Text
Search Code
Compare Code
Uploads
Draw
Create New Drawing
View Drawings
Graph
Log in
[code]Supply Warning Events Player - Player 0 Supplies Used changes Player - Player 1 Supplies Used changes Player - Player 2 Supplies Used changes ------- etc... Local Variables p = (Triggering player) <Integer> free supply = ((Player p Supplies Made) - (Player p Supplies Used)) <Integer> Conditions Supply Cap Warning Is Active[p] == False Actions Variable - Set Supply Cap Warning Is Active[p] = True General - While (Conditions) are true, do (Actions) Conditions free supply < 4 Actions Dialog - Show Supply Cap Warning Image for (Player group(p)) Dialog - Fade Supply Cap Warning Image to a transparency of 50.0% over a period of 0.6 seconds for (Player group(p)) General - Wait 0.6 Real Time seconds Dialog - Fade Supply Cap Warning Image to a transparency of 100.0% over a period of 0.6 seconds for (Player group(p)) General - Wait 0.6 Real Time seconds Variable - Set free supply = ((Player p Supplies Made) - (Player p Supplies Used)) Dialog - Hide Supply Cap Warning Image for (Player group(p)) Variable - Set Supply Cap Warning Is Active[p] = False [/code]
select language
jass
java
delphi
C++
php
GSL
galaxy
visualBasic
wurst
> Text
Markdown
select style
default
> bbcode - default
Jasscraft
jasscraft html
visual
lightweight
lightweightNr
goto line:
Compare with:
text copy window
edit this code
post new code
Supply Warning Events Player - Player 0 Supplies Used changes Player - Player 1 Supplies Used changes Player - Player 2 Supplies Used changes ------- etc... Local Variables p = (Triggering player) <Integer> free supply = ((Player p Supplies Made) - (Player p Supplies Used)) <Integer> Conditions Supply Cap Warning Is Active[p] == False Actions Variable - Set Supply Cap Warning Is Active[p] = True General - While (Conditions) are true, do (Actions) Conditions free supply < 4 Actions Dialog - Show Supply Cap Warning Image for (Player group(p)) Dialog - Fade Supply Cap Warning Image to a transparency of 50.0% over a period of 0.6 seconds for (Player group(p)) General - Wait 0.6 Real Time seconds Dialog - Fade Supply Cap Warning Image to a transparency of 100.0% over a period of 0.6 seconds for (Player group(p)) General - Wait 0.6 Real Time seconds Variable - Set free supply = ((Player p Supplies Made) - (Player p Supplies Used)) Dialog - Hide Supply Cap Warning Image for (Player group(p)) Variable - Set Supply Cap Warning Is Active[p] = False