Mini games question

Started by jamesreg, Thu 24/12/2009 13:29:27

Previous topic - Next topic

jamesreg

I understand the basics of doing a mini game where you use the command launch another ags game from within a game.

But I have a question about that is it possible to make it where you can only launch the mini game from within another game
and fix it to where the player cant go into the directory and launch the mini game on its own?


Mantra of Doom

Take a look in the manual about the command RunAGSGame

A few months back, I was confused about it and posted a thread about it here.

You can set the variable to something odd that wouldn't be triggered if the game was run on its own.
"Imitation is the sincerest form of imitation."

Crimson Wizard

Quote from: jamesreg on Thu 24/12/2009 13:29:27
I understand the basics of doing a mini game where you use the command launch another ags game from within a game.

To be honest, I never did this myself, but from what I know about AGS, I guess it is not really obligatory to make mini-game a separate AGS executable. You may as well make it a part of a single project. The only problem I see will be a need to distinguish resources and code of main game and mnigame(s), and depending on minigame complexity that could be not hard at all.

jamesreg

With what I am having to do I will need the mini game to be a separate game wont go into the why over that.
But I want the mini game to be separate.

But it has to not be able to be run on its own only called up from within the main game.

and all i need to pass over to it is one bool of true or false depending on what they did prior to the mini game thats all
that needs to be passed into it.



RickJ

What you are asking is very possible.  The MiniGame module for example allows information to be passed to and fromm the caller.  This information could be used during start up to make the mini game immediately exit or to perform some other task when started directly from the command line and to exhibit a completely different behavior when started from the main game.

Here are links to the mini-game module ...
http://demo.agspace.ws/project/archive/MiniGame-T0100.zip

and the DemoQuest GIP thread
http://www.adventuregamestudio.co.uk/yabb/index.php?topic=34048.0

Merry Christmas
Rick

SMF spam blocked by CleanTalk