Lone Wolf Development Forums  

Go Back   Lone Wolf Development Forums > Hero Lab Forums > HL - Authoring Kit
Register FAQ Community Today's Posts Search

Notices

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
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
 


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 09:36 AM.


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