Lone Wolf Development Forums  

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

Notices

Reply
 
Thread Tools Display Modes
Gumbytie
Senior Member
 
Join Date: Jun 2010
Location: Florida
Posts: 242

Old July 25th, 2023, 05:42 PM
Important part: He may add his Charisma to Intimidation rolls. A negative score is treated as positive for this (and the scoundrel has a bad reputation).

Code: Pre-Traits 5000

Code:
var bonus as number
bonus = #trait[trCharisma]

if (field[abilActive].value <> 0) then
perform #traitroll[skIntimid,+,bonus,"Reputation"]
endif
Timing: Calc trtFinal

No errors I can see, just doesn't work. Any thoughts or suggestions?

I probably shouldn't be coding so late either
Gumbytie is online now   #1 Reply With Quote
CapedCrusader
Senior Member
Volunteer Data File Contributor
 
Join Date: Aug 2009
Posts: 1,556

Old July 26th, 2023, 07:33 AM
Is there a value in trCharisma? That got eliminated with SWADE.

_
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   #2 Reply With Quote
Gumbytie
Senior Member
 
Join Date: Jun 2010
Location: Florida
Posts: 242

Old July 26th, 2023, 11:37 AM
Sorry, this is for Deluxe Version of Lankhmar.

When I work on source files, I stay true to original rules version. Then I work on conversion to SWADE. Some people haven't made switch to SWADE after all.

Last edited by Gumbytie; July 26th, 2023 at 11:40 AM.
Gumbytie is online now   #3 Reply With Quote
CapedCrusader
Senior Member
Volunteer Data File Contributor
 
Join Date: Aug 2009
Posts: 1,556

Old July 27th, 2023, 07:55 AM
I'd put a debug statement in there and ensure there was a value in trCharisma. Also make sure the checkbox on the In Play tab is checked, it's looking for abilActive.

_
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   #4 Reply With Quote
Gumbytie
Senior Member
 
Join Date: Jun 2010
Location: Florida
Posts: 242

Old July 27th, 2023, 10:50 AM
Well, the In Play tab is in deed checked, that all works fine.

All the time I have written stuff, I didn't realize you could attached a debug statement to an actual item. Live and learn.

So based on the above code, what exactly and how does inserted debug code look like?
Gumbytie is online now   #5 Reply With Quote
CapedCrusader
Senior Member
Volunteer Data File Contributor
 
Join Date: Aug 2009
Posts: 1,556

Old July 28th, 2023, 07:40 AM
example:
debug "hind_max " & hind_max

The word DEBUG followed by what you want to display, anything inside double quotes is a literal.

Then after it runs go to Developer>Floating Info Windows>Show Debug Output

_
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   #6 Reply With Quote
Gumbytie
Senior Member
 
Join Date: Jun 2010
Location: Florida
Posts: 242

Old July 28th, 2023, 08:16 AM
That proved very helpful. Definitely gonna remember that trick moving forward.

So it must be a partial timing thing then I have no idea.

So if I adjust timing of script to:

Final 2100

Code:
var bonus as number
bonus = #trait[trCharisma]

      if (field[abilActive].value <> 0) then
        perform #traitroll[skIntimid,+,bonus,"Reputation"]
        endif

debug #trait[trCharisma]
debug bonus
The debug window shows a 2 for both of those values. But it still doesn't add that "bonus" to the skill Intimidation. So one step forward at least.
Gumbytie is online now   #7 Reply With Quote
CapedCrusader
Senior Member
Volunteer Data File Contributor
 
Join Date: Aug 2009
Posts: 1,556

Old July 29th, 2023, 12:39 AM
Put a debug inside the if statement to make sure it's getting inside the loop.

_
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   #8 Reply With Quote
Gumbytie
Senior Member
 
Join Date: Jun 2010
Location: Florida
Posts: 242

Old July 29th, 2023, 05:44 AM
Hmm, strange. I did as suggested.

Final/2100

Code:
var bonus as number
bonus = #trait[trCharisma]

      if (field[abilActive].value <> 0) then
        perform #traitroll[skIntimid,+,bonus,"Reputation"]

       debug #trait[trCharisma]
       debug bonus

        endif
And the Debug Output shows 2 for both.

I basically took Attractive Edge (makes Charisma 2), which should add the "bonus" of 2 to skill Intimidation.

So everything "appears" to be working data-wise just not scripting out the addition of 2 bonus.
Gumbytie is online now   #9 Reply With Quote
CapedCrusader
Senior Member
Volunteer Data File Contributor
 
Join Date: Aug 2009
Posts: 1,556

Old July 29th, 2023, 09:47 AM
Final/2100 may be a bit late, timing wise. Most of the traitroll adjustments happen at Pretraits/5000. If you're running into issues where trCharisma isn't done being modified before this happens, try a Pretraits/5500. That puts it just after the bulk of the adjustments.

_
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   #10 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 05:57 AM.


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