View Single Post
  #1  
Unread 06-15-2006, 06:48 PM
Celestian Celestian is offline
A Crazed Gnoll
Interface Author - Click to view interfaces
 
Join Date: Nov 2004
Server: Antonia Bayle
Posts: 23
Default if then else and gamedata

Ok, say I wanted to check to see if a player was a Templar and if so make a page visible. Something like...

OnActivate="Visible=(GameData.Self.SubClass==Templar)"
or something like:
OnActivate="Visible=(Parent.Parent.Player.SubClass.Text==Templar)"

Now first, can you use GameData in this fashion or do I need to use the Parent.* vars, if so where are the "Self" player fields. I looked in the default ui and couldn't find them myself.

Can you use if, then, else statements? If so whats the proper format?

If there is a FAQ on such things please feel free to point me to them, thanks!

Last edited by Celestian : 06-15-2006 at 06:55 PM.
Reply With Quote