Displaying a message when there are no saved games (SOLVED)

Started by Mugs, Wed 21/12/2005 05:07:02

Previous topic - Next topic

Mugs

Alright, I looked everywhere, I looked in the manual, I tried so many things and I can't get this thing to work(I'm having lot's of trouble lately  :( )

To prevent people from loading empty game slots, I want it to do so that if you click on the load icon (the icon that turns the GUI visible) and that there's no saved games, I want it to display a message instead.  When I try to create a script, the message gets diplayed even if I have a saved game.

What should I to do,  to make it work?     
Cool stuff I found out: Men are four times more likely to be struck by lightning than women.  Wow, really? [dirty joke] Maybe this has to do with the fact that us men have "lightning rods"? [/dirty joke]

Akumayo

I have a solution.Ã,  Create a list box on a new gui.Ã,  Name the list box savedgames.Ã,  Make the GUI a popup modal so it doesn't display.  The player never needs to see it.Ã,  Now for coding:

In the 'load' button's script:
Code: ags

savedgames.FillSaveGameList();
if (savedgames.ItemCount != 0) {
Ã,  //script to turn on the load game list
}
else {
Ã,  Display("There are no games to load!");
}
"Power is not a means - it is an end."

SMF spam blocked by CleanTalk