Sterile

Post » Sun Nov 21, 2010 7:58 pm

So I have recently finished the tutorials on creating a vault and was adding additional rooms etc when it though to add a series of quests. The first thing I wanted to do was to incorporate the food sanitizer, but whenever I type in player.getHasNote MS03Sanitizer or player.getHasMisc MS03Sanitizer in the script editor it doesn’t seem to work, presenting me with an error message. I think it is something to do with that line of code, as without it, it seems to save fine, so if anyone knows the solution it would be appreciated.

Thanks

P.S. The topic was called "Sterile" as I originally thought it was a "Food Steriliser", so there no there is no “seedy” meaning behind it, and I can’t go back and change it.
User avatar
NEGRO
 
Posts: 3398
Joined: Sat Sep 01, 2007 12:14 am

Post » Mon Nov 22, 2010 2:58 am

The function already assumes it is the player so use
GetHasNote
without the reference notation of
player.GetHasNote

User avatar
Tamika Jett
 
Posts: 3301
Joined: Wed Jun 06, 2007 3:44 am

Post » Sun Nov 21, 2010 6:28 pm

I have tried this yet I still get an error message. Would I Have to change the “Note” to something else as it is not a note?

scn SterileEndTRIG

begin OnTrigger player
if getStage Sterile <100
if player.GetHasNote MS03Sanitizer
setStage Sterile 100
endif
endif

end
User avatar
Victoria Vasileva
 
Posts: 3340
Joined: Sat Jul 29, 2006 5:42 pm

Post » Sun Nov 21, 2010 8:59 pm

The ID for the note is MS03SanitizerNote

So to check for the note, this should work:

scn SterileEndTRIGbegin OnTrigger player	if getStage Sterile <100		if GetHasNote MS03SanitizerNote			setStage Sterile 100		endif	endifend 


To check if the player is actually carrying the sanitizer, you can do this:

scn SterileEndTRIGbegin OnTrigger player	if getStage Sterile <100		if Player.GetItemCount MS03Sanitizer > 0			setStage Sterile 100		endif	endifend 

User avatar
casey macmillan
 
Posts: 3474
Joined: Fri Feb 09, 2007 7:37 pm


Return to Fallout 3