Create account / Log in

Which Global Properties Folder to Use?

Talk about module design ideas and techniques.

Moderators: uckelman, Tim M

Which Global Properties Folder to Use?

Postby pawnpusher » January 16th, 2021, 5:03 pm

There is a Global Properties folder as a direct subfolder of the module. I just noticed that the Main Map Window folder and each other Map Window folder I add also have a Global Properties subfolder.

So when creating Global Properties, which Global Properties subfolder should I put them in?
User avatar
pawnpusher
 
Posts: 39
Joined: October 5th, 2013, 4:04 am
Location: Texas

Re: Which Global Properties Folder to Use?

Postby pawnpusher » January 16th, 2021, 5:37 pm

I re-read the Reference Manual section on Global Properties and saw that Global Properties can be created in Zones, Map Windows and the Module. So that leads to a second question:

If a Global Property is created in Map Window 1, can an expression in Map Window 2 read the value of that property?
User avatar
pawnpusher
 
Posts: 39
Joined: October 5th, 2013, 4:04 am
Location: Texas

Re: Which Global Properties Folder to Use?

Postby Brent Easton » January 17th, 2021, 3:13 am

No, not directly. An 'expression' belonging to a Game Piece 'sees' all the global properties in the Zone it is in, the Map it is in and the Module it is in.

To share information via a GP between 2 pieces in different Zones on the same Map, the GP will have to be at the Map level.
To share information via a GP between 2 pieces in different Maps, the GP will have to be at the Module level.
User avatar
Brent Easton
 
Posts: 3307
Joined: December 21st, 2007, 3:06 am
Location: Berry, NSW, Australia

Re: Which Global Properties Folder to Use?

Postby pawnpusher » January 17th, 2021, 7:30 pm

Thank you Brent.
User avatar
pawnpusher
 
Posts: 39
Joined: October 5th, 2013, 4:04 am
Location: Texas

Re: Which Global Properties Folder to Use?

Postby pawnpusher » January 17th, 2021, 7:40 pm

For anyone who may be looking for the same information that I was, I found the thread Finding a Map GP from another Map helpful.
User avatar
pawnpusher
 
Posts: 39
Joined: October 5th, 2013, 4:04 am
Location: Texas


Return to Module Design

Who is online

Users browsing this forum: No registered users and 4 guests