SphereCommunity
Lotto Ticket Help - Printable Version

+- SphereCommunity (https://forum.spherecommunity.net)
+-- Forum: Expired/Outdated Versions (/Forum-Expired-Outdated-Versions)
+--- Forum: Sphere 51a Help (/Forum-Sphere-51a-Help)
+--- Thread: Lotto Ticket Help (/Thread-Lotto-Ticket-Help)



Lotto Ticket Help - x77x - 02-18-2014 03:41 AM

im trying to store numbers...

Code:
[6460]
ID=0ff3
//small open book facing SE
NAME=Lotto Ticket               Drawing on:               Friday Feb. 21st 2014
COLOR=ALL_COLORS
TYPE=0

MORE={1 1 2 1 3 1 4 1 5 1 6 1 7 1 8 1 9 1 }
MORE2={10 1 11 1 12 1 13 1 14 1 15 1 16 1 17 1 18 1 19 1 }
MOREX={20 1 21 1 22 1 23 1 24 1 25 1 26 1 27 1 28 1 29 1 }
MOREY={30 1 31 1 32 1 33 1 34 1 35 1 36 1 37 1 38 1 39 1 }
MOREZ={40 1 41 1 42 1 43 1 44 1 45 1 46 1 47 1 48 1 49 1 }
BUYVALUE=1000

ONTRIGGER=DCLICK
MESSAGE Your Lotto Numbers are <MORE> - <MORE2> - <MOREX> - <MOREY> - <MOREZ>
RETURN 1

CATEGORY=DRAGONS OF TIME ITEMS
SUBSECTION=Lotto
DESCRIPTION=Lotto Ticket


the problem is, MORE and MORE2 stores them in HEX, so when you dclick it to see the numbers it, it shows hex

any idea how to get it to show in decimal?
or a different way to do this?


thanks


RE: Lotto Ticket Help - Feeh - 02-18-2014 04:38 AM

<eval <more>>


RE: Lotto Ticket Help - x77x - 02-18-2014 05:16 AM

???

example please


RE: Lotto Ticket Help - XuN - 02-18-2014 05:49 AM

IDK if <eval > exists in this decrepit version, but the example is this : message=Your lotto numbers are <eval <more>> - <eval <more2>>...


RE: Lotto Ticket Help - x77x - 02-18-2014 06:30 AM

nope, no eval with 51a


RE: Lotto Ticket Help - evening - 03-12-2014 11:13 PM

ONTRIGGER=dclick
var.red=<valstr(rand(32) + 1)>
var.red2=<valstr(rand(32) + 1)>
var.red3=<valstr(rand(32) + 1)>
var.red4=<valstr(rand(32) + 1)>
var.red5=<valstr(rand(32) + 1)>
var.red6=<valstr(rand(32) + 1)>
var.blue=<valstr(rand(14) + 1)>
src.sysmessage <var.red> <var.red2> <var.red3> <var.red4> <var.red5> <var.red6> <var.blue>


RE: Lotto Ticket Help - jdchixin - 07-17-2014 04:32 PM

<valstr<more>>