Graal Forums  

Go Back   Graal Forums > Development Forums > Tech Support
FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 06-24-2001, 03:33 PM
entravial entravial is offline
Registered User
entravial's Avatar
Join Date: Mar 2001
Posts: 825
entravial is on a distinguished road
Send a message via ICQ to entravial Send a message via AIM to entravial Send a message via Yahoo to entravial
NPC Bug

A friend found that if you use a disabledefmovement npc and have a putnpc command in it, the putnpc can't set flags or use variables other than this.

Please answer...
__________________


If the post says ~AlphaFlame~, that's who's posting. If not, it's Entravial (owner)
Reply With Quote
  #2  
Old 06-26-2001, 12:22 PM
FxChiP FxChiP is offline
Registered User
Join Date: Mar 2001
Location: Pittsburgh, PA
Posts: 451
FxChiP is on a distinguished road
Send a message via ICQ to FxChiP Send a message via AIM to FxChiP
Re: NPC Bug

Quote:
Originally posted by entravial
A friend found that if you use a disabledefmovement npc and have a putnpc command in it, the putnpc can't set flags or use variables other than this.

Please answer...
For clarification, I think he's saying that the putnpc script can't set flags or use variables that aren't this.vars. I think...
__________________


"The administrators of Graal Online will not be responsible for corrupting of young minds. " -User Agreement.. heh-heh-heh

"4. Racial intolerance is not allowed. [NEW!]" -User License Agreement (I love the "[NEW!]" part)

"No more drugs for THAT man!" -TrueHeaT

"... or does
it stand for something like
'[B]hala is the [M]an who decides so lets [X]ross the fingers'?)" -Stefan, in response to a guild dispute over the guild name "BMX"

[img src=http://www.lucitanica.f2s.com/shaun-revolutionsig.gif]
Time to piss Lycia off!
Reply With Quote
  #3  
Old 06-26-2001, 12:31 PM
FxChiP FxChiP is offline
Registered User
Join Date: Mar 2001
Location: Pittsburgh, PA
Posts: 451
FxChiP is on a distinguished road
Send a message via ICQ to FxChiP Send a message via AIM to FxChiP
Have your friend check the putnpc txt script - I just tested the bug you mentioned, and the putnpc script sets global variables, flags, and this.vars just fine...

Make sure that your variable names are all the same completely... including how they're capitalized. For example, FxBug is not the same as FxBuG or fxBug.

Also, make sure that you're checking the right fields in the script debugger. The field for global/level-wide variables is the upper right hand corner. The field for this.vars set is in the bottom box in the second column (to the right of the area where you see the script). Also, in case you didn't know... pressing F6 pops up the script debugger.

Sorry if I over-simplified this or something...
__________________


"The administrators of Graal Online will not be responsible for corrupting of young minds. " -User Agreement.. heh-heh-heh

"4. Racial intolerance is not allowed. [NEW!]" -User License Agreement (I love the "[NEW!]" part)

"No more drugs for THAT man!" -TrueHeaT

"... or does
it stand for something like
'[B]hala is the [M]an who decides so lets [X]ross the fingers'?)" -Stefan, in response to a guild dispute over the guild name "BMX"

[img src=http://www.lucitanica.f2s.com/shaun-revolutionsig.gif]
Time to piss Lycia off!
Reply With Quote
  #4  
Old 06-26-2001, 05:25 PM
entravial entravial is offline
Registered User
entravial's Avatar
Join Date: Mar 2001
Posts: 825
entravial is on a distinguished road
Send a message via ICQ to entravial Send a message via AIM to entravial Send a message via Yahoo to entravial
hmph

Hullo. AlphaFlame here... aka "a friend". What I meant was this...

If you should make an NPC, say if (weaponfired){disabledefmovement;} or so, and then have a keydown event, the putnpc can't set certain things right. I've included a zip with script/putnpc/screenshots samples. Either my graal is completely messed up, or it's a bug. I'll bet on the latter . And shush on the scripting. This is an example!

Oh yea, almost forgot... test 1 is the disabledef... test2 is another lil bug I found. To try test 1 right, use it with d, then press a.
Attached Files
File Type: zip test.zip (18.1 KB, 140 views)
__________________


If the post says ~AlphaFlame~, that's who's posting. If not, it's Entravial (owner)
Reply With Quote
  #5  
Old 06-27-2001, 07:01 AM
Admins Admins is offline
Graal Administration
Join Date: Jan 2000
Location: Admins
Posts: 11,693
Admins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud of
The only things that I can see in the
script is that you cannot lay the
testa.txt npc (because you don't
check for keydown(6) in a
timeout/loop) and when you
do the disabledefmovement
you cannot lay down the test.txt
npc because weaponfired is not
called when the default movement/
key handling is turned off.
Do a keydown(6) check there
too for laying down the npc, then it will
work.
Reply With Quote
  #6  
Old 06-27-2001, 10:05 AM
entravial entravial is offline
Registered User
entravial's Avatar
Join Date: Mar 2001
Posts: 825
entravial is on a distinguished road
Send a message via ICQ to entravial Send a message via AIM to entravial Send a message via Yahoo to entravial
*AlphaFlame*

Hmm... I completely left that out in my test npc, but I have it in another NPC that made me notice the buggy... gah... here, I fixed it. No flag, no testvar increase.
Attached Files
File Type: zip boo.zip (737 Bytes, 143 views)
__________________


If the post says ~AlphaFlame~, that's who's posting. If not, it's Entravial (owner)
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 11:43 PM.


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