This commit is contained in:
esteldunedain 2015-04-17 20:00:43 -03:00
parent cce9e1f04c
commit a5c3e86cd3
2 changed files with 8 additions and 12 deletions

View File

@ -14,8 +14,6 @@
#include "script_component.hpp"
systemChat "actionDiagnose";
private ["_caller","_target","_title","_content"];
_caller = _this select 0;
_target = _this select 1;

View File

@ -14,12 +14,10 @@
#include "script_component.hpp"
systemChat "actionDiagnoseLocal";
_caller = _this select 0;
_unit = _this select 1;
_genericMessages = ["Patient %1 is %2. %3. %4"];
_genericMessages = ["Patient %1<br/>is %2.<br/>%3.<br/>%4"];
_genericMessages pushBack ([_unit] call EFUNC(common,getName));
if (alive _unit) then {
@ -31,12 +29,12 @@ if (_target getvariable[QGVAR(hasLostBlood), false]) then {
_genericMessages pushback "He's lost some blood";
} else {
_genericMessages pushback "He hasn't lost blood";
;
if (_target getvariable[QGVAR(hasPain), false]) then {
_genericMessages pushback localize "He is in pain";
} else {
_genericMessages pushback localize "He is not in pain";
};
["displayTextStructured", [_caller], [format _genericMessages, 1.5, _caller]] call EFUNC(common,targetEvent);
if (_target getvariable[QGVAR(hasPain), false]) then {
_genericMessages pushback "He is in pain";
} else {
_genericMessages pushback "He is not in pain";
};
diag_log _genericMessages;
["displayTextStructured", [_caller], [format _genericMessages, 3.0, _caller]] call EFUNC(common,targetEvent);