Lone Wolf Development Forums

Lone Wolf Development Forums (http://forums.wolflair.com/index.php)
-   HL - Savage Worlds (http://forums.wolflair.com/forumdisplay.php?f=59)
-   -   Script based on created User Tag (http://forums.wolflair.com/showthread.php?t=67968)

Gumbytie August 26th, 2023 11:18 AM

Script based on created User Tag
 
So I have an Edge that applies a +1 to attack bonus for "light" swords only (aka rapier, heavy rapier, shortsword). Since I am nit using Standard Gear, all these weapons reside in my .user file.

So I added a Tag: User Light, to each of these weapons. Then I applies this script to my Edge.

Pre-Traits/5000
Code:

foreach pick in hero from WeapMelee
  if (eachpick.tagis[User.Light] <> 0) then
      eachpick.field[wpBonus].value += 1
  endif
nexteach

No erros, just doesn't apply the +1 bonus. So my first question, can we script using Tags we create like above? If so, any idea why this doesn't work then. I tried using a Debug but it didn't like the syntax: debug User.Light

Gumbytie August 26th, 2023 11:22 AM

Never mind, I finally got this to work.


All times are GMT -8. The time now is 11:45 PM.

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