Unlock Characters

  • Thread starter Thread starter Pashmina
  • Start date Start date
P

Pashmina

Guest
I making a game, but i want some characters unlock where a certain stages ended.

Example:
The game have a 4 modes:
History 1
History2
Conclusion
Extra


Char1 and Char2, only selectable in the start
Char3 unlocked when stage 4 ended
Char5 unlocked when finish the game ( and i want to unlock only in the mode EXTRA) (and "secret 1"  only unlock when finish the History1 and the char appears in the others game modes)


I dont know about scripting, but if is the better solution, please help me how use these scripts and install into my proeject

Thanks =)
 
to unlock characters you have to create 2 MENU.TXT the 1st to the characters that you want to select the beginning of the game "allowselect" and 2nd you add the new characters and places in levels.txt ...

1º file

music data/music/MENU.bor
background data/Bgs/Select.gif


allowselect ciclope fera gambit noturno tempestade wolverine

2º file

music data/music/MENU.bor
background data/Bgs/Select2.gif


load magneto

allowselect ciclope fera gambit noturno tempestade wolverine magneto

levels.txt

select data/levels/sel.txt
file data/levels/complex.txt

for unlock chars

select data/levels/sele01.txt
file data/levels/ruina2.txt
 
the last tip dont work, perhaps i not explained well.

My game have this modes:

Mode1(normal)
mode2(unlock if mode1 is ended) (ifcomplete 1)
mode3 (unlock if mode2 is ended) (ifcomplete 2)
mode4 (Extra)  (unlock if all modes are ended) (ifcomplete 3)

The Char5 i mentioned before, i want to unblock only in mode4 (and nothing more) but, if i put secret 1, the result is the char5 is available from select screen when start the game. Ill try to make a Select.txt custom, but the result are the same, but reload screen, take a credit and reappear the select screen, i want to avoid this (the double select screen)

Greetings =)

Ill saw a Volcanic's Code in somewhere.

Code:
void setSelectable()
{

   void st=openborvariant("current_stage");//Get current stage.
   setValid("Sarah",st>2);//To make sarah selectable only after stage 2.
   setValid("Ingrid",getglobalvar("clearCount")>0);//To make Ingrid selectable after you finish the game once.
}

Where can put in? in the menu.txt, levels.txt?
 
Back
Top Bottom