Massassi Forums Logo

This is the static archive of the Massassi Forums. The forums are closed indefinitely. Thanks for all the memories!

You can also download Super Old Archived Message Boards from when Massassi first started.

"View" counts are as of the day the forums were archived, and will no longer increase.

ForumsCog Forum → endlevel
endlevel
2001-12-11, 10:07 AM #1
I can't made a final cog!!!!!! i tried with tutorials, copying other cogs but nothing. How can i make it? Shall I modify something in "level name"_start?????
2001-12-11, 9:34 PM #2
Katarn_Oscuro, are you italian? Your name seem italian to me... in that case... UE' PAISA'!

------------------
"May the SourceCode be with you..."
Nemios, MOD developer.
"May the SourceCode be with you..."
Nemios, MOD developer.
2001-12-12, 3:41 AM #3
Ending a level is actully quite easy. A single verb, 'JKendlevel()', will do the trick.


There is only 1 arg for that verb, which indicates success or failure.


To have the level end, and go on to the next, use something like this:


Code:
Some_message:
If(Some_condition == Some_variable) {
JKendlevel(1);
Stop;
End



Using '1' in the endlevel verb indicates success, and the game continues on to the next level. On the other hand, a '0' would indicate failure, and the level would restart.

 

Its that easy.. [http://forums.massassi.net/html/smile.gif]

------------------
Success is the inverse relationship between effort, gain, and loss.
And when the moment is right, I'm gonna fly a kite.
2001-12-12, 6:54 AM #4
Thanks GBK. I'll try it.
Ehilà nemios sei italiano? di dove? (napoli immagino)
2001-12-12, 8:41 PM #5
[ITA]No, sono di Reggio Emilia [http://forums.massassi.net/html/biggrin.gif] Conosci la ISC? Vieni su www.ngi.it, forum di Guerre Stellari e conoscerai una community consolidata e gente con cui giocare a JK![/ITA]

------------------
"May the SourceCode be with you..."
Nemios, MOD developer.
"May the SourceCode be with you..."
Nemios, MOD developer.

↑ Up to the top!