HOW TO: Use [shouldPaginate: YES]

OK, you can’t use gains or the choice name option method in CC templates however I tested out this code in regards to 14 outfit choices:

label Dressing

NARR
Pick something.

choice(OUTFIT)[shouldPaginate: YES]
“1”{

}“2”{

}“3”{

}“4”{

}“5”{

}“6”{

}“7”{

}“8”{

}“9”{

}“10”{

}“11”{

}“12”{

}“13”{

}“14”{

}

NARR
U happy with this?

choice
“Yes”{

}“No”{

goto Dressing

}

NARR
Remembering it…

if (OUTFIT is “1”) {

NARR
U chose 1.

} elif (OUTFIT is “2”) {

NARR
U chose 2.

} elif (OUTFIT is “3”) {

NARR
U chose 3.

} elif (OUTFIT is “4”) {

NARR
U chose 4.

} elif (OUTFIT is “5”) {

NARR
U chose 5.

} elif (OUTFIT is “6”) {

NARR
U chose 6.

} elif (OUTFIT is “7”) {

NARR
U chose 7.

} elif (OUTFIT is “8”) {

NARR
U chose 8.

} elif (OUTFIT is “9”) {

NARR
U chose 9.

} elif (OUTFIT is “10”) {

NARR
U chose 10.

} elif (OUTFIT is “11”) {

NARR
U chose 11.

} elif (OUTFIT is “12”) {

NARR
U chose 12.

} elif (OUTFIT is “13”) {

NARR
U chose 13.

} else {

NARR
U chose 14

}

NARR
Bla bla bla.

So…yeah it worked perfectly for me, all 14 ones were memorized in this dressing game when i tested it on portal :smile:

But I agree with you, it would be too much to memorize, if there are sooooooooo many outfits since [shouldPaginate: YES] should be reserved for a lot of options XD

OK for this part, U can use gotos inside of if/elif/else statements but not labels.

3 Likes