Hi! Thanks for the update of urwigo
Im trying to dig deep into lua (Building my cartridge with Urwigo) For the moment ive building an cartridge for to be played anywhere. Ive got 8 zones and the cartridge work well. But i would like to build something like a memory game. So in these 8 zones I need to get 4x2 pictures (one picture in each zone). And then you have to pair the pictures..You get it? I know how to get them there by adding a picture for each zone in the inventory or in the zoneImage.
But is there a way to add the pictures randomly? When starting the cartridge!
Update: Im answering my own question
Yes you can get a random picture
function RandomPicture()
local images={apple1,apple2,bananas3,bananas4}
local r=math.random(table.getn(images))
Wherigo.MessageBox{Text="The fruit", Media=images[r]}
end
But how to get them into random zone ?