Difference between revisions of "Talk:ScriptEffectUpdate"
Jump to navigation
Jump to search
more information about block validity
imported>ShadowDancer (clarifying answer more) |
imported>ShadowDancer (more information about block validity) |
||
|
Return</pre>
:--[[User:ShadowDancer|ShadowDancer]] 22:48, 24 August 2007 (EDT)
::After some more testing, I found out that the '''ScriptEffectUpdate''' block does actually run even after the '''ScriptEffectFinish''' block runs with the blocks reversed. I am adding this since I assume that some possible interesting effects could be created intentionally (or unintentionally) by setting a variable in the '''ScriptEffectFinish''' block. I used this script if anyone wants to try to replicate this:
<pre>ScriptName SCAlterWeather
Short WeatherButton
Short ScriptVariable
Begin ScriptEffectStart
MessageBox "What weather would you like?", "Clear", "Cloudy", "Fog", "Overcast", "Rain", "Snow", "Thunderstorm"
End
Begin ScriptEffectFinish
ReleaseWeatherOverride
ForceWeather DefaultWeather
Set ScriptVariable to 1
End
Begin ScriptEffectUpdate
Set WeatherButton to GetButtonPressed
If WeatherButton == 0
ForceWeather Clear 1
ElseIf WeatherButton == 1
ForceWeather Cloudy 1
ElseIf WeatherButton == 2
ForceWeather Fog 1
ElseIf WeatherButton == 3
ForceWeather Overcast 1
ElseIf WeatherButton == 4
ForceWeather Rain 1
ElseIf WeatherButton == 5
ForceWeather Snow 1
ElseIf WeatherButton == 6
ForceWeather Thunderstorm 1
EndIf
If ScriptVariable == 1
MessageBox "ScriptEffectUpdate fired after ScriptEffectFinish block"
EndIf
End</pre>
::--[[User:ShadowDancer|ShadowDancer]] 02:15, 25 August 2007 (EDT)
| |||