Script on water source

Post » Sun May 30, 2010 11:58 pm

Hi,
i want to alter the usage of water sources. When any water source (water surface, placable water or water activator) is used by a player, i want to make a menu where the player can choose to normaly use the water source or giving him the option to bottle water.
For this i changed the Actor Effects for water (WaterHeal1Purified, WaterHeal2Good, WaterHeal3Average, WaterHeal4Bad, WaterHeal5Terrible) to simply call a scipt.

Code Sniplet for Script for WaterHeal1Purified:
==
scn WaterHeal1Menu

int iButton

Begin ScriptEffectStart
showmessage MyMsg
End

Begin GameMod
set iButton to GetButtonPressed

if Button == -1
Return
elseif iButton == 0
[?]
elseif iButton == 1
player.showrecipemenu MyRecipeMenu
endif
RemoveMe
End
==

My first problem is that when i use a water source then i happens nothing, no menu is shown. I made the MyMsg for the menu but it doesn't show. My second problem it at [?]. I want to call a Actor Effect at this point for the player, how do i do that?
User avatar
Sunny Under
 
Posts: 3368
Joined: Wed Apr 11, 2007 5:31 pm

Return to Fallout: New Vegas