ScriptName WaveStone extends ObjectReference
ObjectReference property M1 auto
ObjectReference property M2 auto
ObjectReference property M3 auto
ObjectReference property M4 auto
ObjectReference property M5 auto
ObjectReference property M6 auto
ObjectReference property M7 auto
ObjectReference property M8 auto
ObjectReference property M9 auto
ObjectReference property M10 auto
ObjectReference property M11 auto
ObjectReference property M12 auto
ActorBase property JDR auto
ActorBase property JDRW1 auto
ActorBase property JDNW1 auto
ActorBase property JF auto
ActorBase property JFW1 auto
ActorBase property JDS auto
ActorBase property JDSW1 auto
ActorBase property JDC auto
ActorBase property JDCW1 auto
ActorBase property JW auto
ActorBase property JWW1 auto
ActorBase property JMC auto
ActorBase property JMCW1 auto
ActorBase property JG auto
ActorBase property JGW1 auto
ActorBase property JSN auto
ActorBase property JSkNW1 auto
Weapon property 0002c66f auto
MiscObject property 0003ada3 auto
Ingredient property 0003ad5d auto
MiscObject property 000f4983 auto
Ingredient property 0003ad5b auto
MiscObject property 0003ad74 auto
Ingredient property 0006bc00 auto
Ingredient property 0003ad63 auto
MiscObject property 000af5fd auto
Event OnActivate(ObjectReference akActivatingRef)
_If (akActivatingRef != Game.GetPlayer())
__Return ;ignore the activation if it's not from the player
_Endif
_If (Game.GetPlayer().GetItemCount(0002c66f) >= 1)
__M1.PlaceAtMe(JDRW1, 1)
__M2.PlaceAtMe(JDR, 1)
__M3.PlaceAtMe(JDR, 1)
__M4.PlaceAtMe(JDR, 1)
__M5.PlaceAtMe(JDR, 1)
__M6.PlaceAtMe(JDR, 1)
__M7.PlaceAtMe(JDR, 1)
__M8.PlaceAtMe(JDR, 1)
__Debug.MessageBox("WAVE ONE!")
__Return
_Elseif (Game.GetPlayer().GetItemCount(0003ada3) >= 1)
__M1.PlaceAtMe(JDNW1, 1)
__Debug.MessageBox("WAVE ONE!")
__Return
_Elseif (Game.GetPlayer().GetItemCount(0003ad5d) >= 1)
__M1.PlaceAtMe(JFW1, 1)
__M2.PlaceAtMe(JF, 1)
__M3.PlaceAtMe(JF, 1)
__M4.PlaceAtMe(JF, 1)
__M5.PlaceAtMe(JF, 1)
__Debug.MessageBox("WAVE ONE!")
_Return
_Elseif (Game.GetPlayer().GetItemCount(000f4983) >= 1)
__M1.PlaceAtMe(JDSW1, 1)
__M2.PlaceAtMe(JDS, 1)
__M3.PlaceAtMe(JDS, 1)
__M4.PlaceAtMe(JDS, 1)
__M5.PlaceAtMe(JDS, 1)
__M6.PlaceAtMe(JDS, 1)
__M7.PlaceAtMe(JDS, 1)
__M8.PlaceAtMe(JDS, 1)
__M9.PlaceAtMe(JDS, 1)
__M10.PlaceAtMe(JDS, 1)
__Debug.MessageBox("WAVE ONE!")
__Return
_Elseif (Game.GetPlayer().GetItemCount(0003ad5b) >= 1)
__M1.PlaceAtMe(JDMCW1, 1)
__M2.PlaceAtMe(JDMC, 1)
__M3.PlaceAtMe(JDMC, 1)
__M4.PlaceAtMe(JDMC, 1)
__Debug.MessageBox("WAVE ONE!")
__Return
_Elseif (Game.GetPlayer().GetItemCount(0003ad74) >= 1)
__M1.PlaceAtMe(JWW1, 1)
__M2.PlaceAtMe(JW, 1)
__M3.PlaceAtMe(JW, 1)
__M4.PlaceAtMe(JW, 1)
__M5.PlaceAtMe(JW, 1)
__M6.PlaceAtMe(JW, 1)
__M7.PlaceAtMe(JW, 1)
__M8.PlaceAtMe(JW, 1)
__Debug.MessageBox("WAVE ONE!")
__Return
_Elseif (Game.GetPlayer().GetItemCount(0006bc00) >= 1)
__M1.PlaceAtMe(JMCW1, 1)
__M2.PlaceAtMe(JMC, 1)
__M3.PlaceAtMe(JMC, 1)
__M4.PlaceAtMe(JMC, 1)
__M5.PlaceAtMe(JMC, 1)
__M6.PlaceAtMe(JMC, 1)
__M7.PlaceAtMe(JMC, 1)
__M8.PlaceAtMe(JMC, 1)
__M9.PlaceAtMe(JMC, 1)
__M10.PlaceAtMe(JMC, 1)
__M11.PlaceAtMe(JMC, 1)
__M12.PlaceAtMe(JMC, 1)
__Debug.MessageBox("WAVE ONE!")
__Return
_Elseif (Game.GetPlayer().GetItemCount(0003ad63) >= 1)
__M1.PlaceAtMe(JGW1, 1)
__M2.PlaceAtMe(JG, 1)
__M3.PlaceAtMe(JG, 1)
__M4.PlaceAtMe(JG, 1)
__Debug.MessageBox("WAVE ONE!")
__Return
_Elseif (Game.GetPlayer().GetItemCount(000af5fd) >= 1)
__M1.PlaceAtMe(JSNW1, 1)
__M2.PlaceAtMe(JSN, 1)
__M3.PlaceAtMe(JSN, 1)
__M4.PlaceAtMe(JSN, 1)
__M5.PlaceAtMe(JSN, 1)
__M6.PlaceAtMe(JSN, 1)
__M7.PlaceAtMe(JSN, 1)
__M8.PlaceAtMe(JSN, 1)
__Debug.MessageBox("WAVE ONE!")
__Return
_Endif
EndEvent