View Single Post
TobyFox2002
Senior Member
 
Join Date: Nov 2013
Location: Andover, Ma
Posts: 632

Old December 24th, 2013, 11:32 AM
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

Last edited by TobyFox2002; December 24th, 2013 at 01:41 PM. Reason: Problem not solved.
TobyFox2002 is offline   #8 Reply With Quote