Jump to content

[LE] Run EVENT on quest start - help


Rigmor

Recommended Posts

I have a shout which works great, but I want the shout equipped on a quest start when the player picks up a ring.

Here's the code I have now which adds the shout on init, which gives the shout as soon at the game starts.

How can I make this happen only when the item is aquired (doesn't have to be worn)

 

original code:

Scriptname addrestorelife extends quest
{Adds restorelife if one has learned one of the three words}

Actor Property PlayerREF Auto
Shout property RestorelifeShout auto
WordOfPower Property Laas  Auto  
WordOfPower Property Neh  Auto  
WordOfPower Property Viir  Auto 

Event OnInit()

PlayerREF.EquipShout(RestorelifeShout)

	if ! playerREF.hasspell(RestorelifeShout)
		playerREF.addshout(RestorelifeShout)
             Game.TeachWord(Laas)
             Game.TeachWord(Neh)
             Game.TeachWord(Viir)
             Debug.Notification("Live or Die added")
             SetStage(20)

	endif

	endevent 

Thanks for any help

Link to comment
Share on other sites

  • Recently Browsing   0 members

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