Skip to content

Instantly share code, notes, and snippets.

@Crystalwarrior
Created December 25, 2013 15:59
Show Gist options
  • Select an option

  • Save Crystalwarrior/8124477 to your computer and use it in GitHub Desktop.

Select an option

Save Crystalwarrior/8124477 to your computer and use it in GitHub Desktop.
for (%i = 0; %i <= 3; %i++) {
if (%col.hit[%i] && %col.hitType[%i] !$= "") {
echo(%i);
echo(%col.hitType[%i]);
switch (%i) {
case 0: %area = "head";
case 1: %area = "chest";
case 2: %area = "legs";
case 3: %area = "arms";
}
switch$ (%col.hitType[%i]) {
case "blunt":
%type = "bashed";
case "sharp":
%type = "stabbed";
case "bullet":
%type = "shot";
}
%message = %message @ "<br>\c6They were\c3" SPC %type SPC "\c6in the" SPC %area SPC ( %col.hit[%i] > 1 ? "multiple times." : "once." );
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment