Difference between revisions of "Talk:Script Processing"

565 bytes added ,  16:49, 12 November 2007
no edit summary
imported>HawkFest
imported>Haama
 
::::Actually, I want it to verify the contents of the container at the very moment I leave its menumode (after putting or getting stuff out of it). That's why I was considering using its menumode block, for setting a flag that would then trigger a Gamemode code block. However, maybe that this is redundant : when in menumode, does the gamemode code continues to execute, or does it stop until menumode is left? Is there a more efficient way to render the desired behaviour? Regards, --[[User:HawkFest|HawkFest]] 15:33, 12 November 2007 (EST)
 
:::::Assuming it's a normal container:
<pre>begin onActivate
if (IsActionRef player)
set CheckContainer to 1
Activate
endif
end
 
begin GameMode
if CheckContainer
set CheckContainer to 0
;check contents
endif
end</pre>
:::::That way, the contents will only be examined when your container is opened, instead of any container. You could also add "buttons" to the container that, when the player selects them, do the proper processing. Those are a bit harder and require OBSE, though.
:::::--[[User:Haama|Haama]] 16:49, 12 November 2007 (EST)
Anonymous user