Code: Select all
guitext ( format "You have %1 moneys in your wallet." $money ) "inventory/money.png"
or:
Code: Select all
guibutton "Pie: 10 moneys" [
if ( > $money 9 ) [
money = ( - $money 10 )
pie = ( + $pie 1 )
]
] "inventory/pie.png"
To determine xxx, which is the version of hud (which means heads up display, I think) you are using, try to use the modified script. If Sandbox doesn't find the images you specified, it gives an error message, which contains the full path to the icons directory.
You can also use these options to display the face of the character, who is talking to you:
Code: Select all
guitext "What're ya buyin, stranger?" "chars/shopkeeper.png"