User Tools

Site Tools


Sidebar

Torchmodders Site


Wiki Navigation

charge_tips

Charge Editing Tips

by: Lord Nyriox

Inverting Stat Scaling

When using a Charge system whose stats scale with current Charge (like the Outlander), normally the modified stat increases with each point of Charge. However, it is possible to invert this behavior, making the Stat bonus decrease as Charge increases, instead.

To do this, set StatModifyPercent in one of your scaling Charge Effects to a negative value (such as -1).

Example:

[EFFECT]
	<STRING>NAME:Inverted_Passive_CS
	<STRING>ACTIVATION:PASSIVE
	<STRING>DURATION:ALWAYS
	<STRING>TYPE:PERCENT CAST SPEED
	<STRING>STATMODIFYNAME:Player Charge Percent
	<STRING>STATMODIFYPERCENT:-1
	<BOOL>SAVE:true
	<BOOL>EXCLUSIVE:true
	<FLOAT>MIN:0.1
	<FLOAT>MAX:0.1
	<STRING>STAT_SOURCE_TYPE:ON UPDATE SELF
[/EFFECT]

Dynamic Charge Rate

Another thing you can do with scaling Charge benefits, is change the rate at which Charge is gained!

Example:

[EFFECT]
	<STRING>NAME:Charge_Rate_Bonus
	<STRING>ACTIVATION:PASSIVE
	<STRING>DURATION:ALWAYS
	<STRING>TYPE:PERCENT CHARGING BONUS
	<STRING>STAT_SOURCE_TYPE:ON UPDATE SELF
	<STRING>STATMODIFYNAME:Player Charge Percent
	<STRING>STATMODIFYPERCENT:100
	<BOOL>SAVE:true
	<BOOL>EXCLUSIVE:true
	<BOOL>MODIFIERISBONUS:true
	<FLOAT>MIN:0.1
	<FLOAT>MAX:0.1
[/EFFECT]

“Percent Charging Bonus” manipulates the rate at which Charge is gained. “StatModifyName:Player Charge Percent” changes the modifier (indicated by MIN/MAX) by multiplying by the specified Stat (the player's current Charge level).

charge_tips.txt · Last modified: 2019/01/12 15:46 by lordnyriox