Jump to content
  • 0
Chino

several questions needed

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).

Share this post


Link to post
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 :)

Share this post


Link to post
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

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

  • Advertisement
  • Supporters
  • Discord

×
×
  • Create New...