Ryyz Posted April 9, 2020 Author Share Posted April 9, 2020 One more thought, if the dispel option doesn't work. Instead of putting the actual magic effects on the potion, you could make a spell for each potion and put the effects on the spell. For the potion magic effect, make it script type, then when you drink the potion, it casts the spell on the target, but only if the global is less than 100: GlobalVariable Property WA_ToxicityLevelGlobal Auto Spell Property SpellPotion Auto ;put the actual effects of the potion on this spell. Event OnEffectStart(Actor akTarget, Actor akCaster) If WA_ToxicityLevelGlobal.GetValue() < 100 SpellPotion.Cast(akTarget, akTarget) Endif EndEvent That's brilliant. It worked. Thanks a ton. I never would have considered that. I did have one more question question.Is it possible to display a global value with messages? Right now its displayed with debug.notification cause I don't know how to do it with messages. Link to comment Share on other sites More sharing options...
dylbill Posted April 9, 2020 Share Posted April 9, 2020 No problem, glad it's working! It is possible to display global values in messages, but is overly complicated IMO. You have to have an owner quest in the message, and the global variable has to be in the quest's data tab, and it only updates when the quest starts. You can read more about it here: https://www.creationkit.com/index.php?title=Text_ReplacementI'd recommend sticking with debug.notification or debug.messagebox though, as it's far simpler. Link to comment Share on other sites More sharing options...
dylbill Posted April 9, 2020 Share Posted April 9, 2020 Actually nevermind, it seems that passing in numbers to messages is a lot simpler: https://www.creationkit.com/index.php?title=Show_-_MessageIn your message content in the CK you can write: %.0f to represent numbers. Example. Write: "Number 1 = %.0f, Number 2 = %.0f" in the message in the ck without the quotes.In your script write MyMessage.Show(10.0, 20.0)and it will display in game: "Number 1 = 10, Number 2 = 20" So you could also do MyMessage.Show(WA_ToxicityLevelGlobal.GetValue()) To display the global value. Link to comment Share on other sites More sharing options...
Recommended Posts