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 04-18-2009, 01:51 AM
Inverness Inverness is offline
Incubator
Inverness's Avatar
Join Date: Aug 2004
Location: Houston, Texas
Posts: 3,613
Inverness is a jewel in the roughInverness is a jewel in the rough
Arbitrary Length Integers

We need these. Some of us on Valikorlia just realized that there would be a limit to the player.mud.gold variable. I propose only have the arbitrary length integer be used when the normal integer goes over the limit or if you append 'L' to an integer literal.
__________________
Reply With Quote
  #2  
Old 04-18-2009, 03:15 AM
Skyld Skyld is offline
Script-fu
Skyld's Avatar
Join Date: Jan 2002
Location: United Kingdom
Posts: 3,914
Skyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud of
Send a message via AIM to Skyld
Wait. Why exactly is this needed?
Quote:
Originally Posted by Inverness
just realized that there would be a limit to the player.mud.gold variable
Exactly what sort of stupidly long number are you storing here that you can't possibly store in some better fashion?
Reply With Quote
  #3  
Old 04-18-2009, 04:17 AM
Inverness Inverness is offline
Incubator
Inverness's Avatar
Join Date: Aug 2004
Location: Houston, Texas
Posts: 3,613
Inverness is a jewel in the roughInverness is a jewel in the rough
Quote:
Originally Posted by Skyld View Post
Wait. Why exactly is this needed?

Exactly what sort of stupidly long number are you storing here that you can't possibly store in some better fashion?
I don't like your tone young man.

Anyhow, this is planning for the future more like, I suppose I would have to place a limit on item stack sizes in this case and not use a variable for gold. And the stupidly long number happens to be the contents of a national treasury.
__________________
Reply With Quote
  #4  
Old 04-18-2009, 04:26 AM
Skyld Skyld is offline
Script-fu
Skyld's Avatar
Join Date: Jan 2002
Location: United Kingdom
Posts: 3,914
Skyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud of
Send a message via AIM to Skyld
Quote:
Originally Posted by Inverness
the stupidly long number happens to be the contents of a national treasury.
You are storing the national treasury in player.mud.gold? Yuck.
Reply With Quote
  #5  
Old 04-18-2009, 04:34 AM
Inverness Inverness is offline
Incubator
Inverness's Avatar
Join Date: Aug 2004
Location: Houston, Texas
Posts: 3,613
Inverness is a jewel in the roughInverness is a jewel in the rough
Quote:
Originally Posted by Skyld View Post
You are storing the national treasury in player.mud.gold? Yuck.
Lol, no. Mud objects are used to hold items and such, and are bound to Graal objects, the player's mud object is at player.mud. The mud object for a treasury would be bound to a database npc most likely.

Edit: Though multiple stacks doesn't help too much since you would not be able to count the total of all stacks.
__________________
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 01:11 AM.


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