12/07/14 21:44:24.76 PMzJVzhk
Scriptname CowMilk extends ObjectReference
Potion property box1 auto
Potion property box2 auto
Potion property box3 auto
int count = 0
Event OnActivate(ObjectReference akActionRef)
Potion chosenPotion
if akActionRef == game.getplayer()
; この辺に朝になったら countを 0 にする処理をいれる
count = count + 1
if currentCount == 1
chosenPotion = box1
elseif currentCount == 2
chosenPotion = box2
else
chosenPotion = box3
endif
game.getplayer().additem(chosenPotion)
endif
endEvent
これで一応動作は可能だと思うけど、そのままだとずっと3以上になり続ける