4
Fork 0
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

24 lines
627 B

scriptName defaultLearnWordonAct extends ObjectReference
WordofPower Property myWord auto
auto State LearnShout
EVENT onActivate(ObjectReference triggerRef)
Actor actorRef = triggerRef as Actor
if (actorRef == (Game.GetForm(0x14) as Actor))
gotoState("Done")
game.teachWord(myWord)
;debug.messagebox("You just learned the word: " + myWord)
endif
endEVENT
EndState
State Done
Event onActivate (ObjectReference triggerRef)
Actor actorRef = triggerRef as Actor
if (actorRef == (Game.GetForm(0x14) as Actor))
;debug.notification("You've already learned the word: " + myWord)
endif
endEVENT
EndState