Solved How to Change the Number of Credits In A Mod??

Question that is answered or resolved.

dafamily

Active member
Hey guys,

I was wondering for the older mods, how do you change the amount of credits you have?

I know for the current mods it's in the levels.txt file, but I can't find it anywhere!!  Any help would be greatly appreciated guys.

Thx.
 
Solution
You can define different credits for different game mode/level set if you'd like such as this:

set Mission_1
lives 10
credits 1
nosame  1
cansave 1
continuescore 1
file data/levels/11.txt
...

set Mission_2
lives 10
credits 2
nosame  1
cansave 1
continuescore 1
file data/levels/21.txt
...

You open the levels.txt, then you just simply type in credits and enter how many value/number you want to input.

Example:
Code:
credits 10

Try it out.
 
You can define different credits for different game mode/level set if you'd like such as this:

set Mission_1
lives 10
credits 1
nosame  1
cansave 1
continuescore 1
file data/levels/11.txt
...

set Mission_2
lives 10
credits 2
nosame  1
cansave 1
continuescore 1
file data/levels/21.txt
...

 
Solution
Ill bring that zombie back cause i wanted to know how to reduce with script in a level the amount of lives and credits from 10 to 1 for all players even those that are not playing
(their credits still say 10) because im trying and only reducing lives of active players is working, any workaround ?
I have a stage in a level so when player makes bad choice, he will be punished by taking away all his lives and credits .
Code:
changeplayerproperty(Player1, "lives", 1);
						 changeplayerproperty(Player1, "credits", 1);

player is acquired like this
Code:
  int Player1 = getplayerproperty(0, "entity");
 
Code:
set   SURVIVAL
lives   1
credits 0
nosame  1
cansave 0
continuescore 1
file   data/levels/1.txt

I tried the above and I always start with 3 lives and
10 credits.

However player 2 seems to start with 1 credits and 1 life.
 
Hello, when you add this "noshare 1", you can earn 1P 2P points alone.

noshare {bi}

Determines whether or not Player 2 and Player 1 both use the same credits. If set to 1, each player will have their own supply of credits.
 
pudu said:
Hello, when you add this "noshare 1", you can earn 1P 2P points alone.

noshare {bi}

Determines whether or not Player 2 and Player 1 both use the same credits. If set to 1, each player will have their own supply of credits.

Okay, I added noshare 1 and player 1 still starts with 10 credits and player 2 has only 1 life and one credit.


Code:
       set   SURVIVAL
lives   1
credits 0
nosame  1
cansave 0
noshare 1
continuescore 1
file   data/levels/1.txt 
 
Bloodbane said:
PS VITA , is there any script which defines player 1's credits and lives somewhere in your mod?

I'm not sure Bloodbane ,
I can do a search with notepad++ tomorrow,  the script has to have openbor constants with words like credit or credits , correct?

I use the double dragon reloaded game to learn and edit , so that may be the case.
 
Bloodbane said:
It's player property actually but you're right, there's word "credits" in it so you could search any file with that word to find the possible cause  :).

Thank you, 

There was a script like you suggested and now everything works okay.

Thanks
 
Back
Top Bottom