• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

[JASS] Converting an object rawcode to a string (IE 'A000' to "A000")

Status
Not open for further replies.
Ok, so I did my research, and I found that the object rawcodes are generated from integers based on the letters' ASCII values. I found this by printing the rawcode '0' to the game, thinking it would print as "0", but what I found was that it was "48", the character 0's ASCII value. Now, how could I use this knowledge to convert the long numbers the game prints out to readable strings, or vica versa? I figured it was probably something to do with base conversion, but I have no idea how I could make that work with every single ASCII character from 1 to 256. Any help?

EDIT:
I found a library with it in.

http://www.hiveworkshop.com/forums/jass-functions-413/string-functions-133059/

Thanks Maskedpoptart!
 
Last edited:
Status
Not open for further replies.
Top