Graal Forums  

Go Back   Graal Forums > Development Forums > Future Improvements
FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 02-26-2004, 01:03 AM
Duwul Duwul is offline
Registered User
Join Date: Nov 2003
Posts: 105
Duwul is on a distinguished road
predefined vars

I thought it would be better if maybe we could make our own predefined variables, and assign a certain value to them, like playerhearts is the current hearts you have, playerrupees, etc., things like that. They could be set on the server and used throughout all the scripts. What do you think?
__________________
-Ajira
Liek, omigosh.
<3 DoomsDay.
Reply With Quote
  #2  
Old 02-26-2004, 02:04 AM
R0bin R0bin is offline
Banned
R0bin's Avatar
Join Date: Oct 2002
Location: Wales, UK
Posts: 828
R0bin is on a distinguished road
Send a message via AIM to R0bin
...

Delete this post before you are flamed friend.
Reply With Quote
  #3  
Old 02-26-2004, 02:13 AM
Blue_Dragn Blue_Dragn is offline
Registered User
Join Date: Jul 2003
Posts: 302
Blue_Dragn is on a distinguished road
Quote:
Originally posted by R0bin
...

Delete this post before you are flamed friend.
Agree, v_v
__________________
No longer a Advertisement Goat
Reply With Quote
  #4  
Old 02-26-2004, 03:56 AM
G_yoshi G_yoshi is offline
Forbidden
G_yoshi's Avatar
Join Date: Mar 2001
Posts: 7,206
G_yoshi will become famous soon enough
Send a message via AIM to G_yoshi
Re: predefined vars

Quote:
Originally posted by Duwul
I thought it would be better if maybe we could make our own predefined variables, and assign a certain value to them, like playerhearts is the current hearts you have, playerrupees, etc., things like that. They could be set on the server and used throughout all the scripts. What do you think?
Why do you think you can define a variable with whatever name you choose? I guess I do not understand the point of your request.
__________________
Reply With Quote
  #5  
Old 02-26-2004, 04:05 AM
ZeLpH_MyStiK ZeLpH_MyStiK is offline
Scripter
ZeLpH_MyStiK's Avatar
Join Date: May 2003
Location: NYC
Posts: 553
ZeLpH_MyStiK is on a distinguished road
Send a message via MSN to ZeLpH_MyStiK Send a message via Yahoo to ZeLpH_MyStiK
NPC Code:

setstring clientr.stupidity,100; //in percent form

__________________
Reply With Quote
  #6  
Old 02-26-2004, 04:10 AM
G_yoshi G_yoshi is offline
Forbidden
G_yoshi's Avatar
Join Date: Mar 2001
Posts: 7,206
G_yoshi will become famous soon enough
Send a message via AIM to G_yoshi
Quote:
Originally posted by ZeLpH_MyStiK
NPC Code:

setstring clientr.stupidity,100; //in percent form

:/

Is that really necessary? At least give him a chance to respond to my question before you decide you need to bite his head off. Probably a newbie to scripting and might not understand that a variable in graal can be named what ever you want it to be.
__________________
Reply With Quote
  #7  
Old 02-26-2004, 04:14 AM
Loriel Loriel is offline
Somewhat rusty
Loriel's Avatar
Join Date: Mar 2001
Posts: 5,059
Loriel is a name known to allLoriel is a name known to allLoriel is a name known to allLoriel is a name known to all
I think he wants to have persistent variables. Because you certainly must agree that it makes not much sense to save numbers into _strings_.
Reply With Quote
  #8  
Old 02-26-2004, 04:17 AM
G_yoshi G_yoshi is offline
Forbidden
G_yoshi's Avatar
Join Date: Mar 2001
Posts: 7,206
G_yoshi will become famous soon enough
Send a message via AIM to G_yoshi
Quote:
Originally posted by Loriel
I think he wants to have persistent variables. Because you certainly must agree that it makes not much sense to save numbers into _strings_.
That is true Wouldn't the easiest way to maintain a persistent variable would be to keep it in a weapon script of some sort?
__________________
Reply With Quote
  #9  
Old 02-27-2004, 04:33 AM
Duwul Duwul is offline
Registered User
Join Date: Nov 2003
Posts: 105
Duwul is on a distinguished road
=/
Forget it. After I left the computer, I thought about it and decided I don't know why I posted this. BTW I don't think I am a newbie to scripting as I have been scripting for about 2 years now. If you want me to delete this thread, I will.
__________________
-Ajira
Liek, omigosh.
<3 DoomsDay.
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:15 AM.


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