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 [b]-[/b] Player [color=FFFF77]0[/color] Supplies Used changes Player [b]-[/b] Player [color=FFFF77]1[/color] Supplies Used changes Player [b]-[/b] Player [color=FFFF77]2[/color] Supplies Used changes [b]-[/b][b]-[/b][b]-[/b][b]-[/b][b]-[/b][b]-[/b][b]-[/b] etc... Local Variables p [b]=[/b] [b]([/b]Triggering player[b])[/b] <Integer> free supply [b]=[/b] [b]([/b][b]([/b]Player p Supplies Made[b])[/b] [b]-[/b] [b]([/b]Player p Supplies Used[b])[/b][b])[/b] <Integer> Conditions Supply Cap Warning Is Active[b][[/b]p[b]][/b] [b]=[/b][b]=[/b] False Actions Variable [b]-[/b] Set Supply Cap Warning Is Active[b][[/b]p[b]][/b] [b]=[/b] True General [b]-[/b] While [b]([/b]Conditions[b])[/b] are [color=7777FF][b]true[/b][/color][b],[/b] do [b]([/b]Actions[b])[/b] Conditions free supply < [color=FFFF77]4[/color] Actions Dialog [b]-[/b] Show Supply Cap Warning Image for [b]([/b]Player group[b]([/b]p[b])[/b][b])[/b] Dialog [b]-[/b] Fade Supply Cap Warning Image to a transparency of [color=FFFF77]50[/color].0% over a period of [color=FFFF77]0[/color].[color=FFFF77]6[/color] seconds for [b]([/b]Player group[b]([/b]p[b])[/b][b])[/b] General [b]-[/b] Wait [color=FFFF77]0[/color].[color=FFFF77]6[/color] Real Time seconds Dialog [b]-[/b] Fade Supply Cap Warning Image to a transparency of [color=FFFF77]100[/color].0% over a period of [color=FFFF77]0[/color].[color=FFFF77]6[/color] seconds for [b]([/b]Player group[b]([/b]p[b])[/b][b])[/b] General [b]-[/b] Wait [color=FFFF77]0[/color].[color=FFFF77]6[/color] Real Time seconds Variable [b]-[/b] Set free supply [b]=[/b] [b]([/b][b]([/b]Player p Supplies Made[b])[/b] [b]-[/b] [b]([/b]Player p Supplies Used[b])[/b][b])[/b] Dialog [b]-[/b] Hide Supply Cap Warning Image for [b]([/b]Player group[b]([/b]p[b])[/b][b])[/b] Variable [b]-[/b] Set Supply Cap Warning Is Active[b][[/b]p[b]][/b] [b]=[/b] 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