scn WaterHeal1Menu
int iButton
begin ScriptEffectStart
ShowMessage WaterModMenuMsg
end
begin GameMode
set iButton to GetButtonPressed
if (iButton == -1)
Return
;First Button for bottling/rebottling water
elseif (iButton == 0)
player.showrecipemenu WaterModPWaterRecipes
;Second Button for activation of the water source
elseif (iButton == 1)
player.CastImmediateOnSelf WaterHeal1PurifiedChoice
endif
end
int iButton
begin ScriptEffectStart
ShowMessage WaterModMenuMsg
end
begin GameMode
set iButton to GetButtonPressed
if (iButton == -1)
Return
;First Button for bottling/rebottling water
elseif (iButton == 0)
player.showrecipemenu WaterModPWaterRecipes
;Second Button for activation of the water source
elseif (iButton == 1)
player.CastImmediateOnSelf WaterHeal1PurifiedChoice
endif
end
The message is show to the player but when a button is selected nothing happens. Through testing i have seen that none of if-conditions is executed. The whole GameMode Block is not executed. My question is, why is this block not executed? When i replace ScriptEffectStart with OnAdd and attach the script to an object all works fine but here not.