Arrow dressing template question

Hii there :smiling_face_with_three_hearts:!
I am currently using Dara Amarie’s arrow dressing template, which I altered to fit 6 dressing choices, can anyone tell me if the chosen clothes will be remembered in the next episode? And if not, what can I do to fix it?
Here’s my code:

ARROWS DRESSING GAME - 6 OUTFITS {

&ui LEFT_ARROW create and ui LEFT_ARROW scales to 0.8 0.8 in 0 and ui LEFT_ARROW shifts to 7 187 in 0 and ui LEFT_ARROW opacity 1 in 0
&ui RIGHT_ARROW create and ui RIGHT_ARROW scales to 0.8 0.8 in 0 and ui RIGHT_ARROW shifts to 250 187 in 0 and ui RIGHT_ARROW opacity 1 in 0
&ui CHOOSE create and ui CHOOSE scales to 0.4 0.4 in 0 and ui CHOOSE shifts to 75 110 in 0 and ui CHOOSE opacity 0 in 0

tappable
“LEFT_ARROW” {
&ui CHOOSE opacity 0.8 in 0.1
goto tap_outfit_3_2
} “RIGHT_ARROW” {
&ui CHOOSE opacity 0.8 in 0.1
goto tap_outfit_1_2
}

label tap_outfit_1_2
@LOUISE =1
################## CHANGE OUTFIT NAME TO YOUR 1ST OUTFIT ###############
@LOUISE changes into LOUISE_beach_1

tappable
“LEFT_ARROW” {
goto tap_outfit_3_2
} “RIGHT_ARROW” {
goto tap_outfit_2_2
} “CHOOSE” {
goto tap_outfit_choose_2
}

label tap_outfit_2_2
@LOUISE =2
################## CHANGE OUTFIT NAME TO YOUR 2ND OUTFIT ###############
@LOUISE changes into LOUISE_beach_2

tappable
“LEFT_ARROW” {
goto tap_outfit_1_2
} “RIGHT_ARROW” {
goto tap_outfit_3_2
} “CHOOSE” {
goto tap_outfit_choose_2
}

label tap_outfit_3_2
@LOUISE =3
################## CHANGE OUTFIT NAME TO YOUR 3RD OUTFIT ###############
@LOUISE changes into LOUISE_beach_3

tappable
“LEFT_ARROW” {
goto tap_outfit_2_2
} “RIGHT_ARROW” {
goto tap_outfit_4_2
} “CHOOSE” {
goto tap_outfit_choose_2
}

label tap_outfit_4_2
@LOUISE =4
################## CHANGE OUTFIT NAME TO YOUR 4TH OUTFIT ###############
@LOUISE changes into LOUISEg_beach_1

tappable
“LEFT_ARROW” {
goto tap_outfit_3_2
} “RIGHT_ARROW” {
goto tap_outfit_5_2
} “CHOOSE” {
goto tap_outfit_choose_2
}

label tap_outfit_5_2
@LOUISE =5
################## CHANGE OUTFIT NAME TO YOUR 5TH OUTFIT ###############
@LOUISE changes into LOUISEg_beach_2

tappable
“LEFT_ARROW” {
goto tap_outfit_4_2
} “RIGHT_ARROW” {
goto tap_outfit_6_2
} “CHOOSE” {
goto tap_outfit_choose_2
}

label tap_outfit_6_2
@LOUISE =6
################## CHANGE OUTFIT NAME TO YOUR 6TH OUTFIT ###############
@LOUISE changes into LOUISEg_beach_3

tappable
“LEFT_ARROW” {
goto tap_outfit_5_2
} “RIGHT_ARROW” {
goto tap_outfit_1_2
} “CHOOSE” {
goto tap_outfit_choose_2
}

label tap_outfit_choose_2
&ui LEFT_ARROW opacity 0 in 0.1 and ui RIGHT_ARROW opacity 0 in 0.1 and ui CHOOSE opacity 0 in 0.1
@LOUISE is primp_neutral
NARRATOR
Are you sure you want to wear this outfit?
choice
“Hll yea!" {
readerMessage Follow @dara.amarie.ep on Instagram! with messageTitle Arrows Dressing Game Template Credit
@LOUISE is kiss_blow_happy_atcamera
} "H
ll no!” {
&LOUISE starts idle
&ui LEFT_ARROW opacity 1 in 0.1 and ui RIGHT_ARROW opacity 1 in 0.1 and ui CHOOSE opacity 0.8 in 0.1
if (LOUISE =1) {
goto tap_outfit_1_2
} elif (LOUISE =2) {
goto tap_outfit_2_2
} elif (LOUISE =3) {
goto tap_outfit_3_2
} elif (LOUISE =4) {
goto tap_outfit_4_2
} elif (LOUISE =5) {
goto tap_outfit_5_2
} else {
goto tap_outfit_6_2
}
}

ARROWS DRESSING GAME - 6 OUTFITS }

You have to add gain! I am guessing or becoz you already have added points you can use them as well using if/elif/else .
But Add gains so it will be neat and you can script happily without any confusions!
Good luck.

1 Like

How would I add flag gains? after every time she tries on the outfit?Because with the arrow it’s kind of confusing… I would know better how to do it with choices

you have to give choice
after yes add gains
no returns to the game

Just use the points later. You can’t use gains because you’d gain them everytime the reader changed outfits with the arrows and mess everything up. To remember them for next chapter just do it like this:

if (CHARACTER = 1) {

whatever needs to happen according to the outfit she changed into here } elif (CHARACTER = 2) { whatever happens here

}

and so on until you’re done, just remember what outfit corresponded to what point number.

1 Like

oh, but how did other authors do it with arrows?

you have select option like tick or something

Ok, that makes sense, thank you :heartbeat:!

I have one more question, can I use all of that code twice in the episode for the two LI branches? and how do I check if it works, as in the chosen outfit is remembered? do I have to upload the story for that?

You can use the dressing game once, then just remember it on each branch, like:

if (li_branchgain) {

do it here once

} else {

}

The else being the other li branch.

And what do you mean upload the story? You can preview it on the mobile previewer to be sure, but it should work on the web previewer as long as you change the points every time.

1 Like

Ok thankyou :smiling_face_with_three_hearts:! Sorry to bother you again with questions… but if I have to use it again a second time, will the points be added on to the previous dressing game points? Because that means you can have combinations of points to give the same dressing choice, but it isn’t what the reader picked…
Here’s what I mean (written in pseudocode, not actual code language):

End of first chapter (in both branches):
First dressing choice chosen - Louise gains 1 point
Second dressing choice chosen - Louise gains 2 points
Third dressing choice chosen - Louise gains 3 points
Fourth dressing choice chosen - Louise gains 4 points
Fifth dressing choice chosen - Louise gains 5 points
Sixth dressing choice chosen - Louise gains 6 points

Start of second chapter (in both branches):
if Louise has 1 point - change into first outfit
if Louise has 2 points - change into second outfit
if Louise has 3 points - change into third outfit
if Louise has 4 points - change into fourth outfit
if Louise has 5 points - change into fifth outfit
if Louise has 6 points - change into sixth outfit

End of second chapter (in both branches):
First dressing choice chosen - Louise gains 1 point
Second dressing choice chosen - Louise gains 2 points
Third dressing choice chosen - Louise gains 3 points
Fourth dressing choice chosen - Louise gains 4 points
Fifth dressing choice chosen - Louise gains 5 points
Sixth dressing choice chosen - Louise gains 6 points

From here onwards, will the points be added up? because that would mess up all the dressing choice. Will it reset them automatically or is there a way to reset them?

They won’t reset or change, because the dressing game will happen before the branch. Just make sure it happens before you start the branch and only once. The game sets the points like @CHARACTER = 1, which means it doesn’t add points, it determines the numbers. So it says the number for the character. You don’t have to worry about resetting or it getting confusing because the number will be whatever the player chose no matter the LI branch since she chose before. So if, for example, she chose the outfit that gave her 3 points, when we get to the branch she’ll change into that one and so on.

1 Like

Ahhh… ok that makes sense, so the code will go before the branch like this:
if (LOUISE =1) {
@LOUISE changes into LOUISE_beach_1
} elif (LOUISE =2) {
@LOUISE changes into LOUISE_beach_2
} elif (LOUISE =3) {
@LOUISE changes into LOUISE_beach_3
} elif (LOUISE =4) {
@LOUISE changes into LOUISEg_beach_1
} elif (LOUISE =5) {
@LOUISE changes into LOUISEg_beach_2
} else {
@LOUISE changes into LOUISEg_beach_3
}

if (LI_boy) {
goto male_story_branch
} else {
goto female_story_branch
}
Is this correct?

You can do it this way, or you can change it inside the branch/label too. Whatever works best for you!

1 Like

Ok! thank you so much, you’re a life saver… I only know basic coding so this stuff is a bit too advanced for me :joy: :heartpulse: