Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   Graal scripting engine bug? o.o (https://forums.graalonline.com/forums/showthread.php?t=58496)

vigilant_death2 04-09-2005 11:27 PM

Graal scripting engine bug? o.o
 
I was messing around scripting things offline and whattya know I find a bug!
Don't know if it's already known or not but I'll post it anyway :whatever:
Check this out...
NPC Code:

//#CLIENTSIDE
if(playerchats&&strequals(#c,show me the bug!)){
setplayerprop #c,Ok, 4 divided by 100 is #v(4/100)!;
}


Well there you go...
Most of you can do that in your head (DUH) but when you put it through the game...
guess what? 4 divided by 100 is .4! no, not .04, .4!!

xManiamaNx 04-10-2005 01:44 AM

If 4/100 it .4, then what is 4/10?

4/100 = .04 according to every calculator in my house.


edit: ah, I think i misread your post, or you've edited it to make it more clearer after i replied to this message.

Deek2 04-10-2005 03:30 AM

1 Attachment(s)
Uh.

Admins 04-10-2005 03:31 AM

Old bug that has been introduced with v2.3 and has been fixed several weeks ago, please download the updated editor with setup.exe.

coreys 04-10-2005 09:05 PM

that and #v stands for variable. Make a variable called something and make it equal 4/100. then use #v(thatvariablename)

Evil_Trunks 04-10-2005 09:21 PM

Quote:

Originally Posted by coreys
that and #v stands for variable. Make a variable called something and make it equal 4/100. then use #v(thatvariablename)

you must realize there are rules against posting stupid things like this

he used #v() perfectly fine, if you actually knew how it worked

vigilant_death2 04-10-2005 10:33 PM

Quote:

Originally Posted by coreys
that and #v stands for variable. Make a variable called something and make it equal 4/100. then use #v(thatvariablename)

Heh, just for good measure....
Quote:

Originally Posted by commands.rtf
#v(var) the value of ‘var’ as string

That might help you out a little there coreys.


All times are GMT +2. The time now is 03:08 PM.

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