• 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

Create Magic Item that gives +2 Trip

Prethen

Well-known member
Is there a simple way to create a Wondrous magic item that has a +2 Trip CMB bonus? I'm assuming the Eval script would see if the item is equipped and then add the bonus.
 
It will depend on the type of bonus you are after as to the exact details - you can check the specific fields by looking in the menu under Develop -> Floating Info Windows -> Selection Fields, then picking Trip from the list - the example below is for an untyped bonus.

You will be after an eval script that does something along the lines of:

Code:
      ~ if item isn't equipped, get out now
      doneif (field[gIsEquip].value = 0)

      ~ increase trip cmb by +2
      hero.child[manTrip].field[cmbBonus].value += 2

Timing shouldn't be a big problem on this one, I'd probably drop it in around Final Phase 10000 myself, but you should have quite a bit of leeway.

Your only major difference with types is that if you're looking at a non-stacking type (using competence for the example), you'll be after something on the lines below instead.

Code:
      hero.child[manTrip].field[cmbBonComp].value = maximum(hero.child[manTrip].field[cmbBonComp].value,2)
 
The bonus would be a non-specified one, so I'm thinking what you noted above should work (first set of code). I really appreciate the assistance.

I'm trying to get a bead on how to do some scripting in Hero Lab. I've seen a couple of tutorials on YouTube. Is there any sort of comprehensive scripting document/tutorial available from Lone Wolf?

Ironically enough, I've been a software developer for my entire career (C#, Javascrpt, Objective-C, SQL, etc.). This actually should be easy but I'm quite confused whenever I try to figure out how to script something up. What I really need is a comprehensive reference guide and some solid examples that cover a large gamut of the types of scripts people normally do.
 
Oddly enough, I've been debating trying to put together some form of community KB/API for those of us crazy enough to do lots of our own work on HL, potentially an interesting project if people feel it would be worthwhile.

There is a sticky by Mathias called "Editor and Scripting Resources" if you want something to look at in the meantime however.
 
Oddly enough, I've been debating trying to put together some form of community KB/API for those of us crazy enough to do lots of our own work on HL, potentially an interesting project if people feel it would be worthwhile.

There is a sticky by Mathias called "Editor and Scripting Resources" if you want something to look at in the meantime however.

I did review those links last night. While I do appreciate the effort, that information basically seems to go over the fundamentals of putting various elements of scripts together. What it needs is a lot more context.

What's really needed, is a rock solid document built of concrete examples, such as a chapter on feats and sections that show how to put various types of feats into play that help the new coder to deal with things like effects in constant play, versus those that are circumstantial, etc.

I think your example above of how to put a magic item into play with different types of bonuses (stacking and non-stacking) was very helpful.

The tutorial I watched showed some introductory stuff that should be included in such a document, such as how to turn on the mode that allows you to see all the variables.

I will have to admit that on occasion, I'd like to put a script together that mimics the ability from a Paizo document. I realize there might be a bit of conflict of interest here with Lone Wolf. For instance, I'd love to create the Mendevian Priest from Inner Sea Magic, but my brain goes on overload when trying to figure out how to make that actually work. And, I'm sure Hero Lab would prefer I buy the download, but for just a item or two from a book, I'd rather try to put it together myself (am I bad?).
 
You are certainly not bad. I am proud that our system is flexible enough for people to build their own stuff, and thankful there is such a vibrant community expanding content and helping each other out. It isn't so much a conflict of interest thing, as a resources thing. We don't have a unified API because although we'd like to set up better documentation for the community, that project keeps losing out when weighed against our other responsibilities. And in my opinion the current spread of resources (scattered though they be) coupled with the ability to copy existing things to view how they work and the forum where we can answer questions, is good enough for now.

Believe me man, I can sympathize. There are still things that I wanted to do when I joined the company years ago I haven't yet gotten a chance to take a crack at, but that's the reality of our small team. Please don't think us some Snidely Whiplash types trying to force you to buy packages while twirling our moustaches and cackling behind our black capes.
 
Thanks, Aaron, I appreciate your candidness.

I've bought 4 additional sources so far and I'm thrilled with the overall quality of Hero Lab. I just have to draw the line somewhere as far as what I really need to buy. The rest, like this stuff, I'll try to figure out.
 
For "solid" examples of Feats, classes, and many other Things is to find something similar and do a "New Copy" and look at its scripts. That will give you concrete examples to work from.
 
For "solid" examples of Feats, classes, and many other Things is to find something similar and do a "New Copy" and look at its scripts. That will give you concrete examples to work from.

I totally agree. I actually tried that a few times. Sometimes that will work. However, I need to find an item that replicates the effect I want and that's where I sometimes fail.

I will try to figure out as much as I can on my own. This early on though, I'll probably need a bit of guidance. Fortunately, there's not a lot of things I want to try adding at them moment.
 
Back
Top