How do you alter the base eval scripts?
For instance,
I'm trying to put in the Bilingual Quality from RC. All it does is give a player a second Native tongue. That should be easy enough right? I'll add a language to the character and flag it as N Except the eval scripts tell me I can't have two Native languages. Or Born Rich, which allows a character to spend up to 60 BP for money, except the eval script allows you to only have up to 50. Is there a list of values I can modify via script to increase them? Such as Native Language limits or BP to be spent on money? Thanks |
After looking for a while, I finally found the script in question that sets the max BP. Judging by the wording of your earlier post, you did as well. It's a Resource called Starting Resources BP, you might have to scroll down a bit to see where it mentions rsGearBP and you're right about the value being hard-coded into the script. Perhaps copying the script, setting the timing to be a little bit later than the original and overwriting the effects of the original script might be possible. You could just add a check for the born rich quality there, and if it passes change the number to 60. Now, this is probably horribly inefficient and exceedingly dirty :( But it might be one option.
|
"I'm trying to put in the Bilingual Quality from RC. All it does is give a player a second Native tongue."
If you figure this one out let me know. I have a player that has this quality. Right now I have given the player's sheet the two as native tongues and ignored the validation error. Most of my players are using various other supplements and I am using the "Custom" options in gear and qualities to place these things in the character sheets. |
I didn't even know about the Resources tab... didn't realize those were the eval scripts to validate a character.
Thanks Ore! Now if I could only figure out how to check if a quality is present on a character. I'm trying something like this. Code:
if (hero.tagis[CharMethod.MethBP] <> 0) then I also found the Languages and Knowledge skills eval script, but I don't even see it checking for a Native tongue in there. |
Quote:
|
Quote:
What about my other question as to how to test for a quality on the character to see if they have the Born Rich Quality (qubornrich) ? |
Quote:
Now, at the bottom of that menu, choose "Floating Info Windows", then "Show Hero Tags". Watch the menu that pops up as you add and delete some qualities on a test character - you'll see that a Quality tag from each one is added to the character (actually, 2 of each - I'll have to figure out what's duplicating those), along with an Ability tag. So, what you want to do is test for the presence of that tag: Code:
if (hero.tagis[Quality.TheIdOfYourQuality] <> 0) then |
Quote:
|
Quote:
Where is that in the Wiki? I've been lost there trying to figure out how to test for things.... OMG I can add so much now... still can't do 2nd native languages, but I can do so much! |
http://hlkitwiki.wolflair.com/index....ext#references
I have this page of the wiki bookmarked: http://hlkitwiki.wolflair.com/index.php5/Kit_Reference Looking at that, my recently followed links are: Other Language Statements Language Intrinsics Formatting with Encoded Text Target References (within target references, I usually only need "Pick Target References", which is the link I posted at the top of this thread). Although I haven't needed the rest in a while, you'll probably also take a look at everything else in the Scripting Language section (probably best done in order). |
All times are GMT -8. The time now is 09:50 PM. |
Powered by vBulletin® - Copyright ©2000 - 2024, vBulletin Solutions, Inc.
wolflair.com copyright ©1998-2016 Lone Wolf Development, Inc. View our Privacy Policy here.