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 26th, 2014, 03:59 PM
I'm working on allowing a user to create a magic weapon, albeit quite simply for now.

I want the user to be able to select a weapon, and give the following:

Damage Dice (my idea, use a menu_literal for # of dice)
Another menu_literal for the dice (d4/d6/d8/d10/d12)
and another menu_literal for adding something.

So the final result will hopefully look like 2d6+3

In addition to this, I want a menu_literal for To Hit bonus.

So, in my current weapon list, I added an entry at the top:

Code:
<thing id="wpCustom" name="- Custom/Magic Weapon -" description="Melee weapon" compset="Melee">
I have this at the bottom of my equipment.str file:
Code:
<entity id="addMagWep" form="magwepgiz"> </entity>
Now, when a user selects the Custom, my form is in fact popping up. Hooray!!

The user is able to select a weapon from the list, as I want, but custom/magic entry is displayed as well.

However, when I click add in the form, the weapon is listed as - Custom/Magic Weapon -, but of course I want it to list the weapon the user selected.

Also, in my form, where I have the weapon list, the custom entry appears again, so I want to hide it, because if they click it, of course another form pops up.

Please help, I've dug through the sample code, as well as the wiki, and it's gotten me this far, but now I'm stuck.


Thanks,


BoomerET

Castles & Crusades Ruleset for Hero Lab
Hero Lab (5E D&D) -> Fantasy Grounds Character Converter
BoomerET is offline   #1 Reply With Quote
Kairos
Senior Member
Volunteer Data File Author
 
Join Date: Feb 2009
Posts: 173

Old April 26th, 2014, 06:12 PM
Quote:
Originally Posted by BoomerET View Post
The user is able to select a weapon from the list, as I want, but custom/magic entry is displayed as well.
You can filter it out with a tag expression in the table or chooser (assuming that's what you used) using either the candidatefield or candidatepick element.

Quote:
Originally Posted by BoomerET View Post
However, when I click add in the form, the weapon is listed as - Custom/Magic Weapon -, but of course I want it to list the weapon the user selected.
It sounds like you want them to modify an existing weapon, right? If so, why not attach a child element to those weapon things you want them to customize? In other words, let the user add a sword to the hero as normal, but with the option to customize it.

I did this in my Qin data files (see my sig) -- in that game, pretty much an object can be crafted as a legendary object, so most objects have gizmos which allow objects to apply adjustments to the hero. That structure might work well here.

You'll also want a default thing defined for the entity, but it sounds to me like you're doing this all through menu literals on the form then modifying the weapon fields?

Authoring Kit Rule Sets (now with functioning links!):

Qin: The Warring States

Doctor Who: Adventures in Time and Space

MEGS/BoH/DC Heroes (work in progress)
Kairos is offline   #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 26th, 2014, 06:32 PM
Kairos,

Thanks for the reply, gonna take a look at your stuff and creatively borrow what I need.


BoomerET

Castles & Crusades Ruleset for Hero Lab
Hero Lab (5E D&D) -> Fantasy Grounds Character Converter
BoomerET is offline   #3 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 26th, 2014, 07:33 PM
Kairos,

Thanks for pushing me, I simply removed the -CUSTOM- thing, added a actEdit that opens my modifier form.

Next step is to verify that the weapons I modify actually keep the changes.

I appreciate your assistance, thanks.


BoomerET

Castles & Crusades Ruleset for Hero Lab
Hero Lab (5E D&D) -> Fantasy Grounds Character Converter
BoomerET is offline   #4 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 03:58 AM.


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