So basically my character chooses an outfit and then she goes to a photo shoot. But I want each outfit to have a specific background that goes with it so if they choose one they get a background that only applies to that outfit. And I was wondering how do you code that??
You either need to label the outfit choice, or use gains or character points rendered to each outfit, to start with. Then you can do branches with different backgrounds based on the choice using the if/elif/else method.
Hi
Dara.Amarie has an amazing thread on that
Your script should be similar to this:
choice
“Outfit 1”{
@CHAR changes into outfit 1
gain outfit_1
}”Outfit 2”{
@CHAR changes into outfit 2
gain outfit_2
}”Outfit 3”{
@CHAR changes into outfit 3
gain outfit_3
}
if (outfit_1) {
…
} elif (outfit_2) {
…
} else {
…
}
Note: note that if you put the choice like “Are you sure you want this outfit?” and “Yes” or “No”, make sure to put the gain in the correct place, in the “Yes” choice. Like this:
label outfit
choice
“Outfit 1”{
@CHAR changes into …
NARR
Do you like this outfit?
choice
“Yes”{
gain outfit_1
}”No, take me back”{
goto label outfit
{
And here the other 2 options.
Thanks so much this helps a lot
Let me know if the template I gave you gives you errors because I wrote it down here quickly so I’m not completely sure.
cool thanks so much
You’re welcome!