blackandwhite14593 Posted June 29, 2016 Posted June 29, 2016 Hi! So I want to write a code to increase my characters stealth for a certain period of time, and wonder what the easiest way to do this is. Do I have to create a spell with a certain magic effect or is there other ways? Thank you in advance!
Guest Posted June 29, 2016 Posted June 29, 2016 You can do that through a spell or using a script. In both cases you have to define WHEN it will be applied. I the "when" is inside a script, then just continue with the script. If not use a spell and attach, temporary. to the player. (Using a timed magic effect.)
darkconsole Posted June 29, 2016 Posted June 29, 2016 just a spell that mods Sneak probably, with a duration of x seconds, and a condition of IsSneaking. no scripting needed.
blackandwhite14593 Posted June 29, 2016 Author Posted June 29, 2016 You can do that through a spell or using a script. In both cases you have to define WHEN it will be applied. I the "when" is inside a script, then just continue with the script. If not use a spell and attach, temporary. to the player. (Using a timed magic effect.) Thanks for the reply! So if I want to use it through the script, what function would I use to add the effect to player? I mean can I use a line like game.getplayer().addmagiceffect(stealtheffect)
Recommended Posts
Archived
This topic is now archived and is closed to further replies.