does anyone have a clearer idea of the use of <BoolVal1> tag?


just checking, i'm trying to figure out some interactivity of the data/ button use. Several use once items and several quests and city level up unlock functions use this tag.

5,466 views 5 replies
Reply #1 Top

seems like a short form for Boolean Value 1 i came across a few myself they usually switch some side effect on or off

Reply #2 Top

                <ModType>City</ModType>
                <Attribute>UnlockImprovement</Attribute>
                <BoolVal1>1</BoolVal1>
                <StrVal>Conclave</StrVal>

 

In this example consider the BoolVal1 as an if statement so the test here is:

if {City} has unlocked {Conclave} = true then [Prereq = ok]

if BoolVal1 had been =0 then it would have checked for:

if {City} has unlocked {Conclave} = false then [Prereq = ok]

 

at least that's what my programming experience would tell me

Reply #3 Top


Thank you very much that's exactly what i wanted to know.

Reply #4 Top

So could this be used to test to see if a player had a certain race, and if so, launch a quest that would give them an opportunity to hire a specific champion?

Reply #5 Top

Quoting Glazunov1, reply 5
So could this be used to test to see if a player had a certain race, and if so, launch a quest that would give them an opportunity to hire a specific champion?
End of Glazunov1's quote

I don't think so, afaik you can only use things as they are ( copy & paste pretty much ) and can not mix and match. The BoolVal1 tag was with CityHubs and I doubt they work with units as targets. (though there may be other places I didn't find)

I would think you could still do what you are asking about in the quest builder, but I've never looked at that tool.