Page 1 of 1

Help with Set.js

Posted: Sun Sep 10, 2006 4:40 pm
by stranf
I was attempting to add the ability to adjust the "stradd", "intadd", and "dexadd" by using the set.js.

I copied the above code, and added (sorry for the pseduocode, I have the actual code on another machine)

Code: Select all

CASE STRADD
       OurItem.stradd = nval;
       <output "value set succesfully>;
       break;
I can use the command and it successfuly changes the value, but even if I set "dexadd" to 5 on chainmail pants, it continues to decrease my dexterity by 3.

Now I've noticed that some tags in "Set.js" are different then what they are in baseitem.dfn. For example, baseitem.dfn identifies strength as "str", where set.js adjusts "OurItem.strength" instead of "OurItem.str"

Could there possibly be another name for "addstr"?

I think it would be an AWESOME tool if the GM could change Addstr, addDex, and AddInt on the fly. Currently we have to create a custom DFN file for EVERY type of magic weapon. If we could get these three settings working with the "set" command, then the GM could create them on the fly.


[/code]