Jump to content
  • 0

several questions needed


Chino

Question

Good community. I'm looking for your help. I want to edit several things and I'll leave here below:

1) Edit humanity with which to be villain and hero, I want it to be: + 5000k -5000k hero and villain. From where and how I edit it?

2) Mankind when one kills the other, this way:

Kills Bandit Bandit
Neutral Kills Bandit
Hero Kills Bandit
Neutral Kills Bandit
Neutral Neutral Kills
Neutral Kills Hero
Hero Kills Bandit
Hero Kills Neutral
Hero Hero Kills

As I can edit each of those?

3) Humanity is killed when a zombie

4) And mankind to help a colleague to give blood, bandaging, give or painkiller morphine.

Well, I have been looking but I did not find the way. I hope you can help me because I need just that to finish my server. Thank you so much guys. (And sorry for my English, I use an online translator).

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 0

1) I'm not too sure what you mean, but if you want to change the humanity required to access either hero or bandit trader, it is in fn_selfActions.sqf:

Find and edit this part to your liking.

			if((_traderMenu select 2) == "friendly") then {
				_humanity_logic = (_humanity < -5000);
			};
			if((_traderMenu select 2) == "hostile") then {
				_low_high = "high";
				_humanity_logic = (_humanity > -5000);
			};
			if((_traderMenu select 2) == "hero") then {
				_humanity_logic = (_humanity < 5000);
			};

2) If you want to edit humanity based on who kills who, here is a link I found: 

3) For changing humanity when you kill a zombie, go into dayz_code\compile\local_eventKill.sqf and copy it to your mission pbo. 

Then of course change the path to local_eventKill in your compiles.sqf

You can now edit it to your liking, for example:

private ["_zed","_killer","_kills","_array","_type","_humanity"];

_array = 		_this select 0;
_zed = 			_array select 0;
_killer = 		_array select 1;
_type = 		_this select 1;

if (local _zed) then {
	_kills = _killer getVariable[_type,0];
	_killer setVariable[_type,(_kills + 1),true];

	_humanity = _killer getVariable["humanity",0];
	_humanity = _humanity + 25;
	_killer setVariable["humanity",_humanity,true];
	
_coinReward = _killer getVariable["cashMoney",0];
_killer setVariable["cashMoney",(_coinReward + 50),true];
};

This local_eventKill.sqf will give 25 humanity, but also 50 coins as a reward for each zombie kill.

4) Blood Bag - copy dayz_code\medical\transfusion.sqf to the mission pbo, and change the path in compiles.sqf

Then in transfusion.sqf, find 

[player,100] call player_humanityChange;

And change the 100 to whatever.

The rest is pretty much the same, i'm sure i've given enough information for you to do the rest yourself :)

Link to comment
Share on other sites

  • 0
On Tuesday, June 14, 2016 at 11:41 AM, Shawn said:

1) I'm not too sure what you mean, but if you want to change the humanity required to access either hero or bandit trader, it is in fn_selfActions.sqf:

Find and edit this part to your liking.


			if((_traderMenu select 2) == "friendly") then {
				_humanity_logic = (_humanity < -5000);
			};
			if((_traderMenu select 2) == "hostile") then {
				_low_high = "high";
				_humanity_logic = (_humanity > -5000);
			};
			if((_traderMenu select 2) == "hero") then {
				_humanity_logic = (_humanity < 5000);
			};

2) If you want to edit humanity based on who kills who, here is a link I found: 

3) For changing humanity when you kill a zombie, go into dayz_code\compile\local_eventKill.sqf and copy it to your mission pbo. 

Then of course change the path to local_eventKill in your compiles.sqf

You can now edit it to your liking, for example:


private ["_zed","_killer","_kills","_array","_type","_humanity"];

_array = 		_this select 0;
_zed = 			_array select 0;
_killer = 		_array select 1;
_type = 		_this select 1;

if (local _zed) then {
	_kills = _killer getVariable[_type,0];
	_killer setVariable[_type,(_kills + 1),true];

	_humanity = _killer getVariable["humanity",0];
	_humanity = _humanity + 25;
	_killer setVariable["humanity",_humanity,true];
	
_coinReward = _killer getVariable["cashMoney",0];
_killer setVariable["cashMoney",(_coinReward + 50),true];
};

This local_eventKill.sqf will give 25 humanity, but also 50 coins as a reward for each zombie kill.

4) Blood Bag - copy dayz_code\medical\transfusion.sqf to the mission pbo, and change the path in compiles.sqf

Then in transfusion.sqf, find 


[player,100] call player_humanityChange;

And change the 100 to whatever.

The rest is pretty much the same, i'm sure i've given enough information for you to do the rest yourself :)

I need some questions to before I get answers !! :-p

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Advertisement
  • Discord

×
×
  • Create New...