13/12/06 00:52:13.32 Qz0raOhI
>>258さん、前回に引き続いて今回も教えて頂き有り難うございます。
それと全然成長できていなくて、すみません(>_<)
手伝いどころこか、ほとんど作って頂いて申し訳ないです。
教えて頂いたスクリプトで、なんとか記入してみたのですが、エラーになってしまいます。
Scriptname CowMilk extends ObjectReference
Potion property Rawmilk auto
float MilkTime = 5.0
int currentCount = 0
bool bNextday = false
bool bBusy = false
Event OnActivate(ObjectReference akActionRef)
actor PlayerRef = game.getplayer()
if akActionRef == PlayerRef
if self.isdead()
if currentCount < 3
if bBusy == false
if currentCount == 0
PlayerRef.Playidle(IdleWarmHandsCrouched)
endif
bBusy = false
endif
endif
PlayerRef.additem(Rawmilk)
currentCount += 1
endif
if currentCount >= 3
RegisterForUpdateGameTime(1)
gotostate("nomilk")
endif
endif
endEvent