So, my questions are:
1) How do you set a duration on an effect?
There's a "GetEffectDurationType" but no equivalent set function. There also doesn't seem to be a means to set a numerical duration. I can work around this issue by using events and delaying them in order to remove an effect after an appropriate time, but this seems a little clunky - particularly if I want to apply an effect to a large group of creatures. (On that note, why is there only a "GetHostileCreaturesWithinRadius" and not a "GetCreaturesWithinRadius" function? I want friendly fire!)
EDIT: I'm apparently an idiot. ApplyEffectOnObject() allows you specific all of these... what's more, I'd actually used this very function in a script I'd written some time ago. Don't I feel awkward and embarrassed? ("Yes" is the answer to that question, just in case anyone was wondering)
2) How do you "link effects"?
The wiki mentions you can link effects into a package before applying them, but I can't see any functions that seem to fit this purpose.
3) How do you set whether an effect is magical?
It's stated that effects are either "normal" or "magical" and that magical effects can be removed with "dispel magic" effects. I'd like to make sure that certain effects I'm applying to people aren't considered magical, because I don't want them dispelled.
4) How does one get "tooltips" for any effects you may apply to a player?
There's the little status bar that shows active effects next to your XP and if hover over it, it will give you a short description. Is there any way to add new custom text to this?
Modifié par AmstradHero, 22 octobre 2011 - 11:12 .





Retour en haut






