Senior Member
Volunteer Data File Contributor
Join Date: Jan 2011
Location: Nowhere, Virginia
Posts: 3,633
|
Mathias,
I found that to get access to tags in the layout script for determining whether to show or hide something I had to use an Code:
agent.tagis[] RavenX Pronouns: She/Her Please do not PM me to inquire about datafiles I coded "for personal use" such as Exalted, World of Darkness, AD&D, or Warhammer 40K Roleplaying. I appreciate your interest, but I do not own the Intellectual Property rights to these game systems. Nor do I have permission from any of the Publishers to distribute the data files. As such, I cannot distribute the work I have done with community on these files. They are "for personal use" only. Thank you. I am far too busy these days to answer emails. If you message me here there is no guarantee I will get back to you at all. |
#1 |
Senior Member
Lone Wolf Staff
Join Date: May 2005
Posts: 13,217
|
Please give me more detail about the code you're using and the task you're trying to accomplish.
|
#2 |
Senior Member
Lone Wolf Staff
Join Date: May 2005
Posts: 13,217
|
Oh, and another thing to remember - if you were on a custom class special in Pathfinder, and you were transitioning to the class this special were being added to, what transition would you use?
You don't say where your position script is, but if this is the position script on one of the pick templates on one of the tables on this panel, then the context of that script is the pick that's been added. |
#3 |
Senior Member
Volunteer Data File Contributor
Join Date: Jan 2011
Location: Nowhere, Virginia
Posts: 3,633
|
The mouse info script is in a procedure. Trying to build a table of values to display something over 30 levels. I am trying to get it to check for a specific tag, if the tag is present, send the variable into the correct array and return the value for display.
RavenX Pronouns: She/Her Please do not PM me to inquire about datafiles I coded "for personal use" such as Exalted, World of Darkness, AD&D, or Warhammer 40K Roleplaying. I appreciate your interest, but I do not own the Intellectual Property rights to these game systems. Nor do I have permission from any of the Publishers to distribute the data files. As such, I cannot distribute the work I have done with community on these files. They are "for personal use" only. Thank you. I am far too busy these days to answer emails. If you message me here there is no guarantee I will get back to you at all. |
#4 |
Senior Member
Lone Wolf Staff
Join Date: May 2005
Posts: 13,217
|
More information please - what is being added, what is it being added to?
|
#5 |
Senior Member
Volunteer Data File Contributor
Join Date: Jan 2011
Location: Nowhere, Virginia
Posts: 3,633
|
Attack values are being added, i.e. THAC0, values, I am trying to get this table displaying as "mouseinfo" on the class tab we just created using the agent content you told me about yesterday...
Here is the portal on the class tab: Code:
<!-- clAtkInfo portal presents the user with a table that shows various THAC0 values for the class of their character. --> <!-- clAtkInfo --> <portal id="clAtkInfo" style="actAttacks"> <action action="info" buttontext="THAC0"> </action> <mouseinfo mousepos="middle+below"><![CDATA[ call cAtkInfo ]]></mouseinfo> </portal> Code:
<!-- Proceedure cAtkInfo Presents a table that the user can see which displays various THAC0 values. --> <procedure id="cAtkInfo" scripttype="mouseinfo"><![CDATA[ @text = "{b} - THAC0 - {/b}{br}{align left}" var i as number for i = 1 to 30 @text = @text & "{br} Level " & i & ": " ~display our THAC0 values based on class if (tagis[ClassCat.Psionic] <> 0) then @text = @text & hero.child[THAC0Psi].field[THAC0].arrayvalue[i] elseif (tagis[ClassCat.Priest] <> 0) then @text = @text & hero.child[THAC0Pri].field[THAC0].arrayvalue[i] elseif (tagis[ClassCat.Rogue] <> 0) then @text = @text & hero.child[THAC0Rog].field[THAC0].arrayvalue[i] elseif (tagis[ClassCat.Warrior] <> 0) then @text = @text & hero.child[THAC0War].field[THAC0].arrayvalue[i] elseif (tagis[ClassCat.Wizard] <> 0) then @text = @text & hero.child[THAC0Wiz].field[THAC0].arrayvalue[i] endif ~ If this was the last level we got to, change the color of the rest ~ of the text if (i = field[cTotalLev].value) then @text = @text & "{text clrdisable}" endif next ]]></procedure> RavenX Pronouns: She/Her Please do not PM me to inquire about datafiles I coded "for personal use" such as Exalted, World of Darkness, AD&D, or Warhammer 40K Roleplaying. I appreciate your interest, but I do not own the Intellectual Property rights to these game systems. Nor do I have permission from any of the Publishers to distribute the data files. As such, I cannot distribute the work I have done with community on these files. They are "for personal use" only. Thank you. I am far too busy these days to answer emails. If you message me here there is no guarantee I will get back to you at all. |
#6 |
Senior Member
Lone Wolf Staff
Join Date: May 2005
Posts: 13,217
|
Put that portal inside a template. Then, the template can be assigned to use the agent pick when it's placed into the layout:
Code:
<templateref template="clsPowInfo" useagent="yes" taborder="10"/> |
#7 |
Senior Member
Volunteer Data File Contributor
Join Date: Jan 2011
Location: Nowhere, Virginia
Posts: 3,633
|
That got it working, thank you Mathias.
RavenX Pronouns: She/Her Please do not PM me to inquire about datafiles I coded "for personal use" such as Exalted, World of Darkness, AD&D, or Warhammer 40K Roleplaying. I appreciate your interest, but I do not own the Intellectual Property rights to these game systems. Nor do I have permission from any of the Publishers to distribute the data files. As such, I cannot distribute the work I have done with community on these files. They are "for personal use" only. Thank you. I am far too busy these days to answer emails. If you message me here there is no guarantee I will get back to you at all. Last edited by RavenX; March 24th, 2014 at 05:37 PM. |
#8 |
Senior Member
Volunteer Data File Contributor
Join Date: Jan 2011
Location: Nowhere, Virginia
Posts: 3,633
|
Mathias,
How would I access information from an agent through a table? RavenX Pronouns: She/Her Please do not PM me to inquire about datafiles I coded "for personal use" such as Exalted, World of Darkness, AD&D, or Warhammer 40K Roleplaying. I appreciate your interest, but I do not own the Intellectual Property rights to these game systems. Nor do I have permission from any of the Publishers to distribute the data files. As such, I cannot distribute the work I have done with community on these files. They are "for personal use" only. Thank you. I am far too busy these days to answer emails. If you message me here there is no guarantee I will get back to you at all. |
#9 |
Senior Member
Lone Wolf Staff
Join Date: May 2005
Posts: 13,217
|
Again, please give me more specific information about what you're trying to accomplish.
|
#10 |
|
|