Senior Member
Volunteer Data File Contributor
Join Date: Aug 2009
Posts: 1,568
|
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 |
#11 |
Senior Member
Join Date: Jun 2010
Location: Florida
Posts: 257
|
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 |
#12 |
Senior Member
Volunteer Data File Contributor
Join Date: Aug 2009
Posts: 1,568
|
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. |
#13 |
Senior Member
Join Date: Jun 2010
Location: Florida
Posts: 257
|
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) Quote:
Quote:
I will still experiment with this but players will keep tracking by hand for now. |
||
#14 |
Senior Member
Volunteer Data File Contributor
Join Date: Aug 2009
Posts: 1,568
|
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 |
#15 |
Senior Member
Volunteer Data File Contributor
Join Date: Aug 2009
Posts: 1,568
|
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 |
#16 |
Thread Tools | |
Display Modes | |
|
|