DD Tokki
Well-known member
Code:
set Easy #=============================================================
branch start
lives 7
credits 10
nosame 1 1
custfade 40
noshare 0
cansave 2
skipselect
select data/select1.txt
z 174 274
file data/level/stage00/L1/stage00a.txt
file data/level/stage00/L1/stage00b.txt
next
This is my level setup.
Here, I wrote a script that returns the score to 0 each time it is reset using "branch start". I have a problem with going back to 0 every time I pass a stage. I'd like to resolve this.


Code:
void main()
{
if(openborvariant("current_branch") == "start")
{
changeplayerproperty(0,"score",0);
changeplayerproperty(1,"score",0);
changeplayerproperty(2,"score",0);
changeplayerproperty(3,"score",0);
}
}
This is the script used.