Graal Forums  

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

 
 
Thread Tools Search this Thread Rate Thread Display Modes
  #1  
Old 05-22-2001, 10:17 AM
Bravo_NPC-Admin1 Bravo_NPC-Admin1 is offline
Registered User
Join Date: May 2001
Location: Olympia, Washington USA
Posts: 25
Bravo_NPC-Admin1 is on a distinguished road
Send a message via AIM to Bravo_NPC-Admin1 Send a message via Yahoo to Bravo_NPC-Admin1
Cool Some.......stuff

Hello. I got more stuff to talk about. Since I can NEVER get a hold of Stefan, I will post everything here.

First of all, can someone explain when to use //#CLIENTSIDE in a script for me? I kinda got the basics down, but am kinda rusty. Also, does TriggerAction go under //#CLIENTSIDE?

Second, I found some glitches/bugs/evil thingys in Graal.
-=Bugs=-
Can't change head in NPC Server (special code?)
Bug in Setup.EXE
-======-
#v(variables) don't work
The bug in setup.exe is as follows: I can downgrade Graal v2.03 into Graal v2.02. But, it doesn't recognize that I downgraded and STILL thinks I have 2.03. There is also a bug in #v(variables). If you use #v(variable) in a say2 command, it will come out as ZERO every time. I opened the debugger. this.BugCount equaled 9. In my say2 command, I had #v(this.BugCount). It always came out as ZERO. #s(string) works, but #v(variable) doesn't.

Also, I have a suggestion. Here it is: make it so you can download a server's map. That would be great. Upload the map and txt file for it, and the players would automatically download it.

Well, that ABOUT raps it up. I will still try to find Stefan, because I didn't talk about everything on my mind. Time to figure out WHY this dumb npc works offline correctly but not online..........
__________________
-Boco
  #2  
Old 05-22-2001, 09:36 PM
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
Yes they wouldn't have any problems if they wouldn't
delete my npcs,
I have made the starting levels from Bravo to
work with the npcserver, also added an npc
with that setstring command

There is absolutely no problem with #v().

Setup.exe: you can click on the version, it will
scroll through Keep/Uninstall/2.02/2.03
  #3  
Old 05-23-2001, 06:13 AM
Bravo_NPC-Admin1 Bravo_NPC-Admin1 is offline
Registered User
Join Date: May 2001
Location: Olympia, Washington USA
Posts: 25
Bravo_NPC-Admin1 is on a distinguished road
Send a message via AIM to Bravo_NPC-Admin1 Send a message via Yahoo to Bravo_NPC-Admin1
Unhappy

Well, ok. But, Stefan, in my script I set:

this.BugCount=9;

A couple lines down, I did this:

say2 You only have #v(this.BugCount) bugs.;

Normally, you would get a textbox saying:
You only have 9 bugs.

Instead, this is what it shows:
You only have 0 bugs.

The debugger even shows this.BugCount equals 9, but it won't work in the textbox. Also, can anyone explain to me where to put //#CLIENTSIDE and where NOT to put //#CLIENTSIDE. Thanks.
__________________
-Boco
  #4  
Old 06-06-2001, 08:09 PM
TB3 TB3 is offline
Registered User
TB3's Avatar
Join Date: May 2001
Location: US of A State of VA
Posts: 658
TB3 is on a distinguished road
Send a message via Yahoo to TB3
Ok here is some help if it helps or i could just be up to early

Ok when you use a variable or string of ne type do the following if you want the text version of it which can be text,numbers but its still text put it in like this
Example: message You need #v(10-#v(#s(client.bugs)))
It would make the npc message the number of bugs subtracted from 10 or whatever u wanted.
If you want just a text version you would do #s(client.bugs) but if its a variable you put the #v() around the #s() all it does is show the string as numerical data. I hope this clears alot of questions ive seen today up. *passes out*...........
__________________

To the sun of your age, I arise
  #5  
Old 06-06-2001, 08:29 PM
TB3 TB3 is offline
Registered User
TB3's Avatar
Join Date: May 2001
Location: US of A State of VA
Posts: 658
TB3 is on a distinguished road
Send a message via Yahoo to TB3
Re: Re: Ok here is some help if it helps or i could just be up to early

Quote:
Originally posted by Kaimetsu


Don't you need a strtofloat? Pklus, he was talking about say2 and this.variables - not messages and strings. Slight difference, but one that brings me one step closer to 1000 posts
huh? yeah of course i know that im tired and trying but the thing is u dont need strtofloat in all cases you can use it if you want but i dont and it still works mainly its needed in the if statements rather than in the commands but you do the same with the this.vars in say2 well at least im pretty sure you can like say2 You have #v(#s(this.bugs));
or client.bugs whatever you are using if ur doing something like that u will more than likely use client.vars
Im sleepy *passes back out*.......
__________________

To the sun of your age, I arise
 


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:41 PM.


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