Well I wanted to make an NPC. SO that when it is fired it makes a replica of the person who fired it...but I seem to be having trouble *yes I suck at npc making* Here is what is in the txt script.
NPC Code:
if (created) {
// Initialize the attributes
showcharacter;
setcharprop #n(-1),#n;
setcharprop #c(-1),#c;
sprite=playersprite;
setcharprop #C0(-1),#C0;
setcharprop #C1(-1),#C1;
setcharprop #C2(-1),#C2;
setcharprop #C3(-1),#C3;
setcharprop #C4(-1),#C4;
setcharprop #P1(-1),#P1;
setcharani #m,;
setcharprop #3(-1),#3;
setcharprop #8(-1),#8;
dir=playerdir;
ap=playerap;
and here is what is in the actual NPC.
NPC Code:
if (playertouchsme) {toweapons Cloner;
}
if (weaponfired)
putnpc ,staffdollnews.txt,playerx,playery;