View Single Post
KRSplatinum KRSplatinum's Avatar

JCF Member

Joined: Jul 2013

Posts: 263

KRSplatinum is a forum legendKRSplatinum is a forum legend

Mar 7, 2014, 10:35 PM
KRSplatinum is offline
Reply With Quote
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);
}