Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   Walking while doing something. (https://forums.graalonline.com/forums/showthread.php?t=6548)

Poogle 07-05-2001 05:29 AM

Walking while doing something.
 
Do any of you know how the Torch is made so i can get a example on something im working on?(Doesnt have to be the torch script lol)

Brady2 07-05-2001 01:33 PM

-Jadis, Brady is letting me use his account to post...
I suppose it would be
I don't know the torch's gani though
PHP Code:

if (playerenters) if (torchheldreplaceani torch,walk;
if (
playertouchsme) {hidelocal;toweapons Torch;
if (
weaponfired) {
 if (
torchheld)
  unset 
torchheld;
  
replaceani walk,walk;
 } else {
  
set torchheld;
  
replaceani torch,walk;
 }



grim_squeaker_x 07-05-2001 09:33 PM

Quote:

Originally posted by Kaimetsu
Nonono! "torch" is not a basic gani type. Here:

NPC Code:

if(weaponfired){
if(this.held==0){
replaceani walk,torchwalk;
replaceani idle,torchidle;
}
else{
replaceani walk,walk;
replaceani idle,idle;
}
}


He did say that he didn't know what the gani was.

grim_squeaker_x 07-05-2001 10:29 PM

Quote:

Originally posted by Kaimetsu


Yes but he used "replaceani torch,idle" or something like that. "Torch" cannot be used as the first param, even if it is an existing gani.

Nevermind, I hadn't noticed that yet.

Brady2 07-05-2001 11:12 PM

-Posted by Jadis

Hooray I am stupid

Poogle 07-06-2001 09:44 AM

Kool!
 
Thanks people! Please dont make fun of peoples ideas I thought he did good but the script might not work.

Poogle 07-06-2001 09:48 AM

GGGGRRRR
 
Quote:

Originally posted by Kaimetsu
Nonono! "torch" is not a basic gani type. Here:

NPC Code:

if(weaponfired){
if(this.held==0){
replaceani walk,torchwalk;
replaceani idle,torchidle;
}
else{
replaceani walk,walk;
replaceani idle,idle;
}
}


YOU WENT MAKING FUN WHEN YOUR DOESNT EVEN WORK!

Er1c 07-06-2001 10:06 AM

Well try and find the right gani for it... maybe torchwalk isnt the right name

also, you forgot setting the variables, just have if (this.whatever==0) and nothing setting the values.

Lion'el-Jonson 07-06-2001 10:19 AM

Egad! NPC script makes me dizzy.

Er1c 07-07-2001 12:41 AM

I know YOU know what you did wrong, but Poogle doesnt

Poogle 07-07-2001 06:22 AM

eR1c...
 
Your soo right if i knew then dangit this post wouldnt be here! and shouldnt you be working on ToT? It wont get up probly becuse you all play around it seems like!


All times are GMT +2. The time now is 11:14 AM.

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