• Please note: In an effort to ensure that all of our users feel welcome on our forums, we’ve updated our forum rules. You can review the updated rules here: http://forums.wolflair.com/showthread.php?t=5528.

    If a fellow Community member is not following the forum rules, please report the post by clicking the Report button (the red yield sign on the left) located on every post. This will notify the moderators directly. If you have any questions about these new rules, please contact support@wolflair.com.

    - The Lone Wolf Development Team

Programming a New Weapon Power

Croddwyn

Member
So I have a GM who loves to get creative with her magic items. Which is awesome. As a result, I've been delving into the editor to add these things to HL so that they're easier to use and have less to remember. I thought her latest would be pretty straight forward, but I've been blocked.

All it is, really, is an innovation on the icy burst power. Only it's 2d6 instead of 1d6 normally. Oh, and it's 10 charges with each charge a minute per day. So I copied icy burst, named it icy blast, edited the script so the 1d6 would be 2d6 and I'm golden. Only I want it to show up in the tracker. Which is where I died. If anyone could point me in the right direction, I'd be very thankful.

At first, I tried simply enabling the "Show in Tracked Resources List". Not ideal, but it's a start, right? Only it didn't actually show. Next, I tried adding a script. I tweaked the timing to be both before and after the already existing script (Final phase) and I didn't think it'd be that complex. Here's all I thought it needed to be:

Code:
if (parent.field[gIsEquip].value <> 0) then
 perform assign[User.Tracker]
endif

Again, no go. I entered values for the charges and sure enough, it has the field "trkMax" with the value 10. And it added the tag "Usage" with the value "DayMinute". But nothing shows on tracker. And yes, I tried adding and removing and readding both the weapon power and the entire weapon and no dice.

Help?
 
Your missing the tag Helper.Shadow. In the editor on "Item Powers" would be the "Show On Special Tab?" must be checked marked to get Tracked Resources or Activation's to display.
 
Well, now I have a weird follow-up. My GM added a thematic twist to the Skald's axe that, in addition to a shocking blast that works like the icy blast above also includes the ability to summon a bat swarm a couple times a day. Which I'd like to have show up in the spells tab as a "Magic Item Spell". Which you can totally do with a wondrous item.

Since I noticed that adding castable spells with a wondrous item adds a bootstrap, I used that as my model and simply created the shocking blast as above. Which works great. But then I added a bootstrap for the spell (spSummSwa2) and manually added the field "trkMax" and the tags Helper.ItemSpell and Usage.ChrDay to it. Unfortunately, that doesn't seem to work. Is there an option I'm missing here as well? Or would I need to script that (and if so, any hints along how to do that would be appreciated)?

Thanks again, and yes, she's a fun GM to play with... :)
 
But then I added a bootstrap for the spell (spSummSwa2) and manually added the field "trkMax" and the tags Helper.ItemSpell and Usage.ChrDay to it. Unfortunately, that doesn't seem to work. Is there an option I'm missing here as well?
Helper.Shadow

Item Powers get attached to a Gizmo NOT the hero. To get the information to the Hero you have to Shadow the item power. This is the same for anything you bootstrapped to the item power. Add the "Helper.Shadow" tag to the spell or spells you bootstrapped. :)
 
Ah. I see. That makes sense. It doesn't piggy back on the Helper.Shadow on the power because it's bootstrapped in. Good to know and thanks again!
 
I am sure my post isn't helping anything but I can plainly see where the issue of understanding Helper.Shadow is. Knowing how Herolab segments categories of things like hero and item and etc. I do however find this thread rather insightful so thanks to all who added to it.
 
I am sure my post isn't helping anything but I can plainly see where the issue of understanding Helper.Shadow is. Knowing how Herolab segments categories of things like hero and item and etc. I do however find this thread rather insightful so thanks to all who added to it.
Nice! :)

As always I would recommend reading the Glossary of Terms for the Editor. Then check out FAQ#2 for all the places to learn about the editor including YouTube videos.
 
Back
Top