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 10-14-2001, 11:37 AM
nyghtGT nyghtGT is offline
Banned
nyghtGT's Avatar
Join Date: Jun 2001
Posts: 3,993
nyghtGT is on a distinguished road
Send a message via AIM to nyghtGT
why ?

why wont this work ?
NPC Code:

// NPC made by Nyght *Asst* (LAT Admin)
while (created) {
message Babylon Taylor Skill;
}
if (playerenters) {
toweapons *Taylor;
}
if (weaponfired) {
tayloropen();
}
function tayloropen() {
showimg 0,babylontaylor.gif,32,32}

Reply With Quote
  #2  
Old 10-14-2001, 11:41 AM
KJS KJS is offline
The one, The only -
KJS's Avatar
Join Date: Apr 2001
Location: USA, Minnesota
Posts: 1,012
KJS is on a distinguished road
Send a message via AIM to KJS
Re: why ?

NPC Code:

if (created)
message Babylon Taylor Skill;
if (playerenters)
toweapons *Taylor;
if (weaponfired)
tayloropen();
function tayloropen()
showimg 0,babylontaylor.gif,32,32;



try that...

it will only show it at 32 32 on the level you know right?
__________________
Thanks,
-KJL
Reply With Quote
  #3  
Old 10-14-2001, 11:43 AM
nyghtGT nyghtGT is offline
Banned
nyghtGT's Avatar
Join Date: Jun 2001
Posts: 3,993
nyghtGT is on a distinguished road
Send a message via AIM to nyghtGT
Re: Re: why ?

Quote:
Originally posted by KJS
NPC Code:

if (created)
message Babylon Taylor Skill;
if (playerenters)
toweapons *Taylor;
if (weaponfired)
tayloropen();
function tayloropen()
showimg 0,babylontaylor.gif,32,32;



try that...

it will only show it at 32 32 on the level you know right?
that doesn't work ....
Reply With Quote
  #4  
Old 10-15-2001, 12:26 AM
btedji btedji is offline
bryan986
btedji's Avatar
Join Date: Apr 2001
Location: Force 10
Posts: 1,153
btedji is on a distinguished road
Send a message via ICQ to btedji Send a message via AIM to btedji Send a message via Yahoo to btedji
try a showimg index of higher than 0 and put brackets {} around entries like if(created){script}
Reply With Quote
  #5  
Old 10-15-2001, 03:53 AM
WeirdmanI9 WeirdmanI9 is offline
Banned
WeirdmanI9's Avatar
Join Date: Mar 2001
Location: Laying Low From The Police
Posts: 1,816
WeirdmanI9 is on a distinguished road
Send a message via AIM to WeirdmanI9 Send a message via Yahoo to WeirdmanI9
How about just don't use a function since it appears you only use it once?
Reply With Quote
  #6  
Old 10-15-2001, 04:00 AM
Xaviar Xaviar is offline
Registered User
Join Date: Aug 2001
Location: Fairyland
Posts: 463
Xaviar is on a distinguished road
Send a message via ICQ to Xaviar Send a message via AIM to Xaviar
Quote:
Originally posted by WeirdmanI9
How about just don't use a function since it appears you only use it once?
Obviously he's going to add more later (I think he already has, judging by the other threads he is posting in)...But an easy fix nyght, would be:

function tayloropen() {
showimg 222,babylontaylor.gif,32,32; //index bigger than 200 so it shows locally
changeimgvis 222,4; //layer of 4 so that it gets drawn as a stat
}


Okiedokey?
__________________
One by one, the penguins steal my sanity.

*cookie for Xaviar* --Originally posted by Tyhm

--Xaviar

A m e r i c a
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 04:11 PM.


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