Ambrosia Garden Archive
    • Variables? just one quick żQ?


      To what numerical value are variables limited to?
      (one would hope more than 9999, but then again it could be limited "32,---", those of you who program know?)

      ------------------
      ...go fall on something sharp.

    • It depends. The number you enter in a field will most likely be one of two data types:
      int - whole numbers up to 32,767
      long -whole numbers a little over 2 billion

      Numbers that hold decimals, on the other hand, would be probably a "float" which can hold numbers that far succeed the length of a "long"
      For the most part, probably the attributes etc. will be the "short" type.

      (edited to fix obnoxious emphasis)
      ------------------
      V-16 Twin Bombers: $8,000,000
      1 Aircraft Carrier: $4,000,000,000
      Battlecruiser loaded with marines: $8,000,000,000
      The look on Bin Ladin's face when we get him: Priceless...

      (This message has been edited by spitfire (edited 10-26-2001).)

    • Quote

      Originally posted by chill_rx:
      **To what numerical value are variables limited to?
      (one would hope more than 9999, but then again it could be limited "32,---", those of you who program know?)

      **

      Hint: global variables are coded as "unsigned short".

      ------------------
      Dee Brown
      Beenox inc. - (url="http://"http://www.beenox.com")www.beenox.com(/url)
      (url="http://"http://www.AmbrosiaSW.com/news/upcoming/coldstone_betashots.html")Coldstone Game Engine(/url) / (url="http://"http://www.AmbrosiaSW.com/games/pog/")Pillars of Garendall(/url) developers

    • Quote

      Originally posted by Dee:
      **Hint: global variables are coded as "unsigned short".

      **

      Ok, but what about things like health and mana (spell points)? Will they be kept in long, medium, or small size(s)?

      Note to chill:
      Small ranges to 255, medium to 32767, and large goes to just above 2 billion (million?).

    • Quote

      Originally posted by Dee:
      **Hint: global variables are coded as "unsigned short".

      **

      Damn...that means only positive numbers, right? Will that take away making potions,etc, that can cause damage?

      ------------------
      Fortress of Die Nacht: An upcoming game from Aviary Productions.
      (url="http://"http://www.aviaryproductions.f2s.com/downloads.html")Go take a look!(/url) | (url="http://"http://www.aviaryproductions.f2s.com/fortress/progresslog.html")FoDN Progress Log(/url)

    • ...and so others are aware, after a bit of experimenting, I believe unsigned short can hold numbers from 0 to 65535.

      ------------------
      Fortress of Die Nacht: An upcoming game from Aviary Productions.
      (url="http://"http://www.aviaryproductions.f2s.com/downloads.html")Go take a look!(/url) | (url="http://"http://www.aviaryproductions.f2s.com/fortress/progresslog.html")FoDN Progress Log(/url)

    • Quote

      Originally posted by theGlueBubble:
      **Damn...that means only positive numbers, right? Will that take away making potions,etc, that can cause damage?
      **

      Wait, he meant the variable numbers right? I'd guess that he meant that you could have 65535 variables, not a value from 0-65535. Right? Please tell me that I'm right, there will be severe limits on possibilities with only positive integers.

      ------------------

    • Quote

      Originally posted by Kireck L:
      **Wait, he meant the variable numbers right? I'd guess that he meant that you could have 65535 variables, not a value from 0-65535. Right? Please tell me that I'm right, there will be severe limits on possibilities with only positive integers.

      **

      Dunno.

      ------------------
      Fortress of Die Nacht: An upcoming game from Aviary Productions.
      (url="http://"http://www.aviaryproductions.f2s.com/downloads.html")Go take a look!(/url) | (url="http://"http://www.aviaryproductions.f2s.com/fortress/progresslog.html")FoDN Progress Log(/url)

    • Quote

      Originally posted by Kireck L:
      **Wait, he meant the variable numbers right? I'd guess that he meant that you could have 65535 variables, not a value from 0-65535. Right? Please tell me that I'm right, there will be severe limits on possibilities with only positive integers.

      **

      Sorry. Unsigned short integers range in value from 0 to 65,535, and unsigned integers are always positive. However, I'm completely confident that this will not hinder your progress and that you can make things such as potions that harm you, i.e. using events and mathematical statements.

      Saphfire

      ------------------

    • Quote

      Originally posted by theGlueBubble:
      **Damn...that means only positive numbers, right? Will that take away making potions,etc, that can cause damage?
      **

      If I've heard correctly, you can link an action to an item, and if you've been watching the CS Pic o' the Day, you've probably seen the attribute editor. Just set it to subtract 15 points from Current health and you've got a poisonous potion!

      I doubt that the no negative numbers will limit coldstone, but they certainly might make it a little more difficult.

      ------------------
      V-16 Twin Bombers: $8,000,000
      1 Aircraft Carrier: $4,000,000,000,000
      Battlecruiser loaded with marines: $8,000,000,000,000
      The look on Bin Ladin's face when we get him: Priceless...

    • Quote

      Originally posted by saphfire:
      **However, I'm completely confident that this will not hinder your progress and that you can make things such as potions that harm you, i.e. using events and mathematical statements.
      **

      Absolutely.

      ------------------
      Dee Brown
      Beenox inc. - (url="http://"http://www.beenox.com")www.beenox.com(/url)
      (url="http://"http://www.AmbrosiaSW.com/news/upcoming/coldstone_betashots.html")Coldstone Game Engine(/url) / (url="http://"http://www.AmbrosiaSW.com/games/pog/")Pillars of Garendall(/url) developers

    • Sure - when the item is used, set an event that takes away a random percentage of the player's hit points. You could specify a random ammount between say, 20% and 50%...not too hard, just needs a tiny bit of lateral thinking.

      ------------------
      Ladies and Gentlemen, as you know we have something special for you at
      Birdland this evening. A recording for Blue Note Records...

      Let's take it back to the concrete streets, original beats and real live MC's...
      "I don't know how radical you are or how radical I am. I am certainly not radical enough; that is, one must always try to be as radical as reality itself" - Lenin

    • (quote)
      -mouse wrote:

      Note to chill:
      Small ranges to 255, medium to 32767, and large goes to just above 2 billion (million?).(/B)(/quote)
      (/quote)

      ....you're either really condescending or really naive

      ------------------
      ...go fall on something sharp.