Lone Wolf Development Forums  

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

Notices

Reply
 
Thread Tools Display Modes
NewGenesis
Junior Member
 
Join Date: Jan 2014
Posts: 3

Old January 21st, 2014, 11:27 AM
I want to make some weapon enchants for . I just got hero lab so i am unsure of the process
NewGenesis is offline   #1 Reply With Quote
TobyFox2002
Senior Member
 
Join Date: Nov 2013
Location: Andover, Ma
Posts: 632

Old January 22nd, 2014, 09:19 AM
Well the first thing you should do is open up the editor and take a look at some of the entries under the "Item Powers" tab.

The ones that don't add a script to the weapons are easy. They are just text.

Hero Lab doesn't really allow for conditional modifiers for weapons so things that add extra damage for example just enter what needs to be added. Things that give a bonus to things like strength or base damage can be coded with varying degrees of difficulty.

I'm not really a coder but I can give you a start.

If you need to make sure an item grants its ability only when it is equiped use the gIsEquip if statement.

Timing Pre-Levels/5000
Code:
      ~ If the hero is Lawful, and we're equipped, add a negative level
      doneif (hero.tagis[Alignment.Lawful] = 0)
      if (container.parent.field[gIsEquip].value + container.parent.field[wIs2nd].value = 0) then
        done
        endif
      herofield[tNegLevel].value = herofield[tNegLevel].value + 1
Code:
doneif(hero.tagis[Alignment.Lawful] = 0)
Checks the alignment, if it IS lawful the script stops and does not continue.

Code:
if(container.parent.field[gIsEquip].value + container.parent.field[wIs2nd].value = 0)
Checks if it is equiped in either the main or off-hand.

Item powers are attached to armors and as such it requires "container.parent." If it was just armor or weapon alone you would say "field[gIsEquip].value"

Code:
      herofield[tNegLevel].value = herofield[tNegLevel].value + 1
is fairly straight forward, it adds 1 negative level to hero.


This script is for the Axiomatic (Lawful) weapon. As I said, I'm not the best with scripts but I hope this gives a bit of insight. I know the help is a bit incomplete in some areas. And the authoring kit makes my head spin if I try to read it.

Last edited by TobyFox2002; January 22nd, 2014 at 09:22 AM.
TobyFox2002 is offline   #2 Reply With Quote
NewGenesis
Junior Member
 
Join Date: Jan 2014
Posts: 3

Old January 22nd, 2014, 04:38 PM
thanks for the help
NewGenesis is offline   #3 Reply With Quote
Reply


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:06 PM.


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