I'm making a jousting arena, but the ET member who controls it sits in a seat INSIDE the arena, making him vunerable to attacks. I want to do two things:
I want, when the ET member says something like begin judging that a tile hides for 3 seconds, then the ET member goes in side and sits in the seat, and is protected.
I also want, to move the player out of the level when he/she dies, or into a graveyard part on the field. I also want to incorporate this into a boot function, only accessible by ET members.
How would I do that? Help is greatly appriecated.
My current PvP herald code:
NPC Code:
// NPC by Sephir/Raeiphon
// Please credit if you use!
if (created) {
// Initialize the attributes
showcharacter;
setcharprop #3,head19.png;
setcharprop #C0,orange;
setcharprop #C1,gray;
setcharprop #C2,gray;
setcharprop #C3,brown;
setcharprop #C4,black;
setcharprop #n,PvP Herald;
setcharprop #2,no-shield.png;
shieldpower = 1;
dir = 2;
message Say start to begin the joust!;
}
if (playerchats) {
if(strequals(#c,start)){
putbomb 0,38,25;
sleep 5;
message ET Judges from now!;
}
if(strequals(#c,superjoust)){
putcomp goldenwarrior,npcs[self].x,npcs[self].y+10;
putcomp goldenwarrior,npcs[self].x,npcs[self].y+10;
putcomp goldenwarrior,npcs[self].x,npcs[self].y+10;
putcomp goldenwarrior,npcs[self].x,npcs[self].y+10;
putcomp goldenwarrior,npcs[self].x,npcs[self].y+10;
}
}
if (playerdies) {
message A PLAYER HAS WON!!;
setlevel2 mainhouse.nw,0,0
}
The setlevel2 was my original means, but i cant get it to work in the Offline test.