Lone Wolf Development Forums  

Go Back   Lone Wolf Development Forums > Hero Lab Forums > HL - Savage Worlds

Notices

Reply
 
Thread Tools Display Modes
CapedCrusader
Senior Member
Volunteer Data File Contributor
 
Join Date: Aug 2009
Posts: 1,568

Old June 21st, 2024, 11:28 AM
The first one might work with a trustme...

_
Currently In Development: Savage Pathfinder, SWADE Fantasy Companion
Future Development: SWADE Super Powers Companion, SWADE Sci-Fi Companion
_
Currently Running: Savage Unity Inc. (homebrew multiverse theme)
Setting Files Supported: Deadlands: Reloaded, Flash Gordon, Gaslight, Hellfrost, Interface Zero 2.0, Seven Worlds, Slipstream, Solomon Kane
Future Setting Files: Savage Judge Dredd
CapedCrusader is offline   #11 Reply With Quote
Gumbytie
Senior Member
 
Join Date: Jun 2010
Location: Florida
Posts: 257

Old June 21st, 2024, 01:40 PM
Wow, once again CapedCrusader has crushed me with a new term I have never heard of!

Never seen it before or how to use it. Would it look something like this?

Code:
field[powPoints].text -= 1 trustme
I don't want to really try that without feedback, I have broken HeroLab enough times randomly trying out code combinations
Gumbytie is offline   #12 Reply With Quote
CapedCrusader
Senior Member
Volunteer Data File Contributor
 
Join Date: Aug 2009
Posts: 1,568

Old June 21st, 2024, 08:52 PM
Oh, forgive me, I thought you knew that one. It goes on the line preceding... although - it's text, so you may have to pull it into a number field to do the math then put it back... and try it without the trustme first. I modify that in Setup/1100 in the Arcane Powers object for the new Limitations and it doesn't need one. Oh, one other thing - most of the time it'll need a minimum value, hence the maximum function so if it's zero or below it'll stop at one.

Code:
var newpoints as number
newpoints = field[powPoints].text
newpoints -= 1
trustme
field[powPoints].text = maximum(newpoints, 1)

_
Currently In Development: Savage Pathfinder, SWADE Fantasy Companion
Future Development: SWADE Super Powers Companion, SWADE Sci-Fi Companion
_
Currently Running: Savage Unity Inc. (homebrew multiverse theme)
Setting Files Supported: Deadlands: Reloaded, Flash Gordon, Gaslight, Hellfrost, Interface Zero 2.0, Seven Worlds, Slipstream, Solomon Kane
Future Setting Files: Savage Judge Dredd

Last edited by CapedCrusader; June 21st, 2024 at 09:02 PM.
CapedCrusader is offline   #13 Reply With Quote
Gumbytie
Senior Member
 
Join Date: Jun 2010
Location: Florida
Posts: 257

Old June 23rd, 2024, 04:09 AM
The gods of Lankhmar appear to be against me (:

I tried your code, Caped, with and without the trustme.

Code:
var newpoints as number
newpoints = field[powPoints].text
newpoints -= 1
trustme (tried it with and without)
field[powPoints].text = maximum(newpoints, 1)
Without trustme I get this error:

Quote:
Error: Syntax error in 'eval' script for Thing 'edgStrongCa1' (Eval Script '#1') on line 4 -> Only derived fields can generally be modified via scripts (field 'powPoints)
With trustme I get this error:

Quote:
Error: Syntax error in 'eval' script for Thing 'edgStrongCa1' (Eval Script '#1') on line 5 -> Only derived fields can generally be modified via scripts (field 'powPoints)
Thanks for all the help so far. I feel guilty when you answer, don't want to take away your time with all of the stuff you working on with Pathfinder, Companions, etc.

I will still experiment with this but players will keep tracking by hand for now.
Gumbytie is offline   #14 Reply With Quote
CapedCrusader
Senior Member
Volunteer Data File Contributor
 
Join Date: Aug 2009
Posts: 1,568

Old June 24th, 2024, 12:05 PM
OK, my mistake.
The reason it works for me is because I've changed that to a derived field in this latest version. I thought trustme would get around that for now.

_
Currently In Development: Savage Pathfinder, SWADE Fantasy Companion
Future Development: SWADE Super Powers Companion, SWADE Sci-Fi Companion
_
Currently Running: Savage Unity Inc. (homebrew multiverse theme)
Setting Files Supported: Deadlands: Reloaded, Flash Gordon, Gaslight, Hellfrost, Interface Zero 2.0, Seven Worlds, Slipstream, Solomon Kane
Future Setting Files: Savage Judge Dredd
CapedCrusader is offline   #15 Reply With Quote
CapedCrusader
Senior Member
Volunteer Data File Contributor
 
Join Date: Aug 2009
Posts: 1,568

Old June 24th, 2024, 12:06 PM
OK, my mistake.
The reason it works for me is because I've changed that to a derived field in this latest version. I thought trustme would get around that for now.

_
Currently In Development: Savage Pathfinder, SWADE Fantasy Companion
Future Development: SWADE Super Powers Companion, SWADE Sci-Fi Companion
_
Currently Running: Savage Unity Inc. (homebrew multiverse theme)
Setting Files Supported: Deadlands: Reloaded, Flash Gordon, Gaslight, Hellfrost, Interface Zero 2.0, Seven Worlds, Slipstream, Solomon Kane
Future Setting Files: Savage Judge Dredd
CapedCrusader is offline   #16 Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -8. The time now is 09:57 PM.


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