Jump to content
Faller

Adding Status to Players

Recommended Posts

Hello everyone!

I have a small doubt, when adding status to players with items (example: stone to add +5 str), what should I use to not bug Fairy Body? 

Thanks!

Share this post


Link to post
Share on other sites
1 hour ago, Faller said:

Hello everyone!

I have a small doubt, when adding status to players with items (example: stone to add +5 str), what should I use to not bug Fairy Body? 

Thanks!

There was a thread about this if I remember correctly, a workaround said in that thread was to store the bonus stats given by the possession and use to add/remove attributes while possession was being activated/deactivated. That way it wouldn't interfere much with other effects.

  • Like 1

Share this post


Link to post
Share on other sites

Thanks @Angelix!!! I'll look up for that thread, hope I can find it. :)

#EDIT

I found it! It's my thread hehehehe

Here is the link for it: https://pkodev.net/index.php?/topic/429-pet-poss-bug/#comment-2404

Well, you guys mentioned that we should record the stats added by the Fairy Possession, but how's that possible? Could you give me one example so I apply it to the whole script? Thanks!

 

Edited by Faller

Share this post


Link to post
Share on other sites
9 minutes ago, Angelix said:

 

Actually, you even made some comments in that thread

 

Just edited my reply! Check it out ^^

Edited by Faller

Share this post


Link to post
Share on other sites

You'll make a new variable on a player basis (if not created before) and record the value of the fairy level when activating possession and when the effect finishes, check that same variable to remove the exact fairy level amount of attribute bonus.

  • Like 1

Share this post


Link to post
Share on other sites
5 minutes ago, Angelix said:

You'll make a new variable on a player basis (if not created before) and record the value of the fairy level when activating possession and when the effect finishes, check that same variable to remove the exact fairy level amount of attribute bonus.

 

Thank you again, Angelix! I'll give it a try. :)

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...