Extragorey Posted May 30, 2012 Share Posted May 30, 2012 (edited) I'm trying to show the magnitude of a player-made enchantment, but the magnitude is a decimal (usually 0~1). More specifically, I'm talking about the Fortify Shout effect that reduces the cooldown time of shouts, where a magnitude of 1 (100%) means instant cooldown.So the problem is, if I print the magnitude (using <mag>) in the effect description, it rounds to the nearest integer; usually either 0 or 1. But that information is useless, because it doesn't show the specific percentage. So to get to my question - is it possible to perform calculations inside the magic effect description? As in, something like <mag> * 100, to show the percentage. On a side note, the vanilla Amulets of Talos got around this by having the description read, "Time between shouts reduced 20%" as a string; that's right, the 20% is just a string and not an actual value. But don't worry, according to the Creation Kit it IS actually 20% (the magnitude's value is 0.2), so you're not getting ripped off. Edited May 30, 2012 by Teh Masterer Link to comment Share on other sites More sharing options...
Extragorey Posted May 30, 2012 Author Share Posted May 30, 2012 Does anyone know how I can do what I'm trying to do? Link to comment Share on other sites More sharing options...
Galacticat42 Posted May 30, 2012 Share Posted May 30, 2012 You'll have to use Papyrus for that. If I'm right in guessing that Papyrus can handle basic value definitions, then all you have to do in the script is tell your <mag> to be a float and not an int. Link to comment Share on other sites More sharing options...
Extragorey Posted May 30, 2012 Author Share Posted May 30, 2012 You'll have to use Papyrus for that. If I'm right in guessing that Papyrus can handle basic value definitions, then all you have to do in the script is tell your <mag> to be a float and not an int.I don't suppose you'd have any idea how I'd do that? I doubt Papyrus will even recognise the <mag> input... My previous experiences with the language have been less than hospitable, you could say. Link to comment Share on other sites More sharing options...
Extragorey Posted June 1, 2012 Author Share Posted June 1, 2012 Bumpity bump bump. Anyone else got suggestions? Link to comment Share on other sites More sharing options...
Galacticat42 Posted June 1, 2012 Share Posted June 1, 2012 I don't suppose you'd have any idea how I'd do that? I doubt Papyrus will even recognise the <mag> input... My previous experiences with the language have been less than hospitable, you could say. Sure I do. In fact, I think you can do it with but one line of actual coding - the rest would be properties that you can set up via the CK gui. Link to comment Share on other sites More sharing options...
steve40 Posted June 1, 2012 Share Posted June 1, 2012 No, this can't be scripted. You have to do it like the Amulet of Talos. Link to comment Share on other sites More sharing options...
Recommended Posts