Senior Member
Join Date: Nov 2010
Location: Metairie, LA, USA
Posts: 1,819
|
You don't need anything in the Timing box at all, it's just meant, from what I can tell, as a check on ensuring a more specific timing for the script to run within the set Phase/Priority is all.
What is it trying to do with post d12 values, though? It looks like your trying to take, for example, a d12+1 and make the bonus (6 + ((7/2) - 1)) = 9? Is that right? It would jump from being a +6 bonus at d12 to +9 at d12+1? If it should be 7 then why not just use the straight trtRoll since it's already at the half value? So something like: Code:
perform #traitadjust[trTough,+,hero.child[attrAgi].field[trtRoll].value,"Half Agility"] 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) |
#11 |
Senior Member
Join Date: Nov 2009
Posts: 891
|
You only have to have something in the timing box if it matters. Most of them that I have seen were in Initialization, Pre-Traits, and Traits. And even then the "before this" or "after that" are not always used.
In the Final stage it is messing with it after the fact. It would not be used to calculate other things (which Toughness isn't anyway), so timing is not an issue. Evil wins because good rolls poorly .... or the players are not paying enough attention to the game. |
#12 |
Senior Member
Join Date: Feb 2010
Posts: 874
|
Quote:
Check out the Toughness code if you want to see what I'm talking about. |
|
#13 |
Senior Member
Join Date: Feb 2010
Posts: 874
|
Quote:
|
|
#14 |
Senior Member
Join Date: Nov 2009
Posts: 891
|
How about the eval scipt inside the Thin Men's Agility is Tough ability be something more like this.
Pre-Traits 5000 Code:
var vigor as number var agile as number var bonus as number bonus = 0 ~ Re-Establish Base from Vigor vigor = #trait[attrVig] if (vigor >= 6) then vigor = 6 + round(hero.child[attrVig].field[trtRoll].value / 2,0,-1) endif ~ Establish Base from Agility agile = #trait[attrVig] if (agile >= 6) then agile = 6 + round(hero.child[attrAgi].field[trtRoll].value / 2,0,-1) endif ~ Compare them bonus = agile - vigor ~ Apply to Toughness perform #traitadjust[trTough,+,bonus,"Thin Man"] Evil wins because good rolls poorly .... or the players are not paying enough attention to the game. |
#15 |
Senior Member
Join Date: Feb 2010
Posts: 874
|
It needs to use both, not just one, otherwise they're too brittle; they don't wear any armor so its a substitution for that, and they're supposed to be able to take a single assault rifle round (9+ damage) without folding as extras.
|
#16 |
Senior Member
Join Date: Nov 2009
Posts: 891
|
Oh ok, then just do the agility part and add it. It might work in either Pre-Traits 5000 or Traits 5000, you could try it without the timing in Traits 5000.
Evil wins because good rolls poorly .... or the players are not paying enough attention to the game. |
#17 |
Senior Member
Join Date: Feb 2010
Posts: 874
|
I'll give it a try and report back; though I'm still not sure why the current version isn't doing something.
|
#18 |
Senior Member
Join Date: Feb 2010
Posts: 874
|
Okay, I tried this:
Code:
var agile as a number bonus = 0 agile = #trait[attrAgi] if (agile >= 6) then agile = 6 + round(hero.child[attrAgi].field[trtRoll].value / 2,0,-1) endif bonus = agile perform #traitadjust[trTough,+,bonus,"Thin Man"] |
#19 |
Senior Member
Join Date: Feb 2010
Posts: 874
|
I'm guessing the problem is it isn't actually doing anything with "bonus" in my original code, so when it gets to that part it doesn't add anything, even though it didn't object to the syntax. I'm just not sure what the problem is.
|
#20 |
|
|