Senior Member
Join Date: Jul 2007
Location: Walbridge, Ohio
Posts: 767
|
Hey All,
Happy Holidays I just recieved the Dotor Who RPG a my Door Step I have only thumbed through the books at this time but is anyone else looking forward to this or thinking of working on programing this system? I can not even think what it would entail until I have at least read the rules but I thought that maybe someone out there has already looked it over and maybe has started this one. Just hopeing |
#1 |
Senior Member
Join Date: Jul 2007
Location: Walbridge, Ohio
Posts: 767
|
Okay I am nuts So I ve started.
How do I have skills without a limit (skeleton is set to 10) but have attributes cap at 6, with the rare occasion that allows the attribute to go higher (if you are playing a Time Lord for example or an Alien). I am in the traits.str Line 39 is the set for making max limit, but it applies to both Abilities and Skills, is there a way to seperate them? |
#2 |
Senior Member
Lone Wolf Staff
Join Date: May 2005
Posts: 13,213
|
Add a script to the attributes component that modifies trtMaximum.
|
#3 |
Senior Member
Join Date: Jul 2007
Location: Walbridge, Ohio
Posts: 767
|
Okay so here is what I have done (after putting it in the wrog place in line 3 times)
in the traits.str file I have added and altered the following lines 172-187 <!-- Skills have No Maximum trait value --> <eval index="1" phase="Initialize" priority="3000"><![CDATA[ field[trtMaximum].value = 50 ]]></eval> <!-- Track the skill on the actor --> <eval index="2" phase="Setup" priority="5000"><![CDATA[ perform forward[Skill.?] ]]></eval> <!-- Each skill point that is allocated by the user costs 1 CP --> <eval index="3" phase="Traits" priority="10000"> <before name="Calc resLeft"/> <after name="Bound trtUser"/><![CDATA[ ~if this skill is not added directly to the hero (i.e. an advance), skip it entirely doneif (origin.ishero = 0) This allows the skill to be max at 50 (even though there is no limit I do not see anyone having a skill that high) Thank you Mathias |
#4 |
Senior Member
Join Date: Jul 2007
Location: Walbridge, Ohio
Posts: 767
|
Next I will attempt to limit the attributes to 6 unless the character is an alien. So in the Wiki I found this that should help me set the Alien level. Wiki ref Creature Specification (Savage).
Now I believe that I can add these into the trait.str file under attributes but let me know if I am wrong please. <eval index="3" phase="Initialize" priority="3000"><![CDATA[ ~1-6 for traits ~Note: Aliens can exceed max value, so let the maximum go to 10. field[trtMinimum].value = 1 if (hero.tagis[Hero.Alien] <> 0) then field[trtMaximum].value = 10 else field[trtMaximum].value = 6 endif ]]></eval> <eval index="5" phase="Traits" priority="8000"> <before name="Calc trtNetRoll"/><![CDATA[ ~for Alien with a attribute greater than 6, if (hero.tagis[Hero.Alien] <> 0) then if (field[trtUser].value > 6) then field[trtRoll].value = field[trtUser].value - 6 endif endif ]]></eval> Now I believe this will handle the character correctly if the I have Race as alien, unless I need to some how tag the hero in another way. I will not put this in until I get a that looks good from someone who knows. Until then I will make race Human and Race Alien, I shall also place a forced tag in for race that sets Human or Alien incase it is need to make these scripts work. Thanks again Sean |
#5 |
Senior Member
Join Date: Jul 2007
Location: Walbridge, Ohio
Posts: 767
|
Okay I have another thought can I just modify the following Race script to remove the limits on Attributes or would it be easier as Aliens are added to the game to just make it so that they auto add the bonus. If they auto add will it allow the start to go over the max value?
<eval value="1" phase="PreTraits" priority="5000"> <before name="Calc trtFinal"/><![CDATA[ ~apply whatever adjustment(s) are needed here ~hero.child[resAbility].field[resMax].value += 1 ~#traitbonus[attrSam] += 1 ]]></eval> |
#6 |
Senior Member
Lone Wolf Staff
Join Date: May 2005
Posts: 13,213
|
Here's a suggestion I have for the bound script on trtUser. Instead of setting the maximum for skills to 50 (a number well beyond what you expect to be used), I prefer to not set a maximum.
Here's the bound script on trtUser from the Skeleton files: Code:
<!-- Bound the user value to the limits established for the trait --> <bound phase="Traits" priority="1000" name="Bound trtUser"> <before name="Calc trtFinal"/><![CDATA[ @minimum = field[trtMinimum].value @maximum = field[trtMaximum].value ]]></bound> Code:
<!-- Bound the user value to the limits established for the trait --> <bound phase="Traits" priority="1000" name="Bound trtUser"> <before name="Calc trtFinal"/><![CDATA[ @minimum = field[trtMinimum].value if (field[trtMaximum].value <> 0) then @maximum = field[trtMaximum].value endif ]]></bound> So, you'll note that trtMaximum in the skeleton files has a defvalue="10". Delete that, and the defvalue will revert to being 0. So, if nothing else sets a defvalue, there will be no maximum bound. Your attributes can then set the appropriate maximum for themselves, and the skills don't need to do anything, because you want them to stay at an unlimited maximum. Last edited by Mathias; December 29th, 2009 at 11:56 AM. Reason: Fixed a typo in the script |
#7 |
Senior Member
Lone Wolf Staff
Join Date: May 2005
Posts: 13,213
|
You'll need to tell me what trtRoll is first, before I can answer your question in post #5. I don't understand why a trtUser value of 6 doesn't set a trtRoll value, but a trtUser value of 7 has a trtRoll of 1.
Is #6 an attempt to get around the trtMaximum for aliens by adding bonuses to the value? I'd recommend changing the maximum instead. |
#8 |
Senior Member
Join Date: Jul 2007
Location: Walbridge, Ohio
Posts: 767
|
Quote:
|
|
#9 |
Senior Member
Lone Wolf Staff
Join Date: May 2005
Posts: 13,213
|
Which wiki page? I can't find it with a quick scan.
|
#10 |
|
|