Jump to content

bombajack

Member
  • Posts

    90
  • Joined

  • Last visited

Posts posted by bombajack

  1. Hello.

     

     

    Im total noob in scripting.This is my first try of script...where have i mistake?

     

    In init i have this : [] execVM "scripts\tired.sqf";

     

     

    Can anyone help with this?

     

     

    getFatigue player;
    
    if (getFatigue player > 25) 
    Then { 
    
    playSound "sounds\heartBeat.ogg";
    player sideChat "I'm very tired,need break!" 
    
    };
    

     

  2. I have the idea for a great script that would allow drone be in this game, that would be ideal example for spying on enemy bases.
    Lot of people had here on the forum this idea, but yet there was none good script ...
     
    I can not write scripts, but I have a good ideas. :)
     
    Someone who can write a script to fully control these drone?
  3. Yeah..try this:

    while {
        true
    }
    do {
        
        _damage = damage player;
    	
        if(EPOCH_playerHunger < 200) then{
           _damage = _damage + 0.1;
    	   systemchat("YOU ARE HUNGRY!EAT OR YOU DIE SOON");
    	   if(_damage >= 1 )exitWith { 
    	   player setDamage 1;
    	   };
           
    	   player setDamage _damage;
        }else{
    	  EPOCH_playerHunger = EPOCH_playerHunger - 50;
    	};
    	if(EPOCH_playerThirst < 200) then{
           _damage = _damage + 0.1;
    	   systemchat("YOU ARE THIRSTY!DRINK SOMETHING OR YOU DIE SOON!");
    	   if(_damage >= 1 )exitWith {
    	   player setDamage 1;
    	   
    	   };
           player setDamage _damage;
        }else{
    	  EPOCH_playerThirst = EPOCH_playerThirst - 25;
    	};   
        sleep 180;
    };
    
  4. I put before the recent query script that can do it, so that the players get harmed when he was thirsty or hungry.
    Thanks to the community, one member advised me and wrote skript.I test it and it works!
     
    Original script by user @W4lly
     
    - in init.sqf put a line with  [] execVM "myName.sqf"; 
    - create file with name u want example  myName.sqf and put in mission folder....
    - need to be filtered for BE  script.txt line 48 setDamage   add    !="player setDamage _damage;"  !="player setDamage 1;"
     
    myName.sqf
    while {
        true
    }
    do {
        
        _damage = damage player;
    	
        if(EPOCH_playerHunger < 100) then{
           _damage = _damage + 0.1;
    	   if(_damage >= 1 )exitWith { player setDamage 1;};
           player setDamage _damage;
        }else{
    	  EPOCH_playerHunger = EPOCH_playerHunger - 50;
    	};
    	if(EPOCH_playerThirst < 100) then{
           _damage = _damage + 0.1;
    	   if(_damage >= 1 )exitWith { player setDamage 1;};
           player setDamage _damage;
        }else{
    	  EPOCH_playerThirst = EPOCH_playerThirst - 25;
    	};   
        sleep 300;
    };
    

    if u want increase speed reduce sleep....

    if you want increase damage reduce   _damage + 0.1; //10% damage

    if you want modify from what values need you start damage, reduce  -  if(EPOCH_playerHunger < 100) then{  

     

    @W4lly thanks for help again. ;)

     

  5. writed this but i have not tested ...  try...

    while {
        true
    }
    do {
        
        _damage = damage player;
    	
        if(EPOCH_playerHunger < 100) then{
           _damage = _damage + 0.1;
    	   if(_damage >= 1 )exitWith { player setDamage 1;};
           player setDamage _damage;
        }else{
    	  EPOCH_playerHunger = EPOCH_playerHunger - 50;
    	};
    	if(EPOCH_playerThirst < 100) then{
           _damage = _damage + 0.1;
    	   if(_damage >= 1 )exitWith { player setDamage 1;};
           player setDamage _damage;
        }else{
    	  EPOCH_playerThirst = EPOCH_playerThirst - 25;
    	};   
        sleep 300;
    };
    

    create file with name u want example  myName.sqf     put in mission folder....

    in init.sqf put a line with  [] execVM "myName.sqf"; 

    need to be filtered for BE  script.txt line 48 setDamage   add    !="player setDamage _damage;"  !="player setDamage 1;"

     

    if u want increase speed reduce sleep....

     

    Thx so much mate! I try it and give Feedback..

  6. And here are the new description.ext entries to use the Soundfiles from BombaJack

    class CfgSounds
    {    
        sounds[] = {zomb1,zomb2,zomb3,zomb4,zomb5,zomb6,zomb7,zomb8,zomb9,zomb10,zomb11,zomb12};
        class zomb1
    	{
    		name = "zomb1";
    		sound[] = {"\sounds\zomb1.ogg", 1, 1};
    		titles[] = {};
    	};
    	class zomb2
    	{
    		name = "zomb2";
    		sound[] = {"\sounds\zomb2.ogg", 1, 1};
    		titles[] = {};
    	};
    	class zomb3
    	{
    		name = "zomb3";
    		sound[] = {"\sounds\zomb3.ogg", 1, 1};
    		titles[] = {};
    	};
    	class zomb4
    	{
    		name = "zomb4";
    		sound[] = {"\sounds\zomb4.ogg", 1, 1};
    		titles[] = {};
    	};
    	class zomb5
    	{
    		name = "zomb5";
    		sound[] = {"\sounds\zomb5.ogg", 1, 1};
    		titles[] = {};
    	};
    	class zomb6
    	{
    		name = "zomb6";
    		sound[] = {"\sounds\zomb6.ogg", 1, 1};
    		titles[] = {};
    	};
    	class zomb7
    	{
    		name = "zomb7";
    		sound[] = {"\sounds\zomb7.ogg", 1, 1};
    		titles[] = {};
    	};
    	class zomb8
    	{
    		name = "zomb8";
    		sound[] = {"\sounds\zomb8.ogg", 1, 1};
    		titles[] = {};
    	};
    	class zomb9
    	{
    		name = "zomb9";
    		sound[] = {"\sounds\zomb9.ogg", 1, 1};
    		titles[] = {};
    	};
    	class zomb10
    	{
    		name = "zomb10";
    		sound[] = {"\sounds\zomb10.ogg", 1, 1};
    		titles[] = {};
    	};
    	class zomb11
    	{
    		name = "zomb11";
    		sound[] = {"\sounds\zomb11.ogg", 1, 1};
    		titles[] = {};
    	};
    	class zomb12
    	{
    		name = "zomb12";
    		sound[] = {"\sounds\zomb12.ogg", 1, 1};
    		titles[] = {};
    	};	
    };;
    

    and you must change in the fnc_ZProximity file at line 8:

     

    _suoni =  ["zomb1","zomb2","zomb3"];

     

    to

     

    _suoni =  ["zomb1","zomb2","zomb3","zomb4","zomb5","zomb6","zomb7","zomb8","zomb9","zomb10","zomb11","zomb12"];

     

    Now you can use the new Zombie Sounds from BombaJack ! HAVE FUN !

     

    Yeah,thanks for the complement..;) 

  7. But i find this:

     

    hunger_fnc_handle = {
        if(hunger == 100) then {
            damage = damage + 10;
            hint "I need food!";
            call hunger_fnc_handle;
        } else {
            hunger = hunger - 5;
            sleep 600;
            call hunger_fnc_handle;
        };
    };
     
    thirst_fnc_handle = {
        if(thirst == 100) then {
            damage = damage + 10;
            hint "I need drink!";
            call thirst_fnc_handle;
        } else {
            thirst = thirst - 5;
            sleep 300;
            call thirst_fnc_handle;
        };
    };
     
     
    Can worked it?
  8. if u  know little bit code can make one .....

    need to work with

     

    damage player
    EPOCH_playerHunger
    EPOCH_playerThirst
    EPOCH_playerStamina
    EPOCH_playerToxicity
    EPOCH_playerEnergy
     
    example
    
    
    while {
        true
    }
    do {
        waitUntil {
            myCondition
        };
        _damage = damage player;
        if(_damage > 0) then{
           _damage = _damage - 0.1;
           player setDamage _damage;
        };
        if(_damage <= 0)exitWith {player setDamage 0;};
        sleep 30;
    };
    

    every 30 sec  remove 10% of  damage ..  

     

    EPOCH_playerHunger and the others  ned only to set  EPOCH_playerHunger= value; 

     

    Thank you for answer but im not coder..:/

    I understand what is in code,but i can not write code..:) (if know what i say,my english is not good too) :D

  9. for change values ?   or for detect?  what to do this script?

    for detect  watch statusbar script is a example...  for change by condition is not difficoult... :)

     

    For change condition.For example: If you Hungry ,damage is -5 % per sec,for thirst same or more ..If you do not eat or thirst you'll die soon (like A2 DayZ style)

  10. Wow... now THAT was a long scroll on my phone... so much swiping i think i wore a hole in the screen!

     

    That said... your problem seems to be right at the start (i didnt even look any further when i saw the issue.... notice that aia_chernarus_config.... tsk tsk tsk....

    
    version = 12;
    
    class Mission {
    
    	addOns[] = {
    		"A3_Soft_F_Car", 
    		"A3_Soft_F_Quadbike", 
    		"a3_soft_f_beta_quadbike", 
    		"A3_Boat_F_Civilian_Boat", 
    		"A3_Boat_F_Boat_Transport_01", 
    		"A3_Air_F_Heli_Light_01", 
    		"A3_Air_F_Heli_Heli_Transport_04", 
    		"A3_Air_F_Heli_Heli_Transport_03", 
    		"esseker", 
    		"a3_characters_f_gamma", 
    		"A3_Characters_F_OPFOR", 
    		"A3_Characters_F_INDEP", 
    		"A3_Characters_F_Civil", 
    		"A3_epoch_config", 
    		"a3_characters_f", 
    		"A3_Data_F_Curator_Virtual",
    	};
    	addOnsAuto[] = {"a3_epoch_config", "esseker"};
    	randomSeed = 12032465;
    
    
    

     

    Server running...thank you mate. ;)

×
×
  • Create New...