TobiaszPL Posted July 20, 2019 Posted July 20, 2019 (edited) Srsl... What do you pref? Golden Shovel or Deep Mine Order? Topic created: 2016Last Post: 2017 Create your own Topic why you mine so old topics xDDD Here... when you hit Player lost 1 gold coin Also... GJ Nexus, 2019 and still no Double Post Span...You can edit you post, you have button in right bottom corner Quibblonian101Scriptname QLG_SimpleScript_TakeGold extends MagicEffect Actor Property QPlayer Auto { Player Ref. } MiscObject Property GoldRef Auto { Reference to Gold ( Item ) } Event OnEffectStart( Actor QTar, Actor QCas ) If( ( QCas == QPlayer ) && ( QPlayer.GetGoldAmount() >= 1 ) ) QPlayer.RemoveItem( GoldRef , 1 ) Else Debug.Notification("Sorry, You don't have gold !..."); EndIf EndEvent1. Create new script2. Copy / Paste3. Create new Spell4. Attach script to spell5. each time you use spell you lose 1 gold coin remember to fill properties or script will do nothing... Edited July 20, 2019 by TobiaszPL
Quibblonian101 Posted July 21, 2019 Posted July 21, 2019 (edited) On 7/20/2019 at 10:30 PM, TobiaszPL said: Srsl... What do you pref? Golden Shovel or Deep Mine Order? Topic created: 2016Last Post: 2017 Create your own Topic why you mine so old topics xDDD Here... when you hit Player lost 1 gold coin Also... GJ Nexus, 2019 and still no Double Post Span...You can edit you post, you have button in right bottom corner Quibblonian101Scriptname QLG_SimpleScript_TakeGold extends MagicEffect Actor Property QPlayer Auto { Player Ref. } MiscObject Property GoldRef Auto { Reference to Gold ( Item ) } Event OnEffectStart( Actor QTar, Actor QCas ) If( ( QCas == QPlayer ) && ( QPlayer.GetGoldAmount() >= 1 ) ) QPlayer.RemoveItem( GoldRef , 1 ) Else Debug.Notification("Sorry, You don't have gold !..."); EndIf EndEvent1. Create new script2. Copy / Paste3. Create new Spell4. Attach script to spell5. each time you use spell you lose 1 gold coin remember to fill properties or script will do nothing...I'm new to using this and just found this topic through google search lol I already have my spell mod and so I created the new script(Copied everything from above and successfully compiled) , added it to my spell and when going in game and casting it on an npc nothing happened.No gold removed and not even a debug notif :\ So is there something I'm missing then? Or do I attach the script somewhere else? I attached it to the spell effect on my spell through the creation kit. EDIT: I got it to work, thanks! Edited July 23, 2019 by Quibblonian101
Recommended Posts