Hi, as the title reads I'm looking for a way to loop an item script while it's equipped.
I've been researching about this but I can't seem to find docs about it or examples, which I'd definitely need since my scripting experience is very limited.
At the moment what I'd like to do is a simple script: { 1 bonus bFlee,15; bonus bMaxSP,readparam(bFlee); }
My problem is that as I just found out, item scripts only check parameters on equip/player reload and that would make this item very abusable since one could just equip FLEE gear, wear it and then swap it off while keeping the bonus.
To avoid that (and also to make usable a lot more item scripts I have planned) I'd need to know how to make loop every couple seconds so the bonus is recalculated as the parameter changes.
Any pointers will be greatly appreciated, and if a way to loop does exist I'd be very thankful for an example.
Question
dckk
Hi, as the title reads I'm looking for a way to loop an item script while it's equipped.
I've been researching about this but I can't seem to find docs about it or examples, which I'd definitely need since my scripting experience is very limited.
At the moment what I'd like to do is a simple script: { 1 bonus bFlee,15; bonus bMaxSP,readparam(bFlee); }
My problem is that as I just found out, item scripts only check parameters on equip/player reload and that would make this item very abusable since one could just equip FLEE gear, wear it and then swap it off while keeping the bonus.
To avoid that (and also to make usable a lot more item scripts I have planned) I'd need to know how to make loop every couple seconds so the bonus is recalculated as the parameter changes.
Any pointers will be greatly appreciated, and if a way to loop does exist I'd be very thankful for an example.
Link to comment
Share on other sites
5 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.