Jump to content

Determine if player has a specific key


twofive

Recommended Posts

Hello!

 

I started a mod for Fallout 3, which contains a quest.

One of the quest objectives is to get a specific key.

 

I tried creating a primitive activator around the key which checks if the player has taken the key, but I don't know how to check if the player has the key in inventory.

 

This is how I intend to do it, but I don't know which condition function I need to use:

 

scn 00Vault101QuestScriptKeyTaken

begin OnTrigger player

if getStage A00VAU <30
; if player.getHasKey 00Vault101UndergroundKey
setStage A00VAU 30
endif
endif

end

 

Function is set as commented because "getHasKey" doesn't exist.

 

I already looked for something useful here:

http://geck.bethsoft.com/index.php/Categor...ions_(GECK_1.1)

But I haven't seen anything.

 

Thanks in advance :thumbsup:

Link to comment
Share on other sites

It would be better to simply put this script on the actual key.

 

scn 00Vault101QuestScriptKeyTaken

begin OnAdd player

if ( getStage A00VAU < 30 )
	setStage A00VAU 30
endif

end

 

There were a few things wrong with your script:

•The lack of spacing between the '<' operator and the '30'.

•You used spaces to indent your script instead of 'tab'.

 

 

From now on, don't make a new thread for two different questions pertaining to the same script.

 

:rolleyes:

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...