You could just have the PC speak the string in party chat.
if (GetStringUpperCase(sInput) == "#ROLL HEAL")
{
string sRoll = IntToString(d20()+ GetSkillRank(SKILL_HEAL,oPC));
sRoll = StringToRGBString (sRoll, STRING_COLOR_GREEN );
string sMessage = "Rolled a "+ sRoll + " Heal check";
AssignCommand(oPC,SpeakString(sMessage,TALKVOLUME_PARTY));
}
The only reason for changing the roll to colored text, is to make sure the PC does not just type in there own result.
you will need ot include x3_inc_string to use the StringToRGBString function
Modifié par Lightfoot8, 05 octobre 2013 - 09:31 .