NeonScorpion
New member
hello, i'm pretty new to coding and moding. I picked it up and have had a lot of fun learning how to change the game. I'm working on making a Dead Island style Weapon Modification system as a personal project to cut my teeth on. I am currently making the different variations of weapons and the different levels of modifications that can be applied to them. I am making 4 levels of a fire modification to put on weapons, I made this code but I still don't quite understand what some of it means so i copied it blindly. I tested the weapon out in game but because I'm unable to see health I have no idea if its actually doing damage or works at all. the particle effects spawn but I have no idea if the fire is actually damaging the zombie.
Here is the code I have for the beginner fire mod. A quick basic, for dummies breakdown of what each part of the code does and if I need to modify it to get what I'm looking for would be great. Its supposed to set zombies on fire and do 10 damage a second for 5 seconds, for a total of 50 damage (I dont know if thats a lot/too weak). Please let me know if anything needs to change to complete that goal and why so I know what I'm doing with the other 3 modifications. Thanks!
Moderator note: one thread per topic, please
Here is the code I have for the beginner fire mod. A quick basic, for dummies breakdown of what each part of the code does and if I need to modify it to get what I'm looking for would be great. Its supposed to set zombies on fire and do 10 damage a second for 5 seconds, for a total of 50 damage (I dont know if thats a lot/too weak). Please let me know if anything needs to change to complete that goal and why so I know what I'm doing with the other 3 modifications. Thanks!
Code:
<buff id="weaponFire" mutex="cannotBreath,drowning,extinguishFireBuff" debuffif="+water > 1" duration="5" stack="reset" ffcheck="true" actions="debuff(burningSmall);attach(ParticleEffects/p_onFire, @impact);damage(0,1,0,1);damage(0,3,0,0)" icon="ui_game_symbol_fire" name_key="weaponFire" description_key="weaponFireDesc" tooltip_key="burningTooltip" cures="canBoiledWater,bottledWater,goldenRodTea,redTea">
<modify id="0" stat="health" amount="-10" rate="1" duration="5"/>
</buff>
Last edited by a moderator: