Jump to content

Magic Effect Descriptions


Extragorey

Recommended Posts

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 by Teh Masterer
Link to comment
Share on other sites

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

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

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...