Create account / Log in

Nested properties in 3.2?

Talk about module design ideas and techniques.

Moderators: Tim M, uckelman

Nested properties in 3.2?

Postby LimitedInfinity » July 28th, 2012, 12:27 am

Are nested properties supported in 3.2?

For example I've tried:
$$PlayerSide$Name$
$PlayerSide$Name$$
${PlayerSide}Name$
{$PlayerSide$Name}

I now in the past this was not supported, thought I'd try again in 3.2.
LimitedInfinity
 
Posts: 17
Joined: March 2nd, 2012, 11:34 pm

Re: Nested properties in 3.2?

Postby Brent Easton » July 28th, 2012, 12:43 am

never use $ inside {}, just use the property name. To get the value of a property whose name you build up from other components, use the GetProperty function:

{GetProperty(PlayerSide+Name)}
User avatar
Brent Easton
 
Posts: 2880
Joined: December 21st, 2007, 3:06 am
Location: Berry, NSW, Australia

Re: Nested properties in 3.2?

Postby LimitedInfinity » July 28th, 2012, 12:54 am

Ahh! Awesome.

Thanks.
LimitedInfinity
 
Posts: 17
Joined: March 2nd, 2012, 11:34 pm

Re: Nested properties in 3.2?

Postby Bridger » February 14th, 2020, 1:08 am

I was trying to do the same thing and got stumped because I wasn't combining properties, but rather a property (playerside) and static text to get a combined property (Blue Empire 1, Blue Empire 2, Green Empire 1, Green Empire 2, etc.)

It took a bit but I found the solution after some trial and error: {GetProperty(PlayerSide+"Empire1")}

Thought I'd post it here in case somebody else was searching for the same thing.
Bridger
 
Posts: 17
Joined: March 19th, 2015, 10:27 pm


Return to Module Design

Who is online

Users browsing this forum: No registered users and 2 guests