enderalse/source/scripts/defaultlearnwordonact.psc

25 lines
627 B
Plaintext
Raw Normal View History

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