Solved Changeopenborvariant question

Question that is answered or resolved.

Felina

Active member
Hello guys, I would like to know if there is a method to change the set with scripts. I have been looking at the manual and I think it can be done but all my attempts failed :(

I wanted to use changeopenborvariant("skiptoset",1); but when i try it nothing happens

Please if anyone knows please teach me
 
Solution
You can simply put skiptoset in levels.txt. It's going to skip the title screen to the select screen for going to a certain game mode or set you use. The number is for which game mode you're gonna skip to.

Example:
Code:
skiptoset 0

set    Grouping

file    data/levels/example1.txt
next
file    data/levels/holes.txt
next
scene    data/scenes/ending.txt


set    water_(3_levels)
file    data/levels/water.txt
file    data/levels/water2.txt
file    data/levels/water3.txt

set    modes_(2_levels)
file    data/levels/neon.txt
file    data/levels/screen.txt

set    mirror_(1_level)
file    data/levels/mirror.txt

Using skiptoset 0 will skip the title screen to the first game mode, which is the Grouping mode. So you see 4 sets in...
You can simply put skiptoset in levels.txt. It's going to skip the title screen to the select screen for going to a certain game mode or set you use. The number is for which game mode you're gonna skip to.

Example:
Code:
skiptoset 0

set    Grouping

file    data/levels/example1.txt
next
file    data/levels/holes.txt
next
scene    data/scenes/ending.txt


set    water_(3_levels)
file    data/levels/water.txt
file    data/levels/water2.txt
file    data/levels/water3.txt

set    modes_(2_levels)
file    data/levels/neon.txt
file    data/levels/screen.txt

set    mirror_(1_level)
file    data/levels/mirror.txt

Using skiptoset 0 will skip the title screen to the first game mode, which is the Grouping mode. So you see 4 sets in levels.txt.

About the changeopenborvariant function, you change the value of which openborvariant you are using. But for "skiptoset" variant, like I said, it's used for skipping to which set you'll use. I don't know how using that skiptoset variant can work.

I use one of the changeopenborvariant functions in here, for instance.

Code:
void block2(int Flag, int HitY)
{// Turns blocking status with height measurement
  void self = getlocalvar("self");
  int lastHitY = openborvariant("lasthity");
 
  if(lastHitY >= HitY){
    changeentityproperty(self, "aiflag", "blocking", Flag);
    changeopenborvariant("lasthitc", 1); // 1 = confirm hit; 0 = cancel hit
  }
}

Code:
anim    follow4 #Standing Block
    @cmd    stop
    @cmd    block2 0 53
    delay    2
    offset    31 99
    loop    1 2
    frame    data/chars/ryu/0012000000.gif
    bbox    0 0 62 106
    offset    33 102
    delay    6
    sound   data/sounds/block01.wav
    #@cmd    stop
    @cmd    block2 1 53
    @cmd    keyint2 "ANI_IDLE" 0 "B" 1 #Release back during block
    @cmd    keyint2 "ANI_FOLLOW5" 2 "D" 0 #Hold down during block for crouch block
    frame    data/chars/ryu/0012000001.gif
    @cmd    keyint2 "ANI_IDLE" 0 "B" 1
    @cmd    keyint2 "ANI_FOLLOW5" 2 "D" 0
    @cmd    block2 1 53
    @cmd    stop
    frame    data/chars/ryu/0012000001.gif
    frame    data/chars/ryu/0012000001.gif
 
Last edited:
Solution
Back
Top Bottom