• 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

Creating the Agile weapon quality in the editor

Broven

Member
I'm very new to using the editor. I was wondering if someone would be willing to walk me through the steps to create the Agile weapon special quality.

I'd really appreciate it.

Thanks in advance.
 
for me I added an item power. Just use one of the existing weapon powers as a base for creating the item power. Then I edited it to agile for all descriptions. I was too lazy to figure out the script to take the highest bonus of strength or dexterity, so instead I just added a Weapon Attack Bonus and Weapon Damage Adjustment on the character for the selected agile weapon. Set the adjustment for the poper difference between dex and str and was done.
 
With the new tags that where recently added this is really easy to script actually.

So go to the "Item Power" tab in the Editor and just do a new (blank). Then Price (equivalent bonus) is "1". Requirements is set to "Melee weapons".

Then the script looks like this (Pre-Attributes/10000):
Code:
~ No Weapon Finesse feat then get out now!
doneif (hero.tagis[Hero.Finesse] <> 1)
~ Assign Damage uses Dex or Str tag to weapons parent
perform parent.assign[DamageOpt.aDEX]

DamageOpt - if you want to use the higher of Str or the new attribute for damage.

We use Parent here as the Parent is the Gizmo which is where the Weapon is actually stored. So we simply assign to are parent the tag that says use Dex for damage.
 
Iv been trying to do this at the moment, and i dont really understand i have never scripted before and im not really looking to learn much but i want to do this, to simpilfy things can some one elabrate on shadows discription for me :c im lost
 
when it says (Pre-Attributes/10000) not sure what that means or where the script he posted actually goes also i have no idea how to tag gizmo as a parent im really sorry >.<
 
when it says (Pre-Attributes/10000) not sure what that means or where the script he posted actually goes also i have no idea how to tag gizmo as a parent im really sorry >.<
Sorry I missed this question SO long ago but as I recently got questions about this thread I figure I may as well complete the info for others.

The above info assumes you have created a .user file and by going to "Tools->Show Editor". Then gone to "Equipment->Item Power" in the editor.

Then do a new (blank). Then Price (equivalent bonus) is "1". Requirements is set to "Melee weapons".

You have to add the "script" that is the most important. In the top Right corner click on "Eval Scripts" and add a new eval script.

Set the Phase to Pre-Attributes and Priority to 10000. Then copy the "Code" that follows into the "Script:" section.
Code:
~ No Weapon Finesse feat then get out now!
doneif (hero.tagis[Hero.Finesse] <> 1)
~ Assign Damage uses Dex or Str tag to weapons parent
perform parent.assign[DamageOpt.aDEX]

Press "OK" and save. Then click on "Test Now!" on the top left corner to get it to compile.
 
Back
Top