Aller au contenu

Photo

prc requirements


  • Veuillez vous connecter pour répondre
2 réponses à ce sujet

#1
last_dance

last_dance
  • Members
  • 3 messages
 How does one go about adding additional requirements to prcs?

I am trying to make the requirement that a doomguide be lawful neutral (which is how it is in pnp) instead of just lawful.

I checked the cls_pres_doomguide.2da and found it had this:
5 ScriptVar VAR    nw_AllowDoomguide 0

nw_AllowDoomguide is no where in my module but I searched the forums and someone made it sound like it was a variable on the character, so i added this to my onplayerlevelup script:

        object oPC = GetPCLevellingUp();
        //Check for Doomguide SetLocalInt(oPC, "nw_AllowDoomguide", 1); if (GetDeity(oPC) == "Kelemvor"){ if (GetAlignmentGoodEvil(oPC) > 30 &&   GetAlignmentGoodEvil(oPC) < 70){ //if goodevil axis is neutral if (GetAlignmentLawChaos(oPC) > 69){ //and lawchoas is lawful SetLocalInt(oPC, "nw_AllowDoomguide", 0); } } }


This didn't help at all. Any guidance on this would be welcomed. Eventualy I am going to want to limit level of certian classes by diety as well. These ScriptVar requirements confuse me a lot. I can't find any of the classes that have them (including custom classes from kaedrin's prc) in my module. 

#2
_Knightmare_

_Knightmare_
  • Members
  • 643 messages
Alignment restrictions are set in the classes.2da. Here are the codes for it:

AlignRestrict - Possible Values:
0x00 - No restrictions
0x01 - No Neutral
0x02 - No Lawful
0x03 - No Lawful, No Neutral
0x04 - No Chaotic
0x05 - No Chaotic, No Neutral
0x06 - No Chaotic, No Lawful
0x07 - No Chaotic, No Lawful, No Neutral
0x08 - No Good
0x09 - No Good, No Neutral
0x0A - No Good, No Lawful
0x0B - No Good, No Lawful, No Neutral
0x0C - No Good, No Chaotic
0x0D - No Good, No Chaotic, No Neutral
0x0E - No Good, No Chaotic, No Lawful
0x0F - No Good, No Chaotic, No Lawful, No Neutral
0x10 - No Evil
0x11 - No Evil, No Neutral
0x12 - No Evil, No Lawful
0x13 - No Evil, No Lawful, No Neutral
0x14 - No Evil, No Chaotic
0x15 - No Evil, No Chaotic, No Neutral
0x16 - No Evil, No Chaotic, No Lawful
0x17 - No Evil, No Chaotic, No Lawful, No Neutral
0x18 - No Evil, No Good
0x19 - No Evil, No Good, No Neutral
0x1A - No Evil, No Good, No Lawful
0x1B - No Evil, No Good, No Lawful, No Neutral
0x1C - No Evil, No Good, No Chaotic
0x1D - No Evil, No Good, No Chaotic, No Neutral
0x1E - No Evil, No Good, No Chaotic, No Lawful
0x1F - No Evil, No Good, No Chaotic, No Lawful, No Neutral

Alignment Restriction Type  
AlignRstrctType = Possible Values:
0x0 = None
0x1 = Law/Chaos
0x2 = Good/Evil
0x3 = Both

InvertRestrict
Inverts the Alignment Restrictions. 1 = Yes, 0 = No

Modifié par _Knightmare_, 02 octobre 2011 - 12:19 .


#3
last_dance

last_dance
  • Members
  • 3 messages
Thank you! That is exactly what I needed.