• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

C++ Making elemental damage constant

farore

Active Member
Joined
Mar 2, 2009
Messages
74
Reaction score
26
Hello! I'm using TFS 0.4 and I want to change the way elemental damage works.
I wanna add a constant elemental damage to a weapon but I'm not sure how to go about it.
For example, if I add the line <attribute key="elementEnergy" value="20"> to a weapon, I want the damage to constantly be +20 extra damage added as energy damage on top of the regular physical damage.
I tried changing some things in the source code and lua but it's not working.

What am I doing wrong? Can anyone help me out?
 
Last edited:
I would suggest to make a specific script for the weapon then, in weapons.xml
You'll be able to script the weapon to do whatever you want.
 
I would suggest to make a specific script for the weapon then, in weapons.xml
You'll be able to script the weapon to do whatever you want.
Thanks for the input :) Not sure how I'd go about doing that though. And I think there should be a easier way to set it up?:s

This is what I'm looking for:
xBQaXPT.png
 
Back
Top