Junior Member
Join Date: Jan 2014
Posts: 3
|
I want to make some weapon enchants for . I just got hero lab so i am unsure of the process
|
#1 |
Senior Member
Join Date: Nov 2013
Location: Andover, Ma
Posts: 632
|
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) Code:
if(container.parent.field[gIsEquip].value + container.parent.field[wIs2nd].value = 0) 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 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. |
#2 |
Junior Member
Join Date: Jan 2014
Posts: 3
|
thanks for the help
|
#3 |
|
|