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 04-09-2005, 11:27 PM
vigilant_death2 vigilant_death2 is offline
Registered User
Join Date: Sep 2003
Location: n/a
Posts: 25
vigilant_death2 is on a distinguished road
Send a message via AIM to vigilant_death2 Send a message via Yahoo to vigilant_death2
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
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!!
__________________
-Neo

Last edited by vigilant_death2; 04-09-2005 at 11:50 PM..
Reply With Quote
  #2  
Old 04-10-2005, 01:44 AM
xManiamaNx xManiamaNx is offline
Supreme Dictator
xManiamaNx's Avatar
Join Date: Nov 2002
Location: 127.0.0.1
Posts: 385
xManiamaNx is on a distinguished road
Send a message via MSN to xManiamaNx Send a message via Yahoo to xManiamaNx
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.
__________________
Maniaman

Play Maloria Now: [2.3] [3]
Maloria Website


Last edited by xManiamaNx; 04-10-2005 at 03:55 AM..
Reply With Quote
  #3  
Old 04-10-2005, 03:30 AM
Deek2 Deek2 is offline
Registered User
Join Date: May 2002
Location: Springfield, Missouri
Posts: 1,578
Deek2 is on a distinguished road
Uh.
Attached Images
 
Reply With Quote
  #4  
Old 04-10-2005, 03:31 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
Old bug that has been introduced with v2.3 and has been fixed several weeks ago, please download the updated editor with setup.exe.
Reply With Quote
  #5  
Old 04-10-2005, 09:05 PM
coreys coreys is offline
N-Pulse Assistant Manager
coreys's Avatar
Join Date: Mar 2005
Posts: 2,180
coreys has a spectacular aura about
Send a message via AIM to coreys Send a message via MSN to coreys Send a message via Yahoo to coreys
that and #v stands for variable. Make a variable called something and make it equal 4/100. then use #v(thatvariablename)
__________________

Quote:
*SlikRick: so should I even ask about your aim status?
*Xor: well if you want to
*Xor: but i am LARPING
*SlikRick: While on a computer?
*Xor: yes
*Xor: in my living room
*SlikRick: ahh
*Xor: i have a fort setup to hide from beasts
Reply With Quote
  #6  
Old 04-10-2005, 09:21 PM
Evil_Trunks Evil_Trunks is offline
Evil
Evil_Trunks's Avatar
Join Date: Dec 2004
Posts: 391
Evil_Trunks is on a distinguished road
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
__________________

Reply With Quote
  #7  
Old 04-10-2005, 10:33 PM
vigilant_death2 vigilant_death2 is offline
Registered User
Join Date: Sep 2003
Location: n/a
Posts: 25
vigilant_death2 is on a distinguished road
Send a message via AIM to vigilant_death2 Send a message via Yahoo to vigilant_death2
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.
__________________
-Neo
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 09:29 AM.


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