SoulMasterFinnigan Posted February 16, 2023 Share Posted February 16, 2023 Scriptname __0SMF_PurchasePet extends ObjectReference Const STATIC Property EnableMarker Auto Const Message Property BuyAPet Auto Const Int Property CostToBuy Auto Const MiscObject Property Caps001 Auto Const Event OnActivate(ObjectReference akActionRef) int selectedOption = BuyAPet.Show() If (selectedOption == 1) ; Cancel return EndIf If (Game.GetPlayer().GetItemCount(Caps001) < CostToBuy) ; Player doesn't have enough caps Debug.Notification("You need more Caps") return EndIf Game.GetPlayer().RemoveItem(Caps001, CostToBuy) If (SelectedOption == 0); Cat EnableMarker EndIf EndEvent It compiles fine but nothing happens where have I gone wrong ? Link to comment Share on other sites More sharing options...
SoulMasterFinnigan Posted February 17, 2023 Author Share Posted February 17, 2023 I updated the Script Scriptname __0SMF_BuyAPet2 extends ObjectReference Const Actor Property Cat Auto Const Int Property CostToBuy Auto Const Message Property BuyAPet Auto Const MiscObject Property Caps001 Auto Const Keyword Property Cat2Player Auto Const SPELL Property TeleportIn Auto Const STATIC Property TelePortInMarker Auto Const Event OnActivate(ObjectReference akActionRef)int selectedOption = BuyAPet.Show()If (selectedOption == 1) ; CancelreturnEndIfIf (Game.GetPlayer().GetItemCount(Caps001) < CostToBuy) ; Player doesn't have enough capsDebug.Notification("You need more Caps")returnEndIfGame.GetPlayer().RemoveItem(Caps001, CostToBuy) If (SelectedOption==0);TelePortIn.Cast(Cat) EndIfEndEvent How would I reference the Location the Cat Needs to Teleport too ? Link to comment Share on other sites More sharing options...
Recommended Posts