
02-10-2002, 04:22 AM
|
|
Registered User
|
 |
Join Date: Aug 2001
Posts: 710
|
|
Passing Actions
|
Alright, I have this NPC
// NPC made by Lord Helmut
if (created) {
x+=.4;
y+=.7;
}
if (playerenters) {
message Player 1;
}
if (playertouchsme) {
setani idle,;
disabledefmovement;
setstring server.axeplayer1,#a;
setfocus 31,28;
}
then I have this one
// Graal2002 NPC by Stefan Knorr
if (created) {
showcharacter;
setcharprop #3,head0.png;
setcharprop #C0,orange;
setcharprop #C1,white;
setcharprop #C2,blue;
setcharprop #C3,red;
setcharprop #C4,black;
setcharprop #2,noshield.gif;
dir = 3;
}
if(playerenters){
timeout=.05;
}
if(timeout){
if(strequals(#a,server.axeplayer1)){
if(keydown(3)){
x+=5;
timeout=.05;
}
timeout=.05;
}
}
the first NPC is a controlled and the second is supposed to move when the first one is used. Like, the first is a button, im trying to make it so that if they push right it moves the NPC in the ring. Any idea why it wont pass the action? |
__________________

Check out the development at:
http://razza.org/lordhelmut/FantasyTales/index
|
|
|
|