I need help with a personality quiz

So I have the script… But it keeps going to random outcomes… I did random things that were not the gains to the first outcome and yet they still went to outcome one.

Warning the script is long…
(I’m trying to figure out what the gains are for each outcome space too.)

Script

readerMessage Your choices will matter, choose wisely. with messageTitle Personality Quiz!

    NARR
Now, let's find out what type of person you are!

    NARR
What type of pet would you prefer?

choice “A cat.” {

gain catcrazy

} “A dog.” {

gain doglover

}

    NARR
You're at a club and see someones drink get roofied, what do you do?

choice “Step in and save the stranger.” {

gain heroic

} “Walk away, not my problem.” {

gain silent_witness

}

    NARR
You're studying for an important test and a small child asks you to play with them, will you?

choice “I will do both.” {

gain Multi_tasker

} “Play with the child and try study later.” {

gain easy_going

} “Focus on studying.” {

gain determination

}

    NARR
Which do you prefer?

choice “A good riddle or mystery.” {

gain detective

} “A straight forward answer.” {

gain impatient.

}

    NARR
Someone has been annoying you all day, do you?

choice “Lose your cool and get angry.” {

gain hot_headed

} “Calmly tell them they are being disruptive.” {

gain calm

}

    NARR
Please wait while we calculate your results...

@transition fade out black

if (catcrazy) {
#cat crazy
if (heroic) {
#heroic
if (Multi_tasker) {
#Multi-tasker
if (detective) {
#detective
if (hot_headed) {
#hot-headed

    NARR
Result One: cat crazy, heroic, multi-tasker, detective and hot-headed.

#hot-headed
} else {
#calm

    NARR
Result Two: cat crazy, heroic, multi-tasker, detective and calm.

#calm
}
#detective
} else {
#impatient
if (hot_headed) {
#hot-headed

    NARR
Test

#hot-headed
} else {
#calm

    NARR
Test 2

#calm
}
#impatient
}
#Multi-tasker
} elif(easy_going) {
#easy-going
if (detective) {
#detective
if (hot_headed) {
#hot-headed

    NARR
Test 3

#hot-headed
} else {
#calm

    NARR
Test 4

#calm
}
#detective
} else {
#impatient
if (hot_headed) {
#hot-headed

    NARR
Test 5

#hot-headed
} else {
#calm

    NARR
Test 6    

#calm
}
#impatient
}
#easy-going
}
else {
#determination
if (detective) {
#detective
if (hot_headed) {
#hot-headed

    NARR
Test 7

#hot-headed
} else {
#calm

    NARR
Test 8

#calm
}
#detective
} else {
#impatient
if (hot_headed) {
#hot-headed

    NARR
Test 9

#hot-headed
} else {
#calm

    NARR
Test 10

#calm
}
#impatient
}
#determination
}
#heroic
} else {
#silent witness
if (Multi_tasker) {
#Multi-tasker
if (detective) {
#detective
if (hot_headed) {
#hot-headed

    NARR
Test 11

#hot-headed
} else {
#calm

    NARR
Test 12

#calm
}
#detective
} else {
#impatient
if (hot_headed) {
#hot-headed

    NARR
Test 13

#hot-headed
} else {
#calm

    NARR
Test 14

#calm
}
#impatient
}
#Multi-tasker
} elif(easy_going) {
#easy-going
if (detective) {
#detective
if (hot_headed) {
#hot-headed

    NARR
Test 15

#hot-headed
} else {
#calm

    NARR
Test 16

#calm
}
#detective
} else {
#impatient
if (hot_headed) {
#hot-headed

    NARR
Test 17

#hot-headed
} else {
#calm

    NARR
Test 18

#calm
}
#impatient
}
#easy-going
}
else {
#determination
if (detective) {
#detective
if (hot_headed) {
#hot-headed

    NARR
Test 19

#hot-headed
} else {
#calm

    NARR
Test 20

#calm
}
#detective
} else {
#impatient
if (hot_headed) {
#hot-headed

    NARR
Test 21

#hot-headed
} else {
#calm

    NARR
Test 22

#calm
}
#impatient
}
#determination
}
#silent witness
}
#cat crazy
} else {
#dog lover
if (heroic) {
#heroic
if (Multi_tasker) {
#Multi-tasker
if (detective) {
#detective
if (hot_headed) {
#hot-headed

    NARR
Test 23

#hot-headed
} else {
#calm

    NARR
Test 24

#calm
}
#detective
} else {
#impatient
if (hot_headed) {
#hot-headed

    NARR
Test 25

#hot-headed
} else {
#calm

    NARR
Test 26

#calm
}
#impatient
}
#Multi-tasker
} elif(easy_going) {
#easy-going
if (detective) {
#detective
if (hot_headed) {
#hot-headed

    NARR
Test 27

#hot-headed
} else {
#calm

    NARR
Test 28

#calm
}
#detective
} else {
#impatient
if (hot_headed) {
#hot-headed

    NARR
Test 29

#hot-headed
} else {
#calm

    NARR
Test 30

#calm
}
#impatient
}
#easy-going
}
else {
#determination
if (detective) {
#detective
if (hot_headed) {
#hot-headed

    NARR
Test 31

#hot-headed
} else {
#calm

    NARR
Test 32

#calm
}
#detective
} else {
#impatient
if (hot_headed) {
#hot-headed

    NARR
Test 33

#hot-headed
} else {
#calm

    NARR
Test 34

#calm
}
#impatient
}
#determination
}
#heroic
} else {
#silent witness
if (Multi_tasker) {
#Multi-tasker
if (detective) {
#detective
if (hot_headed) {
#hot-headed

    NARR
Test 35

#hot-headed
} else {
#calm

    NARR
Test 36

#calm
}
#detective
} else {
#impatient
if (hot_headed) {
#hot-headed

    NARR
Test 37

#hot-headed
} else {
#calm

    NARR
Test 38

#calm
}
#impatient
}
#Multi-tasker
} elif(easy_going) {
#easy-going
if (detective) {
#detective
if (hot_headed) {
#hot-headed

    NARR
Test 39

#hot-headed
} else {
#calm

    NARR
Test 40

#calm
}
#detective
} else {
#impatient
if (hot_headed) {
#hot-headed

    NARR
Test 41

#hot-headed
} else {
#calm

    NARR
Test 42

#calm
}
#impatient
}
#easy-going
}
else {
#determination
if (detective) {
#detective
if (hot_headed) {
#hot-headed

    NARR
Test 43

#hot-headed
} else {
#calm

    NARR
Test 44

#calm
}
#detective
} else {
#impatient
if (hot_headed) {
#hot-headed

    NARR
Test 45

#hot-headed
} else {
#calm

    NARR
Test 46

#calm
}
#impatient
}
#determination
}
#silent witness
}
#dog lover
}

Side note… Where it has narration… In between the if/else codes are where the outcomes are supposed to go… PLEASE HELP. (And I am using gains because points are for something else…)

1 Like

(I’m going for super complex scripting on this story. xD)

@Dara.Amarie Please tell me where I went wrong, I’m so confused.

This isn’t testing anything. Regardless of whether or not you have the flag, it will continue.

if (catcrazy) {
continue }
else {
goto next_result
}

You will need to repeat this for each result combination.

next_result will test for a different combination.

Honestly, there are just way too many different combinations to do. It would be best to just use each gain as it’s own dialogue, instead of combining all of them into 1 dialogue.

Like this:

NARR
You got...

if (catcrazy) {
NARR
Cat crazy,
} else {
NARR
Dog lover,
}

if (heroic) {
NARR
Heroic,
} else {
NARR
Silent witness,
}

if (Multi_tasker) {
NARR
Multi-tasker,
} elif (easy_going) {
NARR
Easy going,
} else {
NARR
Determination,
}

if (detective) {
NARR
Detective,
} else {
NARR
Impatient,
}

if (hot_headed) {
NARR
And hot headed.
} else {
NARR
And calm.
}
2 Likes

I would but i’m trying to make them all come together since it decides what type of person they are. whether they’re day dreamers, peace makers, logical thinkers etc.

I made the same mistake, I wanted to make a quiz. But I later learned that you cannot use gains or nothing will work, you need to use the point system. Trust me, it’s how episode official do there quizzes, but the questions have to be leading up to as many answers as you want. There are plenty of threads on the point system so your probably not going to be confused. I can help you too! The point system is a lot more easier then gains too! If you need any help, just ask me or anyone else in the community…

Moved to Directing Helps and Tips since this involves coding. Make sure to check out our Forum Tutorial for more info about where to correctly create topics, and feel to PM me if there are any questions. :wink:

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.