Jump to content
Rpg²S Forum
  • 0

RIsolto: Condivisione danno


crismon.trident
 Share

Question

Salve ragazzi, avrei necessità di creare un effetto che condivida il danno subito da un giocatore con un altro, ho trovato in "Tips & Trikcs"  il modo di condividere le cure ricevute, utilizzando il  plugin "buff e State core", tramite il lunatic mode:

<Custom React Effect>

if (value < 0) {

var heal = Math.floor(value * 0.5);

origin.gainHp(-heal);

origin.startDamagePopup();

origin.clearResult();

}

</Custom React Effect>

 Vorrei sapere se c'è un modo per modificarlo in maniera che non siano le cure ricevute, ma bensì i danni subiti a essere ripartiti...

In poche parole per chi volesse vedere come funziona l'esempio di condivisione cure che ho trovato, lo può vedere a questo link:"Healing link".

Pensavo a una cosa del tipo:

<Custom React Effect>

if (value > 0) {

var damage = Math.floor(value * 0.5);

origin.gainHp(damage);

origin.startDamagePopup();

origin.clearResult();

}

</Custom React Effect>

In oltre se non ho capito male, così facendo, conferirei un tot di danno subito al personaggio che ha castato lo status, senza toglierlo a quello che ha lo status (che subisce il danno), mi servirebbe che il danno venga ripartito, esempio:

Harold lancia lo status su Therese: tutti i danni che Therese subisce vengono divisi tra Harold e Therese (però divisi, quindi Harold subisce metà dei danni). 

 

 

 

Edited by crismon.trident
Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 0

Risolto

Utilizzando Il plugin Buffs & States Core (YEP) e modificando il Tips and Tricks Healing Link (MV Plugin Tips & Tricks) come segue:

 

<Custom React Effect>

if (value > 0) {

var damage = Math.floor(value * 0.5);

origin.gainHp(-damage);

origin.startDamagePopup();

origin.clearResult();

target.gainHp(damage);

target.startDamagePopup();

target.clearResult();

}

</Custom React Effect>

 

Il personaggio che lancia o status riceve metà dei danni che subisce chi riceve lo status, il quale riceve anche una cura pari alla metà del danno subito. 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...