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,550

Old September 2nd, 2014, 12:10 PM
Z, try this:

foreach pick in hero where "(Skill.? | Attribute.?)"

_
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   #21 Reply With Quote
zarlor
Senior Member
 
Join Date: Nov 2010
Location: Metairie, LA, USA
Posts: 1,819

Old September 2nd, 2014, 01:51 PM
That works fine as far as not giving any errors as well (should I be using that instead of "foreach pick in hero where "(component.Skill | component.Attribute)"" which also works?) but it still doesn't make a difference to the -4 part. When selected as either a Minor or a Major activating it will give me -4 to everything when it should only give me -4 when it's selected as a Minor Hindrance, as a Major it shouldn't be doing anything. One interesting thing I did notice was on the quick test I did I made a character where the only super power I gave him was level 5 agility (didn't even touch the base stats) which gave it Agi of d12+1, but when checking the Allergy on the In Play tab everything else takes a -4 like it should, but that d21+1 doesn't get modified at all. That could just be a timing thing, though (or maybe related to the stuff you were talking with SeeleyOne about? It does work correctly if I change the timing of this script to Traits/5000, for example.)

Here's how it looks currently, at Pre-Traits/5000
Code:
trustme
var modifier as number
modifier = 4

if (tagis[User.HindMajor] <> 0 ) then
      modifier = 0
endif

if (field[abilActive].value <> 0) then
   foreach pick in hero where "(Skill.? | Attribute.?)"
      eachpick.field[trtRoll].value -= modifier
   nexteach
endif

Lenny Zimmermann
Metairie, LA, USA

Data files authored (please let me know if you see any issues with any of these if you have/use them):
Official (In the downloader)
50 Fathoms, Deadlands: Hell On Earth, Deadlands: Noir, East Texas University, Necessary Evil (requires Super Powers Companion), Pirates of the Spanish Main, Space 1889 (original file by Erich), Tour of Darkness, Weird War II, Weird Wars: Rome
Coming Eventually
Evernight (LWD has completed their review but I have some fixes to make first... although Pinnacle mentioned this might get an overhaul to SWADE so I may just wait for that first. If you just HAVE to have this now, though, just PM me)

Last edited by zarlor; September 2nd, 2014 at 01:57 PM.
zarlor is offline   #22 Reply With Quote
zarlor
Senior Member
 
Join Date: Nov 2010
Location: Metairie, LA, USA
Posts: 1,819

Old September 2nd, 2014, 01:56 PM
Although, actually, I just realized since the current form isn't going to do anything if the Hindrance is Major then I should just replace that "modifier = 0" line with "done" instead. Which I tried, BTW, but the same -4 thing is happening which tells me that the user selecting of a Major Hindrance either is read at a later timing OR it is not tagged as User.HindMajor.

Lenny Zimmermann
Metairie, LA, USA

Data files authored (please let me know if you see any issues with any of these if you have/use them):
Official (In the downloader)
50 Fathoms, Deadlands: Hell On Earth, Deadlands: Noir, East Texas University, Necessary Evil (requires Super Powers Companion), Pirates of the Spanish Main, Space 1889 (original file by Erich), Tour of Darkness, Weird War II, Weird Wars: Rome
Coming Eventually
Evernight (LWD has completed their review but I have some fixes to make first... although Pinnacle mentioned this might get an overhaul to SWADE so I may just wait for that first. If you just HAVE to have this now, though, just PM me)
zarlor is offline   #23 Reply With Quote
SeeleyOne
Senior Member
 
Join Date: Nov 2009
Posts: 891

Old September 2nd, 2014, 02:22 PM
I have found that, as you mentioned, that the timing is later. If it is not going to directly affect a trait, but to add on top of it, or reference it, later on it works better in Traits.

Evil wins because good rolls poorly .... or the players are not paying enough attention to the game.
SeeleyOne is offline   #24 Reply With Quote
CapedCrusader
Senior Member
Volunteer Data File Contributor
 
Join Date: Aug 2009
Posts: 1,550

Old September 2nd, 2014, 04:11 PM
1. OOC - Why trustme on this one?
2. Try using "if (field[hinMajor].value <> 0 ) then". It looks like the Hindrances with User-Definable Severity don't get assigned the HindMajor tag. I'm going to look into that right now.
3. Put your check for abilActive inside the loop so you only check items that fit the criteria.
4. Yes, that timing issue will be fixed in the next update.

Code:
var modifier as number
modifier = 4

if (field[hinMajor].value <> 0) then
      modifier = 0
endif

foreach pick in hero where "(Skill.? | Attribute.?)"
  if (field[abilActive].value <> 0) then
      eachpick.field[trtRoll].value -= modifier
      endif
  nexteach

_
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   #25 Reply With Quote
CapedCrusader
Senior Member
Volunteer Data File Contributor
 
Join Date: Aug 2009
Posts: 1,550

Old September 2nd, 2014, 04:35 PM
OK, I've added code that will add/delete that User.HindMajor tag to match the User-Selectable Severity level.

Also, #3 above may be superfluous. I was bouncing between a couple of windows and may have been addressing something that was already solved.

_
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   #26 Reply With Quote
zarlor
Senior Member
 
Join Date: Nov 2010
Location: Metairie, LA, USA
Posts: 1,819

Old September 2nd, 2014, 05:03 PM
On 1 I used trustme because you said I should try that in an earlier post in this thread. It probably isn't relevant now since I'm not going to do the deactivate thing.

Other than that your code definitely works, Thanks!

Lenny Zimmermann
Metairie, LA, USA

Data files authored (please let me know if you see any issues with any of these if you have/use them):
Official (In the downloader)
50 Fathoms, Deadlands: Hell On Earth, Deadlands: Noir, East Texas University, Necessary Evil (requires Super Powers Companion), Pirates of the Spanish Main, Space 1889 (original file by Erich), Tour of Darkness, Weird War II, Weird Wars: Rome
Coming Eventually
Evernight (LWD has completed their review but I have some fixes to make first... although Pinnacle mentioned this might get an overhaul to SWADE so I may just wait for that first. If you just HAVE to have this now, though, just PM me)
zarlor is offline   #27 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 02: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.