Rpg²S Forum uses cookies. Read the Privacy Policy for more info. To remove this message, please click the button to the right:    I accept the use of cookies

Vai al contenuto

Rpg²S Forum uses cookies. Read the Privacy Policy for more info. To remove this message, please click the button to the right:    I accept the use of cookies

Screen Contest #90

Kamikun






  • Si prega di effettuare il log in prima di rispondere
Impostare un valore personalizzato per i danni terreno

    Ischenderun
  • Animatore

  • Utenti
  • Rens: 31
  • 0
  • StellettaStellettaStellettaStelletta
  • 781 messaggi
  • Sesso:Non Specificato
  • Abilità:Adepto

#1 Inviato 09 May 2022 - 13:48 PM

Ho notato che non esiste personalizzazione per i danni terreno (o sono io che non lo so fare) quindi ho deciso di fare un plugin molto semplice per questa personalizzazione.

Potrei in seguito espanderlo, o forse no, non lo so.

Buoni danni terreno a tutti!

Ps. è valido anche per la versione MZ. In questo caso inserite @target MZ prima di @plugindesc v1.00 ecc.

 

*Nota: chiamate il plugin con il nome di : ISC_SetDamageFloor, oppure cambiate tutti i nomi interni con quello che vi pare.

var Imported = Imported || {};
Imported.ISC_SetDamageFloor = true;

var Isc = Isc || {};
Isc.DMG = Isc.DMG || {};
Isc.DMG.version = 1.00
/*:
 * @plugindesc v1.00 SetDamageFloor
 * Modifies the amount of damage done by damage floor tiles.
 * 
 * @author Ischenderun
 * 
 * @param Default Value
 * @desc The default value for damage floor tile damage.
 * @type number
 * @default 10
 * 
 * @help
 * 
 * Allows developer to adjust default floor damage.
 * 
 * =====================================================
 * 
 * Set value for damage terrain.
 * 
 * 
 */

Isc.Parameters = PluginManager.parameters('ISC_SetDamageFloor');
Isc.Param = Isc.Param || {};

Isc.Param.DMGvalDamageTerrain = Number(Isc.Parameters['Default Value']);

(function() {
Game_Actor.prototype.basicFloorDamage = function() {
	var value = Isc.Param.DMGvalDamageTerrain;
    return Math.ceil(value);
	};
})();

Modificato da Ischenderun, 09 May 2022 - 13:57 PM.

☆Polvere di Stelle☆ ora anche su itch.io: https://ischenderun....lvere-di-stelle

 

Non ho particolari talenti, sono soltanto appassionatamente curioso.
Siate affamati, siate folli, perché solo coloro che sono abbastanza folli da pensare di poter cambiare il mondo lo cambiano davvero.

Ad maiora semper

 
HUks2tu.gif

 

Contatto Facebook : https://www.facebook.com/Ischenderun/

Pagina Facebook: https://www.facebook...100937052104281

 

 4753.png





  • Feed RSS