Started on mutation test scripts
Started on mutation test scripts.
This commit is contained in:
		
							
								
								
									
										
											BIN
										
									
								
								_content/ga_scripts/mut_t_adaptation.ncs
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								_content/ga_scripts/mut_t_adaptation.ncs
									
									
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							
							
								
								
									
										45
									
								
								_content/ga_scripts/mut_t_adaptation.nss
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										45
									
								
								_content/ga_scripts/mut_t_adaptation.nss
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,45 @@ | ||||
| //:://///////////////////////////////////////////////////////////////////////// | ||||
| //:: Name           Adaptation template test script | ||||
| //:: FileName       tmp_t_adaptation.nss | ||||
| //:: Copyright (c) 2022 NWNDS | ||||
| //:://///////////////////////////////////////////////////////////////////////// | ||||
| /* | ||||
| Adaptation (Plant) | ||||
| The plant can adapt (become immune) to a particular attack form that has harmed it. On the round it is attacked, it must decide whether or not to begin the process of adaptation. It can drop a previous immunity to adapt to a new attack. The plant can have a total of two adapted immunities at any given time. It takes five days for the plant to complete the adaptation process. There are no restrictions to its activities during this time. For example, if it adapts to fire attacks, it grows a flame resistant bark. If it adapts to bludgeoning attacks, its surface becomes flexible and pliant. For the purposes of this mutation, physical attacks are divided into slashing, piercing and bludgeoning attacks; energy attacks into acid, cold, electricity, fire/heat, sonic/concussion and radiation - adaptation must be made to each individually. Gunshots are considered to be piercing attacks | ||||
|  | ||||
| */ | ||||
| //::////////////////////////////////////////////////////////////////////////// | ||||
| //:: Created By: Jaysyn | ||||
| //:: Created On: 22/03/19 | ||||
| //::////////////////////////////////////////////////////////////////////////// | ||||
|  | ||||
|  | ||||
| #include "prc_alterations" | ||||
| #include "prc_inc_template" | ||||
|  | ||||
| void main() | ||||
| { | ||||
|     object oPC = OBJECT_SELF; | ||||
|     SetExecutedScriptReturnValue(X2_EXECUTE_SCRIPT_CONTINUE);	 | ||||
|  | ||||
| //:: Plants only | ||||
|     int nRace = MyPRCGetRacialType(oPC); | ||||
| 	 | ||||
|     if(nRace != RACIAL_TYPE_PLANT | ||||
| 	&& nRace != RACIAL_TYPE_SHRUBO | ||||
| 	&& nRace != RACIAL_TYPE_BLOOM | ||||
| 	&& nRace != RACIAL_TYPE_MYCO | ||||
| 	&& nRace != RACIAL_TYPE_CULEN | ||||
| 	&& nRace != RACIAL_TYPE_ENT | ||||
| 	&& nRace != RACIAL_TYPE_CREEP)		 | ||||
|     { | ||||
|         SetExecutedScriptReturnValue(X2_EXECUTE_SCRIPT_END); | ||||
|     }   	 | ||||
| 	 | ||||
| //:: Can't get this mutation twice. | ||||
| 	if(GetHasTemplate(MUT_ADAPATATION, oPC))  | ||||
| 	{ | ||||
| 		SetExecutedScriptReturnValue(X2_EXECUTE_SCRIPT_END); | ||||
| 	} | ||||
|  | ||||
| } | ||||
							
								
								
									
										
											BIN
										
									
								
								_content/ga_scripts/mut_t_adherence.ncs
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								_content/ga_scripts/mut_t_adherence.ncs
									
									
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							
							
								
								
									
										51
									
								
								_content/ga_scripts/mut_t_adherence.nss
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										51
									
								
								_content/ga_scripts/mut_t_adherence.nss
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,51 @@ | ||||
| //:://///////////////////////////////////////////////////////////////////////// | ||||
| //:: Name           Adherence template test script | ||||
| //:: FileName       tmp_t_adherence.nss | ||||
| //:: Copyright (c) 2022 NWNDS | ||||
| //:://///////////////////////////////////////////////////////////////////////// | ||||
| /* | ||||
| Adherence | ||||
| Fine hooks or hairs on the mutant’s hands and feet allows him to climb easily  | ||||
| or even cling to the ceiling. The character must have hands and feet uncovered  | ||||
| to use this ability, and must be carrying no more than a medium load.  The  | ||||
| mutant gains a +8 to Climb checks and a 4 to grapple checks. | ||||
|  | ||||
| */ | ||||
| //::////////////////////////////////////////////////////////////////////////// | ||||
| //:: Created By: Jaysyn | ||||
| //:: Created On: 22/03/19 | ||||
| //::////////////////////////////////////////////////////////////////////////// | ||||
|  | ||||
|  | ||||
| #include "prc_alterations" | ||||
| #include "prc_inc_template" | ||||
| #include "prc_racial_const" | ||||
|  | ||||
| void main() | ||||
| { | ||||
|     object oPC = OBJECT_SELF; | ||||
|     SetExecutedScriptReturnValue(X2_EXECUTE_SCRIPT_CONTINUE);	 | ||||
|  | ||||
| //:: Any living genotype except oozes, cyborgs & shapechangers | ||||
|     int nRace = MyPRCGetRacialType(oPC); | ||||
|     if(nRace == RACIAL_TYPE_CONSTRUCT | ||||
| 	|| nRace == RACIAL_TYPE_SMLBOT  | ||||
| 	|| nRace == RACIAL_TYPE_MEDBOT | ||||
| 	|| nRace == RACIAL_TYPE_LRGBOT | ||||
| 	|| nRace == RACIAL_TYPE_DROID | ||||
| 	|| nRace == RACIAL_TYPE_OOZE | ||||
| 	|| nRace == RACIAL_TYPE_SHAPECHANGER | ||||
| 	|| nRace == RACIAL_TYPE_CYBORG | ||||
| 	|| nRace == RACIAL_TYPE_ELEMENTAL  | ||||
| 	|| nRace == RACIAL_TYPE_UNDEAD)	    | ||||
|     { | ||||
|         SetExecutedScriptReturnValue(X2_EXECUTE_SCRIPT_END); | ||||
|     }     | ||||
| 	 | ||||
| //:: Can't get this mutation twice. | ||||
| 	if(GetHasTemplate(MUT_ADHERENCE, oPC))  | ||||
| 	{ | ||||
| 		SetExecutedScriptReturnValue(X2_EXECUTE_SCRIPT_END); | ||||
| 	} | ||||
|  | ||||
| } | ||||
							
								
								
									
										
											BIN
										
									
								
								_content/ga_scripts/mut_t_adrenaline.ncs
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								_content/ga_scripts/mut_t_adrenaline.ncs
									
									
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							
							
								
								
									
										51
									
								
								_content/ga_scripts/mut_t_adrenaline.nss
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										51
									
								
								_content/ga_scripts/mut_t_adrenaline.nss
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,51 @@ | ||||
| //:://///////////////////////////////////////////////////////////////////////// | ||||
| //:: Name           Adrenaline Boost template test script | ||||
| //:: FileName       mut_t_adrenaline.nss | ||||
| //:: Copyright (c) 2022 NWNDS | ||||
| //:://///////////////////////////////////////////////////////////////////////// | ||||
| /* | ||||
| Adrenaline Boost | ||||
| The Subject's adrenal gland starts to secrete a far more potent type of  | ||||
| adrenaline, enabling them to react to threats faster. The mutant gains a +2 bonus | ||||
| on their initiative checks and a +1 bonus on her Reflex saves | ||||
|  | ||||
| */ | ||||
| //::////////////////////////////////////////////////////////////////////////// | ||||
| //:: Created By: Jaysyn | ||||
| //:: Created On: 22/03/19 | ||||
| //::////////////////////////////////////////////////////////////////////////// | ||||
|  | ||||
|  | ||||
| #include "prc_alterations" | ||||
| #include "prc_inc_template" | ||||
| #include "prc_racial_const" | ||||
|  | ||||
| void main() | ||||
| { | ||||
|     object oPC = OBJECT_SELF; | ||||
|     SetExecutedScriptReturnValue(X2_EXECUTE_SCRIPT_CONTINUE);	 | ||||
|  | ||||
| //:: Any living genotype except oozes, cyborgs & shapechangers | ||||
|     int nRace = MyPRCGetRacialType(oPC); | ||||
| 	 | ||||
|     if(nRace == RACIAL_TYPE_CONSTRUCT | ||||
| 	|| nRace == RACIAL_TYPE_SMLBOT  | ||||
| 	|| nRace == RACIAL_TYPE_MEDBOT | ||||
| 	|| nRace == RACIAL_TYPE_LRGBOT | ||||
| 	|| nRace == RACIAL_TYPE_DROID | ||||
| 	|| nRace == RACIAL_TYPE_OOZE | ||||
| 	|| nRace == RACIAL_TYPE_SHAPECHANGER | ||||
| 	|| nRace == RACIAL_TYPE_CYBORG | ||||
| 	|| nRace == RACIAL_TYPE_ELEMENTAL  | ||||
| 	|| nRace == RACIAL_TYPE_UNDEAD)	    | ||||
|     { | ||||
|         SetExecutedScriptReturnValue(X2_EXECUTE_SCRIPT_END); | ||||
|     }     | ||||
| 	 | ||||
| //:: Can't get this mutation twice. | ||||
| 	if(GetHasTemplate(MUT_ADRENALINE_BOOST, oPC))  | ||||
| 	{ | ||||
| 		SetExecutedScriptReturnValue(X2_EXECUTE_SCRIPT_END); | ||||
| 	} | ||||
|  | ||||
| } | ||||
							
								
								
									
										
											BIN
										
									
								
								_content/ga_scripts/mut_t_allurement.ncs
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								_content/ga_scripts/mut_t_allurement.ncs
									
									
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							
							
								
								
									
										49
									
								
								_content/ga_scripts/mut_t_allurement.nss
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										49
									
								
								_content/ga_scripts/mut_t_allurement.nss
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,49 @@ | ||||
| //:://///////////////////////////////////////////////////////////////////////// | ||||
| //:: Name           Allurement template test script | ||||
| //:: FileName       mut_t_allurement.nss | ||||
| //:: Copyright (c) 2022 NWNDS | ||||
| //:://///////////////////////////////////////////////////////////////////////// | ||||
| /* | ||||
| Allurement (Plant) | ||||
| The plant constantly gives off a sweet-smelling fragrance that has a seductive, sometimes hypnotic effect. It grants the plant a bonus | ||||
| on any Charisma-based skills of 3 plus the CHA modifier. Creatures with an Intelligence of 3 or lower that come within 30 feet must | ||||
| make a Will save. If they fail, they are compelled to touch the plant and be near it. If successful, the creature is always able to identify | ||||
| the plant as being responsible for the effect and ignore it’s affects. The effects of allurement are broken if the victim suffers damage | ||||
| from any source while within range. A new save can be made each hour of exposure. | ||||
|  | ||||
| */ | ||||
| //::////////////////////////////////////////////////////////////////////////// | ||||
| //:: Created By: Jaysyn | ||||
| //:: Created On: 22/03/19 | ||||
| //::////////////////////////////////////////////////////////////////////////// | ||||
|  | ||||
|  | ||||
| #include "prc_alterations" | ||||
| #include "prc_inc_template" | ||||
|  | ||||
| void main() | ||||
| { | ||||
|     object oPC = OBJECT_SELF; | ||||
|     SetExecutedScriptReturnValue(X2_EXECUTE_SCRIPT_CONTINUE);	 | ||||
|  | ||||
| //:: Plants only | ||||
|     int nRace = MyPRCGetRacialType(oPC); | ||||
| 	 | ||||
|     if(nRace != RACIAL_TYPE_PLANT | ||||
| 	&& nRace != RACIAL_TYPE_SHRUBO | ||||
| 	&& nRace != RACIAL_TYPE_BLOOM | ||||
| 	&& nRace != RACIAL_TYPE_MYCO | ||||
| 	&& nRace != RACIAL_TYPE_CULEN | ||||
| 	&& nRace != RACIAL_TYPE_ENT | ||||
| 	&& nRace != RACIAL_TYPE_CREEP)		 | ||||
|     { | ||||
|         SetExecutedScriptReturnValue(X2_EXECUTE_SCRIPT_END); | ||||
|     }   	 | ||||
| 	 | ||||
| //:: Can't get this mutation twice. | ||||
| 	if(GetHasTemplate(MUT_ALLUREMENT, oPC))  | ||||
| 	{ | ||||
| 		SetExecutedScriptReturnValue(X2_EXECUTE_SCRIPT_END); | ||||
| 	} | ||||
|  | ||||
| } | ||||
							
								
								
									
										
											BIN
										
									
								
								_content/ga_scripts/mut_t_alteration.ncs
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								_content/ga_scripts/mut_t_alteration.ncs
									
									
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							
							
								
								
									
										51
									
								
								_content/ga_scripts/mut_t_alteration.nss
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										51
									
								
								_content/ga_scripts/mut_t_alteration.nss
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,51 @@ | ||||
| //:://///////////////////////////////////////////////////////////////////////// | ||||
| //:: Name           Alteration template test script | ||||
| //:: FileName       mut_t_alteration.nss | ||||
| //:: Copyright (c) 2022 NWNDS | ||||
| //:://///////////////////////////////////////////////////////////////////////// | ||||
| /* | ||||
| Alteration | ||||
| The subject can change his face with mere concentration. Bones, cartilage and | ||||
| flesh respond to a whim, as do skin and eye colour.  Even the hairline can  | ||||
| shift, and a beard can sprout or vanish within minutes | ||||
|  | ||||
| */ | ||||
| //::////////////////////////////////////////////////////////////////////////// | ||||
| //:: Created By: Jaysyn | ||||
| //:: Created On: 22/03/19 | ||||
| //::////////////////////////////////////////////////////////////////////////// | ||||
|  | ||||
|  | ||||
| #include "prc_alterations" | ||||
| #include "prc_inc_template" | ||||
| #include "prc_racial_const" | ||||
|  | ||||
| void main() | ||||
| { | ||||
|     object oPC = OBJECT_SELF; | ||||
|     SetExecutedScriptReturnValue(X2_EXECUTE_SCRIPT_CONTINUE);	 | ||||
|  | ||||
| //:: Any living genotype except oozes, cyborgs & shapechangers | ||||
|     int nRace = MyPRCGetRacialType(oPC); | ||||
| 	 | ||||
|     if(nRace == RACIAL_TYPE_CONSTRUCT | ||||
| 	|| nRace == RACIAL_TYPE_SMLBOT  | ||||
| 	|| nRace == RACIAL_TYPE_MEDBOT | ||||
| 	|| nRace == RACIAL_TYPE_LRGBOT | ||||
| 	|| nRace == RACIAL_TYPE_DROID | ||||
| 	|| nRace == RACIAL_TYPE_OOZE | ||||
| 	|| nRace == RACIAL_TYPE_SHAPECHANGER | ||||
| 	|| nRace == RACIAL_TYPE_CYBORG | ||||
| 	|| nRace == RACIAL_TYPE_ELEMENTAL  | ||||
| 	|| nRace == RACIAL_TYPE_UNDEAD)	    | ||||
|     { | ||||
|         SetExecutedScriptReturnValue(X2_EXECUTE_SCRIPT_END); | ||||
|     }     | ||||
| 	 | ||||
| //:: Can't get this mutation twice. | ||||
| 	if(GetHasTemplate(MUT_ALTERATION, oPC))  | ||||
| 	{ | ||||
| 		SetExecutedScriptReturnValue(X2_EXECUTE_SCRIPT_END); | ||||
| 	} | ||||
|  | ||||
| } | ||||
							
								
								
									
										
											BIN
										
									
								
								_content/ga_scripts/mut_t_plantonly.ncs
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								_content/ga_scripts/mut_t_plantonly.ncs
									
									
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							
							
								
								
									
										40
									
								
								_content/ga_scripts/mut_t_plantonly.nss
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										40
									
								
								_content/ga_scripts/mut_t_plantonly.nss
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,40 @@ | ||||
| //:://///////////////////////////////////////////////////////////////////////// | ||||
| //:: Name           Plant Mutations Base template test script | ||||
| //:: FileName       tmp_t_plantonly.nss | ||||
| //:: Copyright (c) 2022 NWNDS | ||||
| //:://///////////////////////////////////////////////////////////////////////// | ||||
| /* | ||||
|  | ||||
| This script can be used as a base for any plant only mutations. | ||||
|  | ||||
| */ | ||||
| //::////////////////////////////////////////////////////////////////////////// | ||||
| //:: Created By: Jaysyn | ||||
| //:: Created On: 22/03/19 | ||||
| //::////////////////////////////////////////////////////////////////////////// | ||||
|  | ||||
|  | ||||
| #include "prc_alterations" | ||||
| #include "prc_inc_template" | ||||
|  | ||||
| void main() | ||||
| { | ||||
|     object oPC = OBJECT_SELF; | ||||
|     SetExecutedScriptReturnValue(X2_EXECUTE_SCRIPT_CONTINUE);	 | ||||
|  | ||||
| //:: Plants only | ||||
|     int nRace = MyPRCGetRacialType(oPC); | ||||
| 	 | ||||
|     if(nRace != RACIAL_TYPE_PLANT | ||||
| 	&& nRace != RACIAL_TYPE_SHRUBO | ||||
| 	&& nRace != RACIAL_TYPE_BLOOM | ||||
| 	&& nRace != RACIAL_TYPE_MYCO | ||||
| 	&& nRace != RACIAL_TYPE_CULEN | ||||
| 	&& nRace != RACIAL_TYPE_ENT | ||||
| 	&& nRace != RACIAL_TYPE_CREEP)	 | ||||
| 	 | ||||
|     { | ||||
|         SetExecutedScriptReturnValue(X2_EXECUTE_SCRIPT_END); | ||||
|     }     | ||||
|  | ||||
| } | ||||
| @@ -42,6 +42,10 @@ | ||||
|       "Path": "./q_tilesets/", | ||||
|       "CompileModels": false | ||||
|     }, | ||||
|      | ||||
|      { | ||||
|       "Name":  "ga_scripts", | ||||
|       "Path": "./ga_scripts/", | ||||
|       "CompileModels": false | ||||
|     },    | ||||
|   ] | ||||
| } | ||||
| @@ -113,7 +113,7 @@ const int 	FEAT_MUT_QUILLS							=	1304; | ||||
| const int 	FEAT_MUT_RADIATING_EYES					=	1305; | ||||
| const int 	FEAT_MUT_RAZOR_EDGED_LEAVES				=	1306; | ||||
| const int 	FEAT_MUT_REPULSION						=	1307; | ||||
| const int 	FEAT_MUT_SHAPECHANGE					=	1308 | ||||
| const int 	FEAT_MUT_SHAPECHANGE					=	1308; | ||||
| const int 	FEAT_MUT_SILK_GLANDS_WEB				=	1309; | ||||
| const int 	FEAT_MUT_SIZE_CHANGE_LARGE				=	1310; | ||||
| const int 	FEAT_MUT_SIZE_CHANGE_SMALL				=	1311; | ||||
|   | ||||
| @@ -6,7 +6,7 @@ const int RACIAL_TYPE_MEDBOT	=	1; | ||||
| const int RACIAL_TYPE_MUTDWF	=	2; | ||||
| const int RACIAL_TYPE_PSH		=	4; | ||||
| const int RACIAL_TYPE_LRGBOT	=	5; | ||||
| const int RACIAL_TYPE_HUMAN		=	6; | ||||
| // const int RACIAL_TYPE_HUMAN		=	6;  // Already defined | ||||
| const int RACIAL_TYPE_MUTANT	=	21; | ||||
| const int RACIAL_TYPE_DROID		=	22; | ||||
| const int RACIAL_TYPE_CYBORG	=	26; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user