• 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

Strange Editor Problem

Lawful_g

Well-known member
I have run into a weird problem with custom content I have been entering through the editor. I put in an Eval script, and then it disappears from the editor. It is still somewhere in there functioning though, because I can see it changing the name of the item (to reflect strength score), but for some reason not being displayed in the editor. This is for the Bow of Elvenkind custom magic weapon.
 
I'll need a more complete description of the steps involved, I'm afraid. What exactly did you do? What exactly are you seeing?

Is the problem fixed if you close and re-open the editor? Is the problem fixed if you close and re-open Hero Lab?

Are you sure the name change is due to your script, and not the scripts that add STR bonus to a composite bow?
 
The bow of Elvenkind is a composite longbow that alters it's pull to match the strength of any elf wielding it. I wrote an eval script that checks if the race is Elven, then if so adjusts the str bonus for the composite longbow.

I went back later after testing the result and wanted to add a script to change the livename of the item based on the Str mod, but the item now said that it had 0 eval scripts.... that is weird, I thought, but I wrote the livename changing script anyway.

When testing things I generally close the editor and HL, then restart HL, because of previous experience with things not updating on reload of the game system. When I did this and tested the item, everything seems to be in order, however, upon looking at the item in the editor the first Eval script (the one adjusting the Str bon if you are elven) was back, and the livename Eval script was gone (but obviously still functioning according to my tests).
 
Please email me the file - my address is (my user name here)@wolflair.com

Does closing and restarting HL (not just quick-reloading the d20 files) help?
 
Sorry, looks like I was just really spacing out or tired maybe. I found the code for changing the livename, it was on a completely different weapon (which I discovered while testing that item, a staff that was being added and chanding it's name to Bow of Elvenkind)....

I was sure when I wrote that script that the Bow of Elvenkind name was not reflecting changes in Strength bonus, but it looks like I was wrong there. I made another custom Composite longbow magic item, and see that even without any manipulation of the livename it still lists the strength bonus in parenthesis after the name...

Once again, sorry for the false alarm.
 
Back
Top