begin NC_WeatherPanel
short OnActivate
short button
short state
If ( onActivate == 1 )
set state to 1
set onActivate to 0
endif
if ( state == 0 )
return
endif
if ( state == 1 )
MessageBox "You see several buttons: which one do you press?" "Clear" "Cloudy" "Foggy" "Overcast" "Rain" "Thunder" "Ash" "Blight" "Normal"
set state to 2
endif
if ( state == 2 )
set button to getbuttonpressed
if ( button == 0 )
MessageBox "The sun shines brightly in the sky."
ModRegion, "Niemarkh Region", 100, 0, 0, 0, 0, 0, 0, 0
set state to 0
endif
if (button == 1)
MessageBox "Clouds begin to roll in…"
ModRegion, "Niemarkh Region", 0, 100, 0, 0, 0, 0, 0, 0
set state to 0
endif
if (button == 2)
MessageBox "A dense fog creeps along the ground."
ModRegion, "Niemarkh Region", 0, 0, 100, 0, 0, 0, 0, 0
set state to 0
endif
if (button == 3)
MessageBox "The skies run thick with clouds."
ModRegion, "Niemarkh Region", 0, 0, 0, 100, 0, 0, 0, 0\
set state to 0
endif
if (button == 4)
MessageBox "Rain begins to fall from the sky."
ModRegion, "Niemarkh Region", 0, 0, 0, 0, 100, 0, 0, 0
set state to 0
endif
if (button == 5)
MessageBox "Lightning and thunder rend the heavens."
ModRegion, "Niemarkh Region", 0, 0, 0, 0, 0, 100, 0, 0
set state to 0
endif
if (button == 6)
MessageBox "Ash scours the island."
ModRegion, "Niemarkh Region", 0, 0, 0, 0, 0, 0, 100, 0
set state to 0
endif
if (button == 7)
MessageBox "A poisonous blight ravages the island."
ModRegion, "Niemarkh Region", 0, 0, 0, 0, 0, 0, 0, 100
set state to 0
endif
if (button == 8)
MessageBox "The weather returns to normal."
ModRegion, "Niemarkh Region", 25, 35, 5, 20, 10, 5, 0, 0
set state to 0
endif
endif
end
short OnActivate
short button
short state
If ( onActivate == 1 )
set state to 1
set onActivate to 0
endif
if ( state == 0 )
return
endif
if ( state == 1 )
MessageBox "You see several buttons: which one do you press?" "Clear" "Cloudy" "Foggy" "Overcast" "Rain" "Thunder" "Ash" "Blight" "Normal"
set state to 2
endif
if ( state == 2 )
set button to getbuttonpressed
if ( button == 0 )
MessageBox "The sun shines brightly in the sky."
ModRegion, "Niemarkh Region", 100, 0, 0, 0, 0, 0, 0, 0
set state to 0
endif
if (button == 1)
MessageBox "Clouds begin to roll in…"
ModRegion, "Niemarkh Region", 0, 100, 0, 0, 0, 0, 0, 0
set state to 0
endif
if (button == 2)
MessageBox "A dense fog creeps along the ground."
ModRegion, "Niemarkh Region", 0, 0, 100, 0, 0, 0, 0, 0
set state to 0
endif
if (button == 3)
MessageBox "The skies run thick with clouds."
ModRegion, "Niemarkh Region", 0, 0, 0, 100, 0, 0, 0, 0\
set state to 0
endif
if (button == 4)
MessageBox "Rain begins to fall from the sky."
ModRegion, "Niemarkh Region", 0, 0, 0, 0, 100, 0, 0, 0
set state to 0
endif
if (button == 5)
MessageBox "Lightning and thunder rend the heavens."
ModRegion, "Niemarkh Region", 0, 0, 0, 0, 0, 100, 0, 0
set state to 0
endif
if (button == 6)
MessageBox "Ash scours the island."
ModRegion, "Niemarkh Region", 0, 0, 0, 0, 0, 0, 100, 0
set state to 0
endif
if (button == 7)
MessageBox "A poisonous blight ravages the island."
ModRegion, "Niemarkh Region", 0, 0, 0, 0, 0, 0, 0, 100
set state to 0
endif
if (button == 8)
MessageBox "The weather returns to normal."
ModRegion, "Niemarkh Region", 25, 35, 5, 20, 10, 5, 0, 0
set state to 0
endif
endif
end