Lone Wolf Development Forums

Lone Wolf Development Forums (http://forums.wolflair.com/index.php)
-   HL - D&D 5th Edition SRD (http://forums.wolflair.com/forumdisplay.php?f=89)
-   -   Scripting question (http://forums.wolflair.com/showthread.php?t=58833)

Mergon July 23rd, 2017 03:11 PM

Scripting question
 
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.

ShadowChemosh July 23rd, 2017 04:07 PM

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. :)

Mergon July 23rd, 2017 04:18 PM

I knew I was missing a command. The assignstr isn't in the help files. Many thanks.

ShadowChemosh July 23rd, 2017 05:12 PM

Quote:

Originally Posted by Mergon (Post 253213)
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 :)


All times are GMT -8. The time now is 07:17 AM.

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