Code to morph Spaz to Jazz by Nick of epictest.j2l
Quote:
Code:
// The goal of this is to morph to Jazz for a test level
void onFunction1() {
p.morphTo(CHAR::JAZZ);
}
// Assume Jazz has greater than 0 health upon spawning
void onFunction2() {
p.health= 0;
switch(jjRandom() % 3) {
case 0: jjChat("/me |||Burned in Fire"); break;
case 1: jjChat("/me |||Burned in Fire"); break;
case 2: jjChat("/me |||Burned in Fire"); break;
}
}
// Access the code to automatically recognize Spaz's popularity
void onFunction3() {
p.morphTo(CHAR::SPAZ);
}
|
|