Lone Wolf Development Forums  

Go Back   Lone Wolf Development Forums > Hero Lab Forums > HL - Authoring Kit

Notices

Reply
 
Thread Tools Display Modes
BoomerET
Senior Member
 
Join Date: Apr 2012
Location: Livermore, CA
Posts: 492
Send a message via ICQ to BoomerET Send a message via Yahoo to BoomerET Send a message via Skype™ to BoomerET

Old April 6th, 2014, 12:23 PM
This is for my Castles & Crusades plugin (ruleset?)

I have a tab that displays a characters abilities and senses.

One of these abilities is 'Weapon Specialization', which has a chooser where the player chooses which weapon to specialization.

I need to access this in another tab, and I can't believe it's causing me so much grief considering what I've accomplished so far with Hero Lab.

The template ID: chClPick
Portal within that template ID: weapSpec

Please help!!


BoomerET

Castles & Crusades Ruleset for Hero Lab
Hero Lab (5E D&D) -> Fantasy Grounds Character Converter
BoomerET is offline   #1 Reply With Quote
Mathias
Senior Member
Lone Wolf Staff
 
Join Date: May 2005
Posts: 13,213

Old April 6th, 2014, 01:07 PM
Please clarify what you're trying to accomplish. I'm not sure what you're trying to do.
Mathias is online now   #2 Reply With Quote
BoomerET
Senior Member
 
Join Date: Apr 2012
Location: Livermore, CA
Posts: 492
Send a message via ICQ to BoomerET Send a message via Yahoo to BoomerET Send a message via Skype™ to BoomerET

Old April 6th, 2014, 04:56 PM
I have a chooser table:
Code:
<portal
    id="weapSpec"
    style="chsNormal"
    width="120">
    <chooser_table
      component="WeaponBase"
      choosetemplate="LargeItem">
      <chosen><![CDATA[
        if (@ispick = 0) then
          @text = "{text clrwarning}Select Weapon"
        else
          @text = field[name].text
          endif
        ]]></chosen>
      <titlebar><![CDATA[
        @text = "Choose the weapon for your character"
        ]]></titlebar>
      </chooser_table>
   </portal>
This portal is within the template:

Code:
<template
    id="chClPick"
    name="Ability Pick"
    compset="ClassAbil"
    marginhorz="3"
    marginvert="2">
I'm trying to get the item that the user selected from the chooser.

I'm doing this in a different tab from where the selection is being made.


BoomerET

Castles & Crusades Ruleset for Hero Lab
Hero Lab (5E D&D) -> Fantasy Grounds Character Converter
BoomerET is offline   #3 Reply With Quote
Mathias
Senior Member
Lone Wolf Staff
 
Join Date: May 2005
Posts: 13,213

Old April 6th, 2014, 05:13 PM
Why not just add a new table whose list expression will mean that the selected item gets shown there? That way, you're displaying to the user the selection that's been made.
Mathias is online now   #4 Reply With Quote
BoomerET
Senior Member
 
Join Date: Apr 2012
Location: Livermore, CA
Posts: 492
Send a message via ICQ to BoomerET Send a message via Yahoo to BoomerET Send a message via Skype™ to BoomerET

Old April 6th, 2014, 05:45 PM
It's already being shown on the other tab, I need to add a display of +1, +2 or 0 based on the selection. (Depending on the PC's level)

Just because the user has chosen it as a specialization, it doesn't necessarily mean he owns that particular weapon.

Castles & Crusades Ruleset for Hero Lab
Hero Lab (5E D&D) -> Fantasy Grounds Character Converter
BoomerET is offline   #5 Reply With Quote
BoomerET
Senior Member
 
Join Date: Apr 2012
Location: Livermore, CA
Posts: 492
Send a message via ICQ to BoomerET Send a message via Yahoo to BoomerET Send a message via Skype™ to BoomerET

Old April 6th, 2014, 09:06 PM
Yup, going to have to do it another way, because the way I'm doing it, it populates the weapon chosen for specialization automatically in the armor/weapons tab.

That's not the results I'm after, so going to have to do it like you suggested of course.

Castles & Crusades Ruleset for Hero Lab
Hero Lab (5E D&D) -> Fantasy Grounds Character Converter
BoomerET is offline   #6 Reply With Quote
BoomerET
Senior Member
 
Join Date: Apr 2012
Location: Livermore, CA
Posts: 492
Send a message via ICQ to BoomerET Send a message via Yahoo to BoomerET Send a message via Skype™ to BoomerET

Old April 6th, 2014, 09:31 PM
Just finished that little bit, and it's working great.

No idea why I got stuck for two days trying to figure something out that wasn't going to work the way I had it.


Baby steps!


BoomerET

Castles & Crusades Ruleset for Hero Lab
Hero Lab (5E D&D) -> Fantasy Grounds Character Converter
BoomerET is offline   #7 Reply With Quote
Mathias
Senior Member
Lone Wolf Staff
 
Join Date: May 2005
Posts: 13,213

Old April 6th, 2014, 10:14 PM
Drop-down menus create a link to something.

Choosers add that thing to the character.

I'm guessing that was the confusion?
Mathias is online now   #8 Reply With Quote
BoomerET
Senior Member
 
Join Date: Apr 2012
Location: Livermore, CA
Posts: 492
Send a message via ICQ to BoomerET Send a message via Yahoo to BoomerET Send a message via Skype™ to BoomerET

Old April 7th, 2014, 07:58 AM
Thanks for the help Mathias, I'm sure as time goes on I'll have more of course.

I can't believe I'm still working on this though. Usually projects I end up getting bored after a few days to a week, but I've been working on this for months (a year?).

I did take a break for a few months at Christmas, but I'm back and plugging away.

One of the users of my plugin (ok, so what do we call them?) is a Beta backer of Realm Works, and was curious how my plugin interacted.

Well, it works awesome. I have some work to do on the stat block, but I'm very pleased with the outcome.


BoomerET

Castles & Crusades Ruleset for Hero Lab
Hero Lab (5E D&D) -> Fantasy Grounds Character Converter
BoomerET is offline   #9 Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -8. The time now is 08:40 AM.


Powered by vBulletin® - Copyright ©2000 - 2024, vBulletin Solutions, Inc.
wolflair.com copyright ©1998-2016 Lone Wolf Development, Inc. View our Privacy Policy here.