If you want to separate who can see what, then that is what the *@ is for before the variable name. Only the owner of the token can see those properties.
If you want to get fancy, you can put in some code:
Code: Select all
*sheet.physicque (Phys):[r, if(isPC(),Physique,if(isFriendly,Physique,""))]
Physique
Social (Soc)
Mental (Men)
*#Initative (Init)
*#HP
*#Psy
...
isFriendly:0
I kind of use this with my statsheet where I put things visible to anyone for statsheet with a prefix of "sheet." to keep the variables separate. Here's a snippet of one of the token types I use:
Code: Select all
sheet.currentXp:0
*sheet.monsterXp (XP Award):[R, if(isNPC()): am.getMonsterXp(eval( "" + getStrProp(getProperty("Levels"),"ECL")));""]
*sheet.distance (Distance):[r: distanceStatSheet(currentToken())]
*Public_Note
*@sheet.creature (Creature):[r: strformat("%{CreatureType} (%{LevelsInfo})")]
*@Languages:[R: json.get(getProperty("Race"), "notes")]
*@sheet.hpstatus (Hit Points):[r: strformat("%s/%s%s",HP+HPtemp-HPNonLethalDMG,HPmax+HPtemp,if(HPtemp || HPNonLethalDMG || Burn," ("+HP+"/+"+HPtemp+"/-"+HPNonLethalDMG+")" +if(Burn,"Burn "+Burn,""),""))]
*@sheet.lethalhp (Lethal HP):[r: if(LethalHP < LethalMaxHP,strformat("%{LethalHP}/%{LethalMaxHP}"),"")]
*Visible_Gear (Visible Gear):[r: ""]
*sheet.moveReach (Tactical):[r: strformat("Move:%{Movement} Reach:%{Reach} Elev:%{Elevation}")]
*@MoveRemain
*AC (AC/TH/FF [AR] (CMD/FF))
*@sheet.specialA (Attacks):[r, if(SpecialATK == "NA" || SpecialATK == ""): ""; substring(SpecialATK,0,min(length(SpecialATK),50))]
*@sheet.specialA2 (A -):[r, if(SpecialATK == "NA" || SpecialATK == "" || length(SpecialATK) <= 50): ""; substring(SpecialATK,50,min(length(SpecialATK),100))]
*@sheet.specialA3 (A --):[r, if(SpecialATK == "NA" || SpecialATK == "" || length(SpecialATK) <= 100): ""; substring(SpecialATK,100,min(length(SpecialATK),150))]
*@sheet.specialD (Defenses):[r, if(SpecialQual == "NA" || SpecialQual == ""):""; substring(SpecialQual,0,min(length(SpecialQual),50))]
*@sheet.specialD2 (D -):[r, if(SpecialQual == "NA" || SpecialQual == "" || length(SpecialQual) <= 50):""; substring(SpecialQual,50,min(length(SpecialQual),100))]
*@sheet.specialD3 (D --):[r, if(SpecialQual == "NA" || SpecialQual == "" || length(SpecialQual) <= 100):""; substring(SpecialQual,100,min(length(SpecialQual),150))]
*@spellResistance (SR)
*@DR
*@sheet.physical (Body):[R: strformat("Str:%s(%+d) Dex:%s(%+d) Con:%s(%+d)",Strength+StrMod,StrB,Dexterity+DexMod,DexB,Constitution+ConMod,ConB)]
*@sheet.mental (Mind):[R: strformat("Int:%s(%+d) Wis:%s(%+d) Chr:%s(%+d)",Intelligence+IntMod,IntB,Wisdom+WisMod,WisB,Charisma+ChaMod,ChaB)]
*@AllSaves (Saves):[R: strformat("Fort:%+d Ref:%+d Will:%+d",Fort+ConB+FortBonus,Reflex+DexB+ReflexBonus,Will+WisB+WillBonus)]
*@SaveMisc
...
The actual variables used follow
This was using the PF/3.5 framework created by Lindsay so there are some variables I didn't add the prefix to in order to muck things up.