Jump to content
Azaren

Add heal wounds on potions

Recommended Posts

Can you please add "heal amount" event to potions listener like bandages? 

here: https://community.bistudio.com/wiki/Ylands_Tile_-_On_Drink_Event

or aply potions heal to here: https://community.bistudio.com/wiki/Ylands_Tile_-_On_Treat_Wounds_Event

I have unfinished special info board for battlegrounds and "healed amount" in, but cant use, couse potion has not amount healed or cant be used "drink event", couse can heal only 50? 65? 87? Who knows how much?

Sorry for my bad english...

Peter

  • Upvote 1

Share this post


Link to post
Share on other sites

While they are working on this, maybe you can just use these scripting tiles to make it work:

Traditionally health potions restore to full health:

Ylands_201124_163422.thumb.png.c65eeed9fbaae45b2bc01f3f54138698.png

But you can also do a percent (This example is 20%, or 1 heart):

Ylands_201124_163530.thumb.png.e96b741acf072556fbe18c36143966d0.png

Or a fixed value:

Ylands_201124_163508.thumb.png.57a6450b7005b91fca4f5c83e13b97a5.png

 

Please let me know if I completely misunderstood your question ?

  • Like 1

Share this post


Link to post
Share on other sites

In my game player has not 100 hp, but maximum is 350 ? I would like to show correct value of healed hit points. Now i just use value +100, but sometime heal potion heal ONLY 64? 35? 99? ? 

And more important is i would like add ANTI-HEAL skills. For that i need healed amount from all sources (not bandage only). For now i can do only "anti-bandage skill", that is absolutely useless....
Drink event start on every potion drinking now...

Share this post


Link to post
Share on other sites

My initial testing indicates that the health potion will heal up to 101 hit points. This means if the player is missing less than 101 hit points, it will only heal until full health. 

You could try to use something like this (except the write to console will be whatever you need the number for):

Ylands_201125_040409.thumb.png.f59e2f38e4825f5f32df4b195877aa65.png

However, it might run into problems if the player is damaged between holding the health potion and drinking it.

 

For your Anti-heal Skill, I would just use 101 as the healed amount.

 

To have an event listener only listen to health potions, you can always select the entity type:

Ylands_201125_035632.thumb.png.7e87fb0604cdae5146721a372a4a8af1.png

Share this post


Link to post
Share on other sites

Yes, problem is time between two actions and possibility to block heal to another player who use eg. speed potion or in duel self-block heal if you use, stop-use, and use again potions...It has more possible problems...

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

×