Solved Stage number

Question that is answered or resolved.

O Ilusionista

Captain 100K
I know that I can use "stagenumber" to give a specific number to a stage.
To get in which stage I am (so I can trigger specific animations, effects and others), I should use :

int stage = openborvariant("current_stage");

But what is the difference between those two?

"current_level", - gets current level
"current_stage",  - gets current stage

Plus, about "current_scene" (which gets the current scene, hence the name), do OpenBOR increments scene number automatically too, as it does with stages (without a defined stagenumber)?
 
yeah I tried to get current scene to work before too, I want to check for certain cutscene and play a .wav when the cutscene starts.
 
Specific frame would be awesome, otherwise I thought I can split the scenes up so it just plays it at the right time.

If cutscene files would allow some script we could just use playsound command etc.
 
if I am not wrong, its possible to script it. I think I remember of someone who made it, I don't remember who.
Maybe its Volcanic
 
I got it:

current_stage counts the actual stage we are. This number will change only when there is a NEXT (which makes the STAGE X COMPLETE appears).

current_level counts which LEVEL from the stage we are. Think like stage "stage 1-1", "stage 1-2", etc.

So, for example:

z 100 160 0
file data/levels/a.txt

z 100 160 0
file data/levels/a2.txt

z 100 160 0
file data/levels/a3.txt

next

z 100 160 0
file data/levels/b.txt

z 100 160 0
file data/levels/b2.txt

z 100 160 0
file data/levels/b3.txt

All level "a" will count as current_stage = 1, but all level "a" will count as a different "current_level".
Once you reach level "b", the current_stage will be 2, but the current_level will be 4 (because it counts all the levels).
 
Back
Top Bottom