Schwedes Blood-Regeneration (Over Time) need help

ka3ant1p

Member
I thought it would be more realistic if add this script, but I'd like to change it a little, I mean to add some exceptions, so it would not work if player is in combat, bleeding, hungry <50%, thirsty <50%, overladened, temperature <32 C.
Also it would be great to add scale from 1-10 points per 2 sec., something like if player is running, walking, sneaking, crawling, staing, seeting, he wiil have 1, 2, 3, 4, 5, 8, 10 points per second accordingly
 
Code:
bloodAmount = 1;

while {true} do
{

if(r_player_blood > 12000) then {
r_player_blood = 12000;
} else {
sleep 2;
r_player_blood = r_player_blood + bloodAmount;
};
};
 
i cant help you much with this, because i havent much time. Hope someone else can help you.
Only think i can do for you is to tell, just try your own. There are some scripts which use the same parameters as you wish, so you can try to copy them over to this one, good luck :)
 
i cant help you much with this, because i havent much time. Hope someone else can help you.
Only think i can do for you is to tell, just try your own. There are some scripts which use the same parameters as you wish, so you can try to copy them over to this one, good luck :)
It is great, but I am a newbie in this question, so even if i find such script i don't know where i should rather paste a peace of it =(
 
so i figured out with a help of script Sleep in tent regen blood

So it could be changed somehow like:
Code:
bloodAmountrun = 1;
bloodAmountwalk = 2;
bloodAmountsneak = 4;
bloodAmountcrawl = 6;
bloodAmountstay = 10;
bloodAmountsit = 15;
bloodAmountsleep = 1000;

while {true} do
{
   if(r_player_blood > 12000) then {
        r_player_blood = 12000;
    } else {
       sleep 2;
       if(s_player_ != -1) then {
       r_player_blood = r_player_blood + bloodAmountrun;
      };
           if(s_player_ != -1) then {
       r_player_blood = r_player_blood + bloodAmountwalk;
      };
           if(s_player_ != -1) then {
       r_player_blood = r_player_blood + bloodAmountsneak;
      };
           if(s_player_ != -1) then {
       r_player_blood = r_player_blood + bloodAmountcrawl;
      };
           if(s_player_ != -1) then {
       r_player_blood = r_player_blood + bloodAmountstay;
      };
           if(s_player_ != -1) then {
       r_player_blood = r_player_blood + bloodAmountsit;
      };
           if(s_player_ != -1) then {
       r_player_blood = r_player_blood + bloodAmountsleep;
      };
    } else {
       if(bleeding  &&  inCombat  &&  hungry < 0.5  && thirsty < 0.5  &&  temperature < 32) then {
       r_player_blood = r_player_blood;
      };
};
};
But I still need help, i don't know how i write s_player_ for running, walking and so on, and for exceptions, i don't know whether it is suitable to use && if i mean "or", also I dont know how I write bleeding, inCombat and other exclusions in the script
 
found only these ones:

r_player_unconscious
r_player_injured
r_player_infected
r_fracture_legs
r_fracture_arms
r_player_bloodDanger
r_player_inpain
r_player_loaded
dayz_hunger
dayz_thirst
dayz_combat

dayz_isSwimming
dayz_isKneeling
dayz_isCrawling

am i right?
still need for temperature, run, walk, stay, sit
 
something like this:

Code:
bloodAmountrun = 1;
bloodAmountwalk = 2;
bloodAmountsneak = 4;
bloodAmountcrawl = 6;
bloodAmountstay = 10;
bloodAmountsit = 15;
bloodAmountsleep = 1000;

while {true} do
{
   if(r_player_blood > 12000) then {
        r_player_blood = 12000;
        };
    if(r_player_unconscious = true or r_player_injured = true or r_player_infected = true or r_fracture_legs = true or r_fracture_arms = true or r_player_inpain = true or r_player_loaded = true or r_player_bloodDanger = true or dayz_hunger = 0.5 or dayz_thirst = 0.5 or dayz_combat = 1) then {
       r_player_blood = r_player_blood;
    } else {
       sleep 2;
       if(s_player_ != -1) then {
       r_player_blood = r_player_blood + bloodAmountrun;
      };
           if(s_player_ != -1) then {
       r_player_blood = r_player_blood + bloodAmountwalk;
      };
           if(dayz_isKneeling = true != -1) then {
       r_player_blood = r_player_blood + bloodAmountsneak;
      };
           if(dayz_isCrawling = true != -1) then {
       r_player_blood = r_player_blood + bloodAmountcrawl;
      };
           if(s_player_ != -1) then {
       r_player_blood = r_player_blood + bloodAmountstay;
      };
           if(s_player_ != -1) then {
       r_player_blood = r_player_blood + bloodAmountsit;
      };
           if(s_player_sleep != -1) then {
       r_player_blood = r_player_blood + bloodAmountsleep;
      };
};
};
 
i dont know if it should be "true" or getvariable. Just trial and error ^^
But its looking good so far ;)
 
Back
Top