Lets say you wanted to set up a selection of languages based on race.
I have the code working and it gives no errors (except an editor error) an but it seems to work regardless of the if statements.
Secondary tagexpr for pick 'trAglaReg' is scheduled after primary condition test is scheduled
(This pick was added from the editor - reloading the game system my fix this problem)
Levels/10000
Code:
var result as number
if (tagis[Race.Human] <> 0) then
result = hero.assign[Language.lChessenta]
result = hero.assign[Language.lDamaran]
result = hero.assign[Language.lDraconic]
elseif (tagis[Race.HalfElf] <> 0) then
result = hero.assign[Language.lChessenta]
result = hero.assign[Language.lDamaran]
result = hero.assign[Language.lDraconic]
endif