Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 09-30-2001, 01:44 PM
Aknts Aknts is offline
Level Designer
Aknts's Avatar
Join Date: Apr 2001
Location: USofA
Posts: 3,340
Aknts will become famous soon enough
Send a message via AIM to Aknts
Dragon

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
__________________
Reply With Quote
  #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
  #3  
Old 09-30-2001, 08:32 PM
Bhala Bhala is offline
Disgruntled Monkey
Bhala's Avatar
Join Date: Mar 2001
Posts: 779
Bhala is on a distinguished road
Re: Re: Dragon

Quote:
Originally posted by G_yoshi
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).
your right...which really sux when you think your baddy is hurting the player but then you find out that its doing jack...& jack wasnt happy about that....
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 02:37 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.