I have a flaw that removes Darkvision and replaces it with Low-light.
	
	
	
		
This Greys it out, but it doesn't actually remove it as far as feat requirements go. Night Stalker is still a valid feat for instance.
How do I actually remove it so that feats requiring Darkvision don't validate? I see the alternate racial abilities uses RaReplace, but I can't get it to work.
 
edit: tried perform hero.childfound[raDarkVis].delete[HasAbility.raDarkVis], which makes it so character doesn't qualify for flaw.
	
	
	
		
is on Aspect of the Beast (Night Senses - Darkvision 30').
and
	
	
	
		
is for Night Stalker.
As I said, perform hero.childfound[raDarkVis].delete[HasAbility.raDarkVis] makes the flaw invalid.
Also I just bootstrapped Low-Light vision, but I wouldn't mind an example of how to assign it in code either if anyone knows. Cuz
	
	
	
		
doesn't work.
				
			
		Code:
	
	First 510
perform hero.childfound[raDarkVis].delete[Helper.ShowSpec]
perform hero.childfound[raDarkVis].assign[Helper.SpcDisable]
perform hero.delete[thingid.raDarkVis] [I]Doesn't work either[/I]
 if (hero.picklives[raDarkVis] <> 0) then
hero.child[raDarkVis].field[abValue].value = 0 ~[I]Makes it so deepsight isn't a valid feat.[/I]
  endifThis Greys it out, but it doesn't actually remove it as far as feat requirements go. Night Stalker is still a valid feat for instance.
How do I actually remove it so that feats requiring Darkvision don't validate? I see the alternate racial abilities uses RaReplace, but I can't get it to work.
edit: tried perform hero.childfound[raDarkVis].delete[HasAbility.raDarkVis], which makes it so character doesn't qualify for flaw.
		Code:
	
	#hasability[raDarkVis] <= @ispickis on Aspect of the Beast (Night Senses - Darkvision 30').
and
		Code:
	
	#hasability[raDarkVis] <> 0As I said, perform hero.childfound[raDarkVis].delete[HasAbility.raDarkVis] makes the flaw invalid.
Also I just bootstrapped Low-Light vision, but I wouldn't mind an example of how to assign it in code either if anyone knows. Cuz
		Code:
	
	perform hero.assign[HasAbility.raLowLight]
			
				Last edited: 
			
		
	
								
								
									
	
								
							
							