Thread: Dragon
View Single Post
  #2  
Old 09-30-2001, 01:56 PM
G_yoshi G_yoshi is offline
Forbidden
G_yoshi's Avatar
Join Date: Mar 2001
Posts: 7,206
G_yoshi will become famous soon enough
Send a message via AIM to G_yoshi
Re: Dragon

Quote:
Originally posted by Aknts
funnylink-
NPC Code:
// NPC made by Funnylink
if (playerenters) {
}
if (playertouchsme) {toweapons Dragon
}
if (weaponfired&&!dragon) {
set dragon;
replaceani idle,dragon_idle;
replaceani walk,dragon_walk;
replaceani hurt,dragon_idle;
replaceani sword,dragon_attack;
replaceani push,dragon_fire;
replaceani sleep,dragon_idle;
replaceani swim,dragon_idle;
replaceani lava,dragon_idle;
replaceani pull,dragon_idle;
replaceani hurt,dragon_idle;
sleep 1;
}
if (weaponfired&&dragon) {
unset dragon;
replaceani walk,walk;
replaceani hurt,hurt;
replaceani sword,sword;
replaceani push,push;
replaceani sleep,sleep;
replaceani swim,swim;
replaceani lava,lava;
replaceani pull,pull;
replaceani idle,idle;
replaceani hurt,hurt;
sleep 1;
}


i made this but it jus wont let me hert when fire is used and i need it so a makes fire come out thankx
btw, you might want to check your code there.
replaceani hurt,dragon_idle; should be replaceani hurt,dragon_fire; or replaceani hurt,dragon_attack;

Also, Graal's engine uses animation detection and executes the hurt part of the attack when the player swings his/her sword (my limited knowledge).
__________________
Reply With Quote