SphereCommunity
more - Printable Version

+- SphereCommunity (https://forum.spherecommunity.net)
+-- Forum: Sphere 0.56d (/Forum-Sphere-0-56d)
+--- Forum: General Help (/Forum-General-Help)
+--- Thread: more (/Thread-more)



more - x77x - 05-28-2017 12:35 PM

.set more 2d on a guildstone gets you 02
.set more1 2d on a guildstone gets you 02

if you do it with a script you can get 2d, but not manually, it converts it to dec

im noticing this all over the place, shits get converted back and forth


RE: more - pointhz - 05-29-2017 12:17 AM

probably because it doesnt support text but only hex


RE: more - Coruja - 05-29-2017 01:31 PM

MORE / MORE1 are set and read as hex values, so you must store it correctly as hex number using prefix 0, like 02d instead 2d

probably it's returning the wrong value to you because storing it as 2d will make sphere try to convert this to hex, and since "2d" is not a valid hex value, it will just convert the "2" ignoring the "d", so 2 (dec) = 02 (hex)

PS: MORE and MORE1 are the same thing and both are stored as MORE1. The only difference is that MORE always return the raw value (hex number) and MORE1 can format the result depending on the item typedef (eg: MORE1 on t_spawn_char will return the char defname "c_something" instead an hex number). When the item typedef don't have any formatting available it will also return the hex raw value by default