Jump to content

Add temporary bonus in stealth


Recommended Posts

Posted

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!

Posted

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.)

Posted

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)

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

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