Difference between revisions of "Talk:Script Processing"
Jump to navigation
Jump to search
→Problem with specific assertions: Some answers
imported>HawkFest |
imported>Haama (→Problem with specific assertions: Some answers) |
||
Line 61: | Line 61: | ||
::When you say that ''remote activators run once when the mod is first loaded, and when a variable is set on that remote activator'', do you mean that if I did not set any variable within the above-mentioned MenuMode block (or if I include all its code within an if clause), then it wouldn't pass through and stop executing after the 1st frame? More over, it seems to go beyond a single frame pass, since that as in your case, a message (in my case "Entered MenuMode...") is displayed indefinitely until I get out of that menu (until I actually load a saved game)... | ::When you say that ''remote activators run once when the mod is first loaded, and when a variable is set on that remote activator'', do you mean that if I did not set any variable within the above-mentioned MenuMode block (or if I include all its code within an if clause), then it wouldn't pass through and stop executing after the 1st frame? More over, it seems to go beyond a single frame pass, since that as in your case, a message (in my case "Entered MenuMode...") is displayed indefinitely until I get out of that menu (until I actually load a saved game)... | ||
::--[[User:HawkFest|HawkFest]] 20:09, 11 November 2007 (EST) | ::--[[User:HawkFest|HawkFest]] 20:09, 11 November 2007 (EST) | ||
:::I try to help out a bit when people get stuck. At first I found modding very frustrating because the information on it is scattered and incomplete - I wasn't even sure if variables would reset themselves every frame, etc., so I try to help others away from the same frustrations. "Are you making a mod?" - LOL, yes, too many of them at one time in fact. Right now I'm working on updating the Alchemical Sorter for COBL, and then I'll probably get back to updating my own mods (Alchemical Formulas really needs an update). | |||
:::Anyway, "do you mean that if I did not set any variable within the above-mentioned MenuMode block (or if I include all its code within an if clause), then it wouldn't pass through and stop executing after the 1st frame?" - yes. Get rid of the 'Set CheckContainer to 1' line and the script will only run the one time when entering the game. An 'if' clause would be good though, since you don't want the message to display every frame when the player finally enters the room. Container MenuMode (1008) works fine for me, but I don't think that's what you want (unless it's the only container in the room, well, actually couple of rooms since it'll remain loaded in memory). Do you want it to start once the player opens the container? If so, use an onActivate block instead ([[Crashes#Activating_a_Container_.28including_NPC.29|just be sure to never activate it from a remote object script]]). Good luck. | |||
:::--[[User:Haama|Haama]] 11:27, 12 November 2007 (EST) |