Jump to content
  • 0

Iv tried editing Freds Study Body Journal, Where am i going wrong?


darkfall211

Question

Alright so i want to change the debug hint that comes up to a text in the screen. Below is the script i have made/edited but all that happens is it gives the...

 

"You find a Journal on the corpse, it says..."

 

text, but it doesnt tell me the details/stats of the player. 

 

heres the script..

private ["_body", "_name", "_kills", "_killsH", "_killsB", "_headShots", "_humanity"];
 
titleText ["You have found a journal on the corpse, It Says...","PLAIN DOWN"]; titleFadeOut 3;
sleep 2;
 
_body = _this select 3;
_name = _body getVariable ["bodyName","unknown"];
_kills = _body getVariable ["zombieKills",0];
_killsH = _body getVariable ["humanKills",0];
_killsB = _body getVariable ["banditKills",0];
_headShots = _body getVariable ["headShots",0];
_humanity = _body getVariable ["humanity",0];
 
titleText ["My name is",%1 ".","PLAIN DOWN"]; titleFadeOut 2;
sleep 2;
titleText ["i've killed ",%2 "Zombies.","PLAIN DOWN"]; titleFadeOut 2;
sleep 2;
titleText ["i've Murdered ",%3 "Survivors.","PLAIN DOWN"]; titleFadeOut 2;
sleep 2;
titleText ["i've Killed ",%4 "Bandits.","PLAIN DOWN"]; titleFadeOut 2;
sleep 2;
titleText ["My Humanity is ",%5 ".","PLAIN DOWN"]; titleFadeOut 2;

_name,_kills,_killsH,_killsB,_headShots,_humanity];

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 0

you are giving titletext too many arguments (4 instead of 2).

 

correct way should be:  titleText["string","type"]; and not titleText["string", variable "string", "type"];

 

this should fix it:

titleText ["My name is %1","PLAIN DOWN"]; titleFadeOut 2;
sleep 2;
titleText ["I've killed %2 Zombies.","PLAIN DOWN"]; titleFadeOut 2;
sleep 2;
titleText ["I've Murdered %3 Survivors.","PLAIN DOWN"]; titleFadeOut 2;
sleep 2;
titleText ["I've Killed %4 Bandits.","PLAIN DOWN"]; titleFadeOut 2;
sleep 2;
titleText ["My Humanity is at %5.","PLAIN DOWN"]; titleFadeOut 2;
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...