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)
-   -   size values (http://forums.wolflair.com/showthread.php?t=61399)

Mjolnirh October 12th, 2018 11:28 AM

size values
 
these lines work just fine

perform hero.findchild[BaseRace].tagreplace[RaceSize.?,RaceSize.Medium0]
perform hero.findchild[BaseRace].tagreplace[RaceSize.?,RaceSize.Large1]
perform hero.findchild[BaseRace].tagreplace[RaceSize.?,RaceSize.Huge2]

however

perform hero.findchild[BaseRace].tagreplace[RaceSize.?,RaceSize.Small-1]

does not work. i'm guessing its because it sees the - as an operator

and how would i change the hit points from lets say 35 (any value) to 5

i have tried herofield[tHP].value =5, but that does not seem to work

Mjolnirh October 12th, 2018 12:10 PM

ok found it!!

perform hero.findchild[BaseRace].tagreplace[RaceSize.?,RaceSize.Small11]
perform hero.findchild[BaseRace].tagreplace[RaceSize.?,RaceSize.Tiny12]

still struggling with the Hit point thing though

this is for adding druid shapes as activated abilities. I got everything to change except the hp points, so essentially it works

ShadowChemosh October 12th, 2018 12:44 PM

Quote:

Originally Posted by Mjolnirh (Post 271568)
i have tried herofield[tHP].value =5, but that does not seem to work

Code:

herofield[tHP].value -= 5
or
Code:

herofield[tHP].value = 5 - herofield[tHP].value

Mjolnirh October 12th, 2018 01:40 PM

hmmm neither of those worked, however :)

I was inspired

I came up with this

var minuses as number
minuses = herofield[tHP].value - 5

herofield[tHP].value -= minuses

applied to final phase and it changed the current hit points to 5, which works for my purposes

if your a mastiff you take 5 HP you revert back to your original form w00t

Mjolnirh October 12th, 2018 01:51 PM

http://aesirinhall.com/images/before%20change.PNG

http://aesirinhall.com/images/after%20change.PNG

ShadowChemosh October 12th, 2018 02:18 PM

Quote:

Originally Posted by Mjolnirh (Post 271576)
hmmm neither of those worked, however :)

They work... but if you are at the wrong timing then your final value gets overridden.

Trying to mess with HP require a very specific timing.


All times are GMT -8. The time now is 11: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.