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 05-31-2001, 10:43 PM
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
Troubles with #v()

I think the #v() command is broken. In proof, try this code:
NPC Code:

// NPC made by Boco
if (playerenters) {
this.Count=5;
say2 The count is #v(this.Count);
}


Normally, a sign would pop-up with the text, "The count is 5". But, that isn't the case. Instead, you see, "The count is 0". Am I doing something wrong, or is this command really bugged?
__________________
-Boco
Reply With Quote
  #2  
Old 05-31-2001, 10:49 PM
Kaimetsu Kaimetsu is offline
Script Monkey
Kaimetsu's Avatar
Join Date: May 2001
Posts: 18,222
Kaimetsu will become famous soon enough
Re: Troubles with #v()

It's say2. It won't let you put stuff like that in, unfortunately.

At least, I think that's the problem.
Reply With Quote
  #3  
Old 05-31-2001, 11:38 PM
Bhala Bhala is offline
Disgruntled Monkey
Bhala's Avatar
Join Date: Mar 2001
Posts: 779
Bhala is on a distinguished road
I have never had #v() work for me....I have had to use #s
Reply With Quote
  #4  
Old 06-01-2001, 12:28 AM
grim_squeaker_x grim_squeaker_x is offline
Retired Oldbie
grim_squeaker_x's Avatar
Join Date: Mar 2001
Posts: 3,084
grim_squeaker_x will become famous soon enough
If just #v(varname) doesn't work, I'd suggest trying: #s(strtofloat(#v(varname))), sounds a bit weird, but it might just work.
__________________

Reply With Quote
  #5  
Old 06-01-2001, 08:57 AM
WhoopA WhoopA is offline
Registered User
Join Date: May 2001
Location: Wherever I may roam
Posts: 86
WhoopA is on a distinguished road
Try making the variable lowercase. That might fix it. I know #v works for me...
__________________
WhoopA, the Official Kicker of Butts

--- No images. No clutter. Just pure, simple text.
"Thank you, thank you. Please, ladies, put your clothes back on... Not you Samus..." - Link from the BOTVGH
Everywhere I look, I see rabbits. Maybe I should take down all my Sailor Moon stuff.
Reply With Quote
  #6  
Old 06-01-2001, 12:09 PM
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 Problem is NPC variables

I modifed my code:
NPC Code:

// NPC made by Boco
if (playerenters) {
test=1;
this.test=1;
level.test=1;
client.test=1;
server.test=1;
//If return's 1, then it works. If 0, then brokey
say2
Normal is #v(test)#b
Level is #v(level.test)#b
NPC-Only is #v(this.test)#b
Client is #v(client.test)#b
Server is #v(server.test);
}



I tested all forms of the variable, and these are my results. I ran the test NPC and a sign popped up saying:

Normal is 1
Level is 1
NPC-Only is 0
Client is 1
Server is 1

this.variables are the only ones that don't work right. #s(this.variables) work, but for some reason, they don't with #v()... I am pretty sure this is a bug. Should I post this on the bug board now?
__________________
-Boco
Reply With Quote
  #7  
Old 06-03-2001, 04:59 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
Thanks for submitting it.
I have checked it, the problem is that
the npc uses a special function for say/say2
to parse the image codes (#i) and such stuff
and that function is npc-independed,
so no npc variables can be accessed.
I will fix that in the next version.
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:50 AM.


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