zabuzo
Well-Known Member
- Joined
- Jun 10, 2016
- Messages
- 238
- Reaction score
- 54
How to define how many skills/ml player will lose when he dies?
Just like this:
this need sources changes?
I found this about SKILLS:
And this about ML:
But i have no idea how to setup to work as i said before
Is any one know how to?
Just like this:
Code:
if(skills >= 1 && skills <= 40) skillslose = 0.5;
else if(skills >= 41 && skills <= 60) skillslose = 1;
else if(skills >= 61 && skills <= 80) skillslose = 1.5;
else if(skills >= 81 && skills <= 100) skillslose = 2;
else if(skills >= 101) skillslose = 2.5;
f(skull == SKULL_RED) skillslose *= 1.5;
elseif(skull == SKULL_BLACK) skillslose *= 3;
Code:
if(ml >= 1 && ml <= 20) mllose = 0.5;
else if(ml >= 21 && ml <= 30) mllose = 1;
else if(ml >= 31 && ml <= 40) mllose = 1.5;
else if(ml >= 41 && ml <= 60) mllose = 2;
else if(ml >= 61) mllose = 2.5;
f(skull == SKULL_RED) lostMana *= 1.5;
elseif(skull == SKULL_BLACK) lostMana *= 3;
this need sources changes?
I found this about SKILLS:
3777/player.cpp at aef29d0ac94140c5d095cb1f55a34035e42746b3 · Fir3element/3777
Contribute to Fir3element/3777 development by creating an account on GitHub.
github.com
And this about ML:
3777/player.cpp at aef29d0ac94140c5d095cb1f55a34035e42746b3 · Fir3element/3777
Contribute to Fir3element/3777 development by creating an account on GitHub.
github.com
But i have no idea how to setup to work as i said before
Is any one know how to?