13/12/02 23:35:09.24 klRkOVja
どうも、以前のpart3辺りでMOD作成の相談をしたものです。実は以前に質問して完成したスクリプトに、追加でモーションを起動させたいと思うのですが、
モーションの起動の記入をどのように記入した方が良いか教えてください。
Scriptname CowMilk extends ObjectReference
Potion property Rawmilk auto
float MilkTime = 5.0
int currentCount = 0
bool bNextday = false
Event OnActivate(ObjectReference akActionRef)
actor PlayerRef = game.getplayer()
if akActionRef == PlayerRef
if currentCount < 3
PlayerRef.additem(Rawmilk)
currentCount += 1
endif
if currentCount >= 3
RegisterForUpdateGameTime(1)
gotostate("nomilk")
endif
endif
endEvent