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
The Cascadian
Junior Member
 
Join Date: Jul 2013
Location: Pacific Northwest
Posts: 1

Old July 12th, 2013, 03:52 PM
With the goal of someday importing elements of the Power Profiles and Gadget Guides, I've been spending some time getting the hang of the editor. Patching in some of my group's simpler house rules hasn't been an issue. But I'm working on chopping out the Close Combat and Ranged Combat skills (done) and replacing them with an "Attack Specialization" advantage that let's the player pick from both ranged and melee attacks and powers, granting a +2 to 1pp. It's all to make slotting in the 3 skill points/1pp house rule a little smoother.

First attempt was based on copying the script from Improved Crit, but that seemed bulky and unnecessary. Second attempt failed based on my then misunderstanding. Current attempt borrows from Throwing Mastery to get the job done. I've got the code below, but here's my question: Is this the best way to accomplish this advantage? Or is there a trick or solution I'm missing?

Code:
     var bonus as number
      bonus = 2 * field[adRanks].value

     ~ If we're not active, get out
      doneif (activated = 0)

      ~ Get the pick we selected - if we chose 'other', just get out now
      perform field[usrChosen1].chosen.setfocus
      doneif (state.isfocus = 0)
      if (focus.tagis[Helper.OtherAtt] <> 0) then
        perform assign[User.NeedDomain]
        done
        endif

      ~ Iterate through our throwing weapons, adding our ranks as a bonus to each
        focus.field[atkAttack].value += bonus
        

      ~ Do the same with our throw-ranged powers
      ~  focus.field[atkAttack].value += bonus
      ~ nexteach
Thanks in advance
The Cascadian
The Cascadian is offline   #1 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 06:30 AM.


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