• 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

Scripting question

Mergon

Well-known member
ShadowChemosh, this is most likely aimed at you again. :)

I want to take a value from a field like speed (say its 30).

From there I want to convert it to a tag Value.0 to Value.30

How would I convert a convert a tag Value.0 to Value.30?

I know to use perform pulltags[Value.?] to pull the existing tag but how do I create the new tag on the fly then push it back onto the ability.

In this case I want to take your current walking speed and grant either a swim or climb speed of the same value.
 
So assuming the 30 is in field named abValue and you want to assign the tag to yourself. Here is how you would do that:

Code:
perform assignstr["Value." & field[abValue].value]

Obviously extrapolate changes based on the location of the field and where you want to assign the value too. :)
 
I knew I was missing a command. The assignstr isn't in the help files. Many thanks.
Your about at the experience level where I gave up on the Help files. About now I would recommend using the HL Wiki instead. ;)

Eventually comes the time when you start to tear into the Savage World files because they have the full .dat files exposed. Then you can learn the Authoring Kit features which really let you make fun scripts! :p :)
 
Back
Top