Senior Member
Volunteer Data File Contributor
Join Date: Jan 2007
Posts: 591
|
How do I do the following?
Set a prerequisite the requires any 4 arcane powers. Script it so that an arcane background gets 1 power and 4 power points each ranks. An arcane background that gets 1 skill points every time a new power edge is taken. Thanks in advance. |
#1 |
Senior Member
Join Date: Nov 2010
Location: Metairie, LA, USA
Posts: 1,819
|
Quote:
Quote:
Quote:
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) |
|||
#2 |
Senior Member
Volunteer Data File Contributor
Join Date: Jan 2007
Posts: 591
|
I got it to work using this script.
var total as number foreach pick in hero where "Arcane.?" if (eachpick.field[trtFinal].value >= 2) then total += 1 endif nexteach ~if we have at least two, we're valid validif (total >= 4) if (@ispick <> 0) then altpick.linkvalid = 0 endif |
#3 |
Senior Member
Join Date: Nov 2010
Location: Metairie, LA, USA
Posts: 1,819
|
You might want to put your validif line into the loop with and use a done command so you can break out of the loop once you hit your target. See http://hlkitwiki.wolflair.com/index....e=Flow_Control
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) |
#4 |
Senior Member
Join Date: Nov 2009
Posts: 891
|
An easier method would be to check for #resmax[resPowers] > 3
The character knows that many, whether or not they have actually been chosen. It is a simpler script and does not need any looping. Quote:
Code:
var xp as number var modifier as number xp = hero.child[resXP].field[resMax].value modifier = 1 ~ Determine XP table if (xp >= 20) then modifier += 1 endif if (xp >= 40) then modifier += 1 endif if (xp >= 60) then modifier += 1 endif if (xp >= 80) then modifier += 1 endif ~ Apply the bonus #resmax[resPowers] += modifier modifier = modifier*4 #trkmax[trkPower] += modifier Quote:
If it is in a Mechanic another edge that watches for the new power edge, do it like this: Code:
var modifier as number modifier = 0 ~Check for New Power Edges foreach pick in hero from Edge if (eachpick.tagis[Edge.edgNewPwr] <> 0) then modifier += 1 endif nexteach ~Apply modifier to skills #resmax[resSkill] += modifier Code:
perform #resspent[resSkill,-,modifier,"Free Skill"] perform #traitadjust[skSpellcst,+,modifier,"Spellcasting d6"] hero.child[skSpellcst].field[trtMaximum].value += modifier Evil wins because good rolls poorly .... or the players are not paying enough attention to the game. |
||
#5 |
Senior Member
Volunteer Data File Contributor
Join Date: Jan 2007
Posts: 591
|
Thank you gentlemen.
|
#6 |
|
|