• 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

Scripting Novice

JMD031

Well-known member
Hi. I am a big fan of this product but I have no experience with making scripts which is problematic for me because I wanted to add a prestige class and some feats to HL.

Is there some kind of tutorial for making scripts available? I'd rather learn it than have someone do it for me.
 
Start the Editor by going to Tools->Editor. Then in the new editor window click on Help. The first option(sorry can't remember what it says) will take you to local web pages that has lots of good information. It also shows how to input new things like classes and feats.

After reading that if you are still having trouble feel free to ask questions here.

Hope that helps.
 
As a novice myself, I would highly recommend using the "Copy Thing" feature when making new stuff. It is much easier to find something close to what you want to do and then making smaller changes. The less you have to write from scratch the better. And good luck! :)
 
For more details on the scripting language, the next thing you should do is review the Authoring Kit wiki. This can also be accessed via the Help menu as well. Within the wiki, you will find complete details on the design concepts, language syntax, script timing, and all the other facets of scripting that you will need.
 
There's a slight problem, actually, when you click the link for the Wiki in that it doubles the slashes in the URL so you end up with a URL of http:////hlkitwiki.wolflair.com//, which obviously doesn't work. Just remove every other slash and it's OK.

That's strange. I just tried it on my machine and it worked fine. Three questions:

What operating system are you running?

What browser are you running?

What browser version are you using? If you aren't sure on this, go to the Help menu within the browser and select "About [browser name]". The screen that appears should tell you.

This will let us test this out with the environment you're using.

Is anyone else having this problem? If so, please post the same data requested above and we'll try to sort this out.
 
That's strange. I just tried it on my machine and it worked fine. Three questions:

What operating system are you running?

What browser are you running?

What browser version are you using? If you aren't sure on this, go to the Help menu within the browser and select "About [browser name]". The screen that appears should tell you.

This will let us test this out with the environment you're using.

Is anyone else having this problem? If so, please post the same data requested above and we'll try to sort this out.

Windows 7 Home Premium (64-bit)
IE 8, fully patched (8.0.7600.16385)

The links on the Hero Lab Help menu all work fine. It's only the authoring kit wiki link that adds the extra slashes.
 
OK, tie in question on getting to the Wiki based upon the above feedback.

If I go to Hero Lab in my start menu and select Authoring Kit it opens up a file from my hard drive. There is a link there that takes me to the online Wiki. This functions for me.

If I go to the help menu in Hero Lab itself the links either take me directly to http://www.wolflair.com/ or other files on my hard drive. I cannot find any link to the Wiki.

Running Windows XP, Chrome, and HL3.6C
 
The links on the Hero Lab Help menu all work fine. It's only the authoring kit wiki link that adds the extra slashes.

Maybe I'm just too exhausted after a grueling - but productive - week at GenCon. Could you please point me to where this link is? If the menus are working fine, I'm not sure where to be looking.

Sorry if I'm just being thick here....
 
If I go to the help menu in Hero Lab itself the links either take me directly to http://www.wolflair.com/ or other files on my hard drive. I cannot find any link to the Wiki.

The Help menu where this resides is the one within the Editor - not the main Hero Lab window. Once you launch the Editor (via the Tools menu), check the Help menu there. Is that working properly for you?

Sorry for not being more clear above....
 
The Help menu where this resides is the one within the Editor - not the main Hero Lab window. Once you launch the Editor (via the Tools menu), check the Help menu there. Is that working properly for you?

Sorry for not being more clear above....

OK. Found it, and it was user error on my part.
 
Maybe I'm just too exhausted after a grueling - but productive - week at GenCon. Could you please point me to where this link is? If the menus are working fine, I'm not sure where to be looking.

Sorry if I'm just being thick here....

There's no link to the wiki in the main app, but there are links to the company website and the latest updates on the website. They both work fine. It's only the wiki link in the editor that puts in the extra slashes.

Maybe the URLs are encoded differently in the main app and the editor. I've got 20 years IT experience so I understand how frustrating these things can be to track down!
 
Ok, wow. That's all like greek to me.

I should have no problem adding the prestige class I want, but my main problem is adding a feat that will make a two handed weapon into a one handed weapon for a character.

If anyone would be willing to walk me through those steps I'd greatly appreciate it.
 
The Dwarven Dorn-Dergar master feat does this actually and is in Dwarves of Golarion. You can see THIS post where someone asked about it and it shows changing a specific weapon from a two-handed to a one-handed weapon. Should point you in the right direction.
 
The Dwarven Dorn-Dergar master feat does this actually and is in Dwarves of Golarion. You can see THIS post where someone asked about it and it shows changing a specific weapon from a two-handed to a one-handed weapon. Should point you in the right direction.

I've looked at this thread and I still can't get it to work like I need it to. It keeps telling me that I've made an error of some kind. I think I'm missing the first part of the steps to do this.
 
Last edited:
It keeps telling me that I've made an error of some kind. I think I'm missing the first part of the steps to do this.
Well then can you get a little more specific. What is the exact error message you are getting? Can you post your script with the timing you are using? What type of Thing is the script attached too (ie Feat, Class Ability, Magic Item).

With that info we can give you a little more help.
 
Well then can you get a little more specific. What is the exact error message you are getting? Can you post your script with the timing you are using? What type of Thing is the script attached too (ie Feat, Class Ability, Magic Item).

With that info we can give you a little more help.

Sure. The error message is ???? when I give it to a character and that is when I use

Code:
foreach pick in hero from BaseWep where "IsWeapon.wPcDwaDor"
  perform eachpick.tagreplace[wClass.TwoHanded,wClass.OneHanded]
  nexteach

in the Eval Rules tab. I didn't change anything else, just pasted that script in the box. When that didn't work I added it to the Eval Script with the same parameters. As I mentioned earlier, I'm not very good at this but I'm hoping to pick it up as I go along. I'm probably just putting the script in the wrong place and not using the right timing and stuff.

It is attached to Feat.
 
So this code should be on an Eval Script on the feat. If anywhere else you can remove it. Then for timing I think its suppose to be Pre-Levels 5,000 and that is set above where you pasted in the script. I can double check that when I get home.

Code:
foreach pick in hero from BaseWep where "IsWeapon.wPcDwaDor"
  perform eachpick.tagreplace[wClass.TwoHanded,wClass.OneHanded]
  nexteach
The next issue is that this script as is will only change the weapon Dwarven Donguer which is a Thing with the unique ID value of wPcDwaDor. So you will need to change that to be the unique ID of the weapon you are trying to change. One way is to go the Weapon Tab in the editor and press the blue button New(Copy). That will show all weapons in HL with the Name and its Unique ID. Find your weapon in the list and write down the Unique ID and change the above value of wPcDwaDor to be what you wrote down.

Otherwise that is pretty much the script. Its pretty small actually. So try changing the above and see if it works then. And when you say the error message is ??? does it actually show a error window with ????? in it? Just I have never seen HL do that before is all.

Thanks
 
The default validation error for an Eval Rule is "???" - I think he was referring to a validation error, rather than a compile error or a run-time error.
 
Ah. See I've learned something today. Thanks.

So if I wanted it to work with all two-handed weapons how would I go about doing that?

Edit: It is still counting the greatsword as a two-handed weapon.
 
Last edited:
Back
Top