Enderal SE https://mod.pub/enderal-se/38-enderal-se
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.
25 lines
627 B
25 lines
627 B
5 months ago
|
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
|