• 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

Crital Threat Range

Frodie

Well-known member
I am making a Item Power that increases a firearms threat range by 1. IDk if I am on the right track, but the script loads. I think timing is the issue. I have tried all over, anyways any ideas?

Code:
 perform container.parent.tagmax[wCritMin.?] - 1
 
When I've done this I would get the tagvalue[wCritMin.?] to a variable, lets say crit, then crit -= 1, then delete the tag off the item, then use assignstr["wCritMin." & crit]
 
I was thinking something like

Code:
var crit as number

   crit = tagvalue[wCritMin.?]
   crit -= 1
   perform container.parent.delete[wCritMin.?]
   perform container.parent.assignstr["wCritMin." & crit]

but I get -
Code:
Invalid syntax for tag template
 
Got it -

Code:
 Final 50000

var crit as number

  crit = container.parent.tagvalue[wCritMin.?]
  crit -= 1
  perform container.parent.delete[wCritMin.?]
  perform container.parent.assignstr["wCritMin." & crit]
 
Back
Top