Updated AMS marker feats. Removed arcane & divine marker feats. Updated Dread Necromancer for epic progression. Updated weapon baseitem models. Updated new weapons for crafting & npc equip. Updated prefix. Updated release archive.
		
			
				
	
	
		
			24 lines
		
	
	
		
			636 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			24 lines
		
	
	
		
			636 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
| // Set the AC's level to 4
 | |
| 
 | |
| #include "psi_inc_ac_const"
 | |
| 
 | |
| 
 | |
| const int nNewLevel = 4;
 | |
| 
 | |
| void main()
 | |
| {
 | |
| 	object oPC = GetPCSpeaker();
 | |
| 
 | |
| 	int nPrevLevel = GetLocalInt(oPC, ASTRAL_CONSTRUCT_LEVEL + EDIT);
 | |
| 
 | |
| 	// If the new level is less than the previous, wipe all selected options
 | |
| 	if(nPrevLevel > nNewLevel)
 | |
| 	{
 | |
| 		SetLocalInt(oPC, ASTRAL_CONSTRUCT_OPTION_FLAGS       + EDIT, 0);
 | |
| 		SetLocalInt(oPC, ASTRAL_CONSTRUCT_RESISTANCE_FLAGS   + EDIT, 0);
 | |
| 		SetLocalInt(oPC, ASTRAL_CONSTRUCT_ENERGY_TOUCH_FLAGS + EDIT, 0);
 | |
| 		SetLocalInt(oPC, ASTRAL_CONSTRUCT_ENERGY_BOLT_FLAGS  + EDIT, 0);
 | |
| 	}
 | |
| 
 | |
| 	SetLocalInt(oPC, ASTRAL_CONSTRUCT_LEVEL + EDIT, nNewLevel);
 | |
| } |