Talk:GameMode

Revision as of 17:23, 11 November 2006 by imported>GuidoBot

Tegid 16:35, 5 April 2006 (EDT): If an object has a begin GameMode block, does that mean it is running all the time period, or just when it is in the current cell or some other value of all the time?

I think you could check this by putting a Message "Running" command in the GameMode block for an object and then travel to a different cell. Mrflippy 16:03, 10 April 2006 (EDT)
As far as i can see it depends on the lifecycle of the object/spell the scripts runs on. If the object gets "deleted" or the spell duration ends the script execution stops Scylla 10:20, 12 April 2006 (EDT)
Gamemode doesn't apply to spells, for one thing. I've made a new page explaining some of the basics of when scripts are processed: Script_Processing. Kkuhlmann 08:55, 21 April 2006 (EDT)

Think I might have discovered something wierd. It appears you may be able to have multiple GameMode blocks running (simultaneously?) in an object script! At least it seemed to be the case for me, when I accedentally used Begin GameMode 1 [rather than Begin MenuMode 1]. Can anyone else confirm/deny this? Not sure what this could be used for yet but there could be some interesting side-effects to play with. I already experienced a few myself :) GuidoBot 02:20, 10 November 2006 (EST)

Entim 14:56, 10 November 2006 (EST): Object scripts with multiple GameMode blocks got processed line by line in my tests. Multiple GameMode blocks on multiple objects got processed in order. No sign of simultaneity. I wonder what side-effects you experienced.
K. So you are confirming that multiple GameMode blocks will run from a single script? Two GameMode blocks appeared to run for me but I couldn't say if it happened in the same frame or not. I doubted that lines from either block were run asynchronosly but I couldn't tell that either. The side-effects may or may not have been from having two GameMode's in one script running because I've been doing lots of stuff to try to force my player into un-readying his weapon. GuidoBot 15:17, 11 November 2006 (EST)
Entim 16:11, 11 November 2006 (EST): I have used three GameMode blocks, increased a counter in each, and logged which block made the current increase. Also logged the frame counter of a second object. I can confirm: multiple GameMode blocks will run in a single script, they will run one after the other, and they will run in the same frame.
Nice work. So it sounds like you can predict the effect then. Nice! It could make some scripts simpler to program this way. GuidoBot 17:23, 11 November 2006 (EST)
Return to "GameMode" page.