randomtguy Posted September 12, 2020 Share Posted September 12, 2020 I just want to get the value of a global variable so I can multiply it with an int. But I don't understand how to and the wiki has multiple syntaxes on different pages all of which fail to compile with Papyrus. Link to comment Share on other sites More sharing options...
SKKmods Posted September 12, 2020 Share Posted September 12, 2020 There are heaps of ways as long as you cast correctly. I am doing these right now where pSKK_HWDifficulty is a GlobalVariable note the explicit cast on each calculation Float fMoreDamageValue = (pSKK_HWDifficulty.GetValue() * 100) as Float Int iTargetActorCount = (pSKK_HWDifficulty.GetValue() * iMaxWorkshopActors) as Int Int iGlobalValueAsInt = pSKK_HWDifficulty.GetValue() as Int I dont use GetValueInt() as it has caused issues. Link to comment Share on other sites More sharing options...
randomtguy Posted September 12, 2020 Author Share Posted September 12, 2020 (edited) Great thanks, that worked. Of course there's a billion other errors too. I can't do this, I give up. Edited September 12, 2020 by randomtguy Link to comment Share on other sites More sharing options...
Recommended Posts