Lone Wolf Development Forums  

Go Back   Lone Wolf Development Forums > Hero Lab Forums > HL - Mutants & Masterminds
Register FAQ Community Today's Posts Search

Notices

Reply
 
Thread Tools Display Modes
dartnet
Senior Member
Volunteer Data File Contributor
 
Join Date: Jan 2007
Posts: 591

Old January 2nd, 2009, 11:59 AM
I want to create a weapon accessory that adds +2 to the base damage and improves the critical range by 1.

How do I do that?
dartnet is offline   #1 Reply With Quote
Colen
Senior Member
Lone Wolf Staff
 
Join Date: Dec 2008
Posts: 4,690

Old January 12th, 2009, 03:00 PM
I just realised that the editor isn't really set up to do weapon accessory creation right now, but here's how you can do it:

1) In the editor, go to the Equipment tab. Make a copy of an existing accessory, such as the Suppressor.

2) Change the name, unique id, cost etc appropriately.

3) Now you need to add a script that changes the base damage and critical range. Click the "Eval Scripts" button and add a script with a phase / priority of around "Traits Calculation" / "50000":

Code:
parent.field[atkDC].value += 2
parent.field[atkCrit].value -= 1
4) Reload the game system, and add a weapon with your new accessory - it should now be working.
Colen is offline   #2 Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -8. The time now is 10:24 PM.


Powered by vBulletin® - Copyright ©2000 - 2024, vBulletin Solutions, Inc.
wolflair.com copyright ©1998-2016 Lone Wolf Development, Inc. View our Privacy Policy here.