Jump to content

Script Help please


draco1122

Recommended Posts

I am trying to make a script that when the player activates a actor it starts a quest I have this so far but it wouldnt comipile

 

Scriptname aaadQuestStartuponAct extends Actor
OnActivate
Actor Property aaadKeyGiver Auto
Int Property MyStage Auto
Quest Property MyQuest Auto
Event OnActivate()
MyQuest.SetStage(MyStage)
EndEvent
Yes i am a noob lol
Link to comment
Share on other sites

Based solely on the information provided, try this...

 

 

Scriptname aaadQuestStartuponAct extends Actor
 
Int Property MyStage Auto
Quest Property MyQuest Auto
 
Event OnActivate(ObjectReference akActivator)
	If	akActivator == Game.GetPlayer()	\
	&&	MyQuest.IsRunning()	\
	&&	MyQuest.GetStage() < MyStage
		MyQuest.SetStage(MyStage)
	EndIf
EndEvent 

Link to comment
Share on other sites

Thank you for reply.

 

Ok, I compiled the script ok selected the properity and added it to my actor.

 

But doesn't seem to be starting the quest in game. I think it maybe due to he has dialog options i will play around some and see if i can get it thx for your help. I will let you know.

Link to comment
Share on other sites

  • Recently Browsing   0 members

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