Posted by member 51749 on 2003-10-31 22:30:51
i have a few vars which i want to change from within a bang defined with mzscript. how do i go about this?
something like this.
*script exec !varset t $currentImg$
*script exec !ifEq t "1" |set3
*script exec !ifEq t "2" |set1
*script exec !ifEq t "3" |set2
*script exec !UpdateWeather
*script ~bang
;Satellite Photo
*script bang !set1
*script exec !Setvar currentImg "1"
*script exec !Setvar SatImg "$WeatherDir$temp\satellite.png"
*script ~bang
;Isobar Photo
*script bang !set2
*script exec !Setvar currentImg "2"
*script exec !Setvar SatImg "$WeatherDir$temp\satisobar.png"
*script ~bang
;Radar Photo
*script bang !set3
*script exec !Setvar currentImg "3"
*script exec !Setvar SatImg "$WeatherDir$temp\satradar.png"
*script ~bang