Page 1 of 1

Best way to make an enchanted item, which can't recharge.

PostPosted: Wed Sep 08, 2010 8:57 am
by zarnatheron
I want to make a ring with restore health (and possible other enchanted items), which can't be recharged. But how should I do that.

I thought about making the the ring scripted instead of enchanted, so I could control the charges with variables, but I'm not sure, I could visible show how many charges is left.

I also though about making it normally enchanted, but then, I would need a script to prevent the charges to be restored, and I'm not sure, there are functions for that.

So how should I make it.

Re: Best way to make an enchanted item, which can't recharge

PostPosted: Wed Sep 08, 2010 9:29 am
by Jac
A ring with scripted restoration is the only way to go about it. Enchantment recharging is a game engine aspect that can't be replicated or denied with scripting

Re: Best way to make an enchanted item, which can't recharge

PostPosted: Wed Sep 08, 2010 9:59 am
by zarnatheron
I suspected that I couldn't halt the recharging, since I couldn't find a function for it.
but I probably can't show the amount of charges left (controlled by a variable) without using messageboxes then.

Re: Best way to make an enchanted item, which can't recharge

PostPosted: Wed Sep 08, 2010 10:23 am
by Jac
I *think* MGE shaders can display information like that, but I'm not entirely sure. A message box would probably be the safest route.

Re: Best way to make an enchanted item, which can't recharge

PostPosted: Wed Sep 08, 2010 10:55 am
by zarnatheron
I think MGE shaders is a ittle too complex for me for now, so I'll show a messagebox from time to time (maybe every 10 times).

Re: Best way to make an enchanted item, which can't recharge

PostPosted: Sun Sep 12, 2010 5:36 pm
by SilentThief
What about a modified scroll? I mean, a scroll can only be used once, right? But the same thing kinda applies to a soul gem. But then, with azura's star IIRC it is scripted to  reappear. But if you made a "re-appearing scroll" (even if it was not technically a scroll but used a scroll slot in the CS) I'm not sure how you could show the remaining uses unless you had a scripted replacement for all numbers (kinda tedious). Something like this:

scripted_scroll_3; when used replaces with scripted_scroll_2; when used scroll_1, then GONE FOR GOOD. Kinda annoying, but could work.

ST

Re: Best way to make an enchanted item, which can't recharge

PostPosted: Sun Sep 12, 2010 7:18 pm
by peachykeen
Building off that, you could use a global variable holding the number of "uses" and just have the scroll re-appear until uses hits 0...

Re: Best way to make an enchanted item, which can't recharge

PostPosted: Sun Sep 12, 2010 11:48 pm
by zarnatheron
I have made a script for it now. I simply have a nested loop counting down each time it's activated and using modcurrenthealth every 10 time a messagebox appears with the number of remaining charges, which I think will work. I haven't yet tested it ingame though.