Gamesalad Mission Achievement Help.
Mattcus
Member Posts: 85
Hi, In my game I would like a mission system, where you do certain tasks to be able to level up.(such as earn 100 coins in one game) I want to have it so that, you can only complete 1 mission at a time, once you have completed that one, when you lose the game and go to the game over screen, it gives you another mission to complete. (Similar to Jetpack Joyride's system, but with only 1 mission at a time, not 3)
However, since you can't access a table value in the first part of a rule, I am not sure how to do this. Would the only solution be to have heaps of attributes, because that would get really confusing, really quickly.
If anyone has any suggestions on how to do this, please post a reply, I would greatly appreciate it.
However, since you can't access a table value in the first part of a rule, I am not sure how to do this. Would the only solution be to have heaps of attributes, because that would get really confusing, really quickly.
If anyone has any suggestions on how to do this, please post a reply, I would greatly appreciate it.
Comments
This does however sound like a similar question I saw last week or so where someone wanted to only see words that haven't already been used. I posted an example file where it randomly picked words from a copy table that only contained words that haven't been used. And that copy table was reduced by one each time. You could do the same with achievements.
I don't know why the attachment isn't on the post anymore (I'm guessing they clear out old attachments for space reasons) but I can upload it to this post later tonight if you haven't solved it before then.
http://forums.gamesalad.com/discussion/comment/411969
EDIT: Actually it'll have to be tomorrow as I'm not home later.
Although, can anyone tell me how? I've tried dragging it into the message I'm writing right now but it just tries to redownload it??
Thanks
When you press the get word button at the bottom of the screen 1 word is selected from the copy table randomly, displayed at the top and then deleted from the copy table so that it's not selected again, and the level counter is increased by one.
Once you've pressed the get word button 10 or 11 times and there's no more rows in the copy table, the level is reset to 1 and the master words table is copied again, giving you the same 10 words to pick randomly from again.
This is how you could possibly pick your missions randomly without ever picking the same one. Obviously when the player has played all the missions and there's no more to choose from in the copy table you will need to decide if you want all missions reset so that they can do them all again, of if they need to start a new game completely.
Apologies about the lack of comments in the project.
I will redo it at a later date and place on my site in case it's deleted from this post again.