Jump to content

Having trouble with my script


animietoon11

Recommended Posts

I'm currently making a mod that contains a lot of new quests. I'm having a problem on one of my quests to the point where it won't update the journal after you find the items. I'm sure its a mistake with this script below.

 

Scriptname ZeldoranArmorScript1

 

begin onadd player

 

if getitemcount BQM1ZeldoransBoots 1 BQM1ZeldoransGauntlets 1 BQM1ZeldoransGreaves 1

setstage BQM1 100

endif

end

 

I'm sure the problem is something with the getitemcount part, I tried using a getitemcount (item) and getitemcount (item)

but it says that and is not a valid command.

 

Thanks in advance.

Link to comment
Share on other sites

There are many ways to achieve this, and this is just one (untested):

 

ScriptName ZeldoranArmorScript1

Begin OnAdd Player

  	If GetItemCount BQM1ZeldoransBoots == 0
         	Return
  	ElseIf GetItemCount BQM1ZeldoransGauntlets == 0
         	Return
  	ElseIf GetItemCount BQM1ZeldoransGreaves != 0
         	SetStage BQM1 100
  	Endif

End

 

Here is another method:

 

ScriptName ZeldoranArmorScript1

Short gotboots
Short gotgauntlets
Short gotgreaves

Begin OnAdd Player

If GetItemCount BQM1ZeldoransBoots == 1
	Set gotboots To 1
Else
	Set gotboots To 0
EndIf

If GetItemCount BQM1ZeldoransGauntlets == 1
	Set gotgauntlets To 1
Else
	Set gotgauntlets To 0
EndIf

If GetItemCount BQM1ZeldoransGreaves == 1
	Set gotgreaves To 1
Else
	Set gotgreaves To 0
EndIf

If ( gotboots ) && ( gotgauntlets ) && ( gotgreaves )
	SetStage BQM1 100
EndIf	


End

Link to comment
Share on other sites

  • Recently Browsing   0 members

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