Global variable (Full Version)

All Forums >> [New Releases from Matrix Games] >> Strategic Command Series >> Strategic Command WWII: World at War >> Tech Support



Message


Yvan1326 -> Global variable (2/22/2021 8:15:51 AM)

Hello
by looking at building events in Editor,
I can't understand the difference between Global Variables and triggers.
can someone explain it to me clearly?
thank you[&o]




BillRunacre -> RE: Global variable (2/22/2021 9:35:41 AM)

Global Variables determine whether something can happen at all during a game.

This is because they are set at game start, and if the number generated is within the range used in a script then that script can fire during the game. If the number generated is not within that range, then that script will not fire during the game, no matter what happens.

Triggers are different because they can always happen in a game, providing of course that their conditions are met.





Yvan1326 -> RE: Global variable (2/22/2021 10:59:34 AM)

Ok thanks
So I can have a gv10 for example and a trigger 50...
10% event can fire during the game and 50% event can fire if conditions are met.
50% from 10%, it's correct.?




Yvan1326 -> RE: Global variable (2/22/2021 1:51:19 PM)

another question,
what do the values from 1 to 10 of the GV correspond to?
are these configurable values?




Hubert Cater -> RE: Global variable (2/22/2021 3:52:57 PM)


quote:

ORIGINAL: Yvan1326

Ok thanks
So I can have a gv10 for example and a trigger 50...
10% event can fire during the game and 50% event can fire if conditions are met.
50% from 10%, it's correct.?



Sounds like you got it [:)]




Hubert Cater -> RE: Global variable (2/22/2021 3:55:07 PM)


quote:

ORIGINAL: Yvan1326

another question,
what do the values from 1 to 10 of the GV correspond to?
are these configurable values?


This just means that the game has up to 10 different Global variables to choose from. It gives you some flexibility to tie a group of related events to certain Global variables and so on. Or just for variety so that you can have some events tied to one Global variable and others to another Global variable.

This way if GV1 is satisfied in your scripts it won't mean all events then fire once GV1 is satisfied.

You can have other events tied to GV2 and so on.





Hubert Cater -> RE: Global variable (2/22/2021 3:57:40 PM)

If you use the F2 key at the start of a game against the AI, a set of log files is created in your user folder and it will show you which GV are set to what and this way you can see how events will fire as you are testing.

This particular one would be listed in the planning.log file near the top after the planning definitions are listed.

The log folder would typically be found here:

\Users\<username>\Documents\My Games\Strategic Command WWII - World at War





Yvan1326 -> RE: Global variable (2/22/2021 4:44:44 PM)

[;)]very interesting, i like this
thanks a lot




Hubert Cater -> RE: Global variable (2/22/2021 5:49:28 PM)

Our pleasure [8D]




Page: [1]

Valid CSS!




Forum Software © ASPPlayground.NET Advanced Edition 2.4.5 ANSI
1.09375