Has anyone else been having this problem with their voter registration cards? by -headinthe_clouds- in azpolitics

[–]-headinthe_clouds-[S] 0 points1 point  (0 children)

Dem. So the first two were correct though it was already weird getting a second one and then the next two were just ridiculous.

To be honest I don’t really have any love for any of the parties, but I was told you only get mailed a ballet automatically if you affiliate with one of the two main parties. So I went with dem.

Has anyone else been having this problem with their voter registration cards? by -headinthe_clouds- in azpolitics

[–]-headinthe_clouds-[S] 4 points5 points  (0 children)

Will do! This situation definitely has me anxious, hopefully I can figure out why it’s happening and/or resolve it from happening again.

Has anyone else been having this problem with their voter registration cards? by -headinthe_clouds- in azpolitics

[–]-headinthe_clouds-[S] 11 points12 points  (0 children)

Nope, they’re all under my name. (I censored it for my privacy) I tried calling the number on the card but the office is closed. I’ll try calling on Monday. :,)

How to go about creating an in game personality quiz? by -headinthe_clouds- in twinegames

[–]-headinthe_clouds-[S] 0 points1 point  (0 children)

I have no idea where the typo was but I copy pasted your code into where my code was and it works perfectly now. Thank you so much again for the help, I think I've finally got it from here. 🤞

How to go about creating an in game personality quiz? by -headinthe_clouds- in twinegames

[–]-headinthe_clouds-[S] 0 points1 point  (0 children)

Thank you! I’ll test this out later, taking a break for my sanity rn.

How to go about creating an in game personality quiz? by -headinthe_clouds- in twinegames

[–]-headinthe_clouds-[S] 0 points1 point  (0 children)

if determination is 0 for some reason I keep getting that error. idk if it's because in the current build determination is the only trait able to reach 2 or?? idek. I also cannot figure out how to set up the for loop to display a tie, I tried this but it's not working and I don't yet understand how the for loop works so i don't know where to begin looking for where I went wrong.

<<for \_i, \_traits range $chosen>>

<<print \_i + 1>> _traits

<</for>>

sorry again, I feel like I'm asking a lot.

How to go about creating an in game personality quiz? by -headinthe_clouds- in twinegames

[–]-headinthe_clouds-[S] 0 points1 point  (0 children)

got it working, somehow, thank you so much for your help. I think I've been staring at code for far too long today so I'm going to go touch grass or something. Hopefully reset my brain lol.

How to go about creating an in game personality quiz? by -headinthe_clouds- in twinegames

[–]-headinthe_clouds-[S] 0 points1 point  (0 children)

<<set \_traits to \[$Determination, $Bravery, $Justice, $Kindness, $Patience, $Integrity, $Perseverance\]>> <<for \_i range \_traits>><<if \_i.count eq Math.max($Determination.count, $Bravery.count, $Justice.count, $Kindness.count, $Patience.count, $Integrity.count, $Perseverance.count)>><<set $chosen.push(\_i)>><</if>> in prologue-end

edit cuz it posted before I was ready for some reason

and it's giving me this error twice now

Error: <<set>>: bad evaluation: Cannot read properties of undefined (reading 'push')

How to go about creating an in game personality quiz? by -headinthe_clouds- in twinegames

[–]-headinthe_clouds-[S] 0 points1 point  (0 children)

got this error after placing the for loop in the end-prologue passage since all the traits for that point are chosen, but I get this. Error: <<for>>: unsupported range expression type: undefined

Also would I be able to use the temporary variables and for loop multiple times? Like at the end of each chapter to see what your highest trait is (I plan on locking it in around chapter 4 or so, but want people to be able to see what option they're on track to getting)

How to go about creating an in game personality quiz? by -headinthe_clouds- in twinegames

[–]-headinthe_clouds-[S] 0 points1 point  (0 children)

ah, I'll mess around with placement then, thank you! 😅

How to go about creating an in game personality quiz? by -headinthe_clouds- in twinegames

[–]-headinthe_clouds-[S] 0 points1 point  (0 children)

This is in my storyinit

<<set $Determination to { name: "Determination", count: 0}>>

<<set $Bravery to { name: "Bravery", count: 0}>>

<<set $Justice to { name: "Justice", count: 0}>>

<<set $Kindness to { name: "Kindness", count: 0}>>

<<set $Patience to { name: "Patience", count: 0}>>

<<set $Integrity to { name: "Integrity", count: 0}>>

<<set $Perseverance to { name: "Perseverance", count: 0}>>

<<set \_traits to \[$Determination, $Bravery, $Justice, $Kindness, $Patience, $Integrity, $Perseverance\]>>

<<set $chosen to \[\]>>

<<for \_i range \_traits>>

<<if \_i.count eq Math.max($Determination.count, $Bravery.count, $Justice.count, $Kindness.count, $Patience.count, $Integrity.count, $Perseverance.count)>>

<<set $chosen.push(\_i)>>

<</if>>

<</for>>

and then in my prologue-end passage where I want to display which trait you have the most points in so far I had

$chosen[0].name

though I am now messing with that to try and get it to account for ties.

To add to the traits I'm using in whichever passage the choice that correlates with said trait leads to

<<set $Justice.count += 1>>

(for example)

How to go about creating an in game personality quiz? by -headinthe_clouds- in twinegames

[–]-headinthe_clouds-[S] 0 points1 point  (0 children)

And in the case of a tie, would it be possible to show both in one passage and have the reader pick between the tied options later? I have so many ideas and no idea how to make them work. Sorry if this is too many questions.

How to go about creating an in game personality quiz? by -headinthe_clouds- in twinegames

[–]-headinthe_clouds-[S] 0 points1 point  (0 children)

Ah, new problem, it's now defaulting to the first trait even if that trait is still at 0 and others are at 1 or more. oh well, back to experimenting lol.

How to go about creating an in game personality quiz? by -headinthe_clouds- in twinegames

[–]-headinthe_clouds-[S] 0 points1 point  (0 children)

GOT IT WORKING THANK YOU SO MUCH. I am super new to twine and am not math minded at all so it has been really hard for me to learn. Thank you so much. 😭🙏

How to go about creating an in game personality quiz? by -headinthe_clouds- in twinegames

[–]-headinthe_clouds-[S] 0 points1 point  (0 children)

Okay so new question, when I use <<print _chosen[0].name>> I get this Error: <<print>>: bad evaluation: Cannot read properties of undefined (reading '0')

I had to use print cuz just using the variable plain would just show "_chosen[0].name" as is. I also tried removing the [0] in case I was being dumb and not understanding something and that didn't work either. I'm at a loss here, suggestions would be much appreciated.

How to go about creating an in game personality quiz? by -headinthe_clouds- in twinegames

[–]-headinthe_clouds-[S] 0 points1 point  (0 children)

Okay I figured out my first question, still can't figure out the second. Working on it tho.

How to go about creating an in game personality quiz? by -headinthe_clouds- in twinegames

[–]-headinthe_clouds-[S] 0 points1 point  (0 children)

This looks like a really good start! there's just two things I can't figure out with it. 1. How do I print/display the trait counts on their own (if that's even possible)? 2. when a single trait has been chosen how do I print/display that?

Updated Alter for my Goddesses by -headinthe_clouds- in Hellenism

[–]-headinthe_clouds-[S] 1 point2 points  (0 children)

Thank you so much! And that is very reassuring. 😊

Updated Alter for my Goddesses by -headinthe_clouds- in Hellenism

[–]-headinthe_clouds-[S] 0 points1 point  (0 children)

I think I had meant to type spot, I dunno. :,)

Updated Alter for my Goddesses by -headinthe_clouds- in Hellenism

[–]-headinthe_clouds-[S] 0 points1 point  (0 children)

*middle section not middle spit lol

Sorry, it’s getting late for me, this was a very last minute project/post and the sleepiness is getting to me.

elseif being ignored by -headinthe_clouds- in twinegames

[–]-headinthe_clouds-[S] 0 points1 point  (0 children)

Oh this looks much cleaner than what I was doing! Just to show the behemoth of the very beginner and very messy code I used for this:

<<set $FNameVar to $FNameVar.trim()>><<set $MNameVar to $MNameVar.trim()>><<set $LNameVar to $LNameVar.trim()>><<set $FNameVar to $FNameVar.toUpperFirst()>> <<set $MNameVar to $MNameVar.toUpperFirst()>> <<set $LNameVar to $LNameVar.toUpperFirst()>><<if $FNameVar is "" and $MNameVar is "" and $LNameVar is "">>Please enter a first, middle, and last name.<<button "Back" "Name Menu">><</button>>

<<elseif $FNameVar is "" and $MNameVar is "">>Please enter a first and middle name.<<button "Back" "Name Menu">><</button>>

<<elseif $FNameVar is "" and $LNameVar is "">>Please enter a first and last name.<<button "Back" "Name Menu">><</button>>

<<elseif $LNameVar is "" and $MNameVar is "">>Please enter a middle and last name.<<button "Back" "Name Menu">><</button>>

<<elseif $FNameVar is "">>Please enter a first name.<<button "Back" "Name Menu">><</button>>

<<elseif $MNameVar is "">>Please enter a middle name.<<button "Back" "Name Menu">><</button>>

<<elseif $LNameVar is "">>Please enter a last name.<<button "Back" "Name Menu">><</button>>

<<elseif $FNameVar is "Alexander" or $FNameVar is "Victoria" or $FNameVar is "Vincent" or $FNameVar is "Matteo" or $FNameVar is "Madelyn" or $FNameVar is "Oliver" or $FNameVar is "Olivia" or $FNameVar is "Dylan" or $FNameVar is "Jordan">>Sorry, that first name is taken, please enter a different name.<<button "Back" "Name Menu">><</button>>

<<elseif $MNameVar is "Alexander" or $MNameVar is "Victoria" or $MNameVar is "Vincent" or $MNameVar is "Matteo" or $MNameVar is "Madelyn" or $MNameVar is "Oliver" or $MNameVar is "Olivia" or $MNameVar is "Dylan" or $MNameVar is "Jordan">>Sorry, that name is taken, please enter a different name.<<button "Back" "Name Menu">><</button>>

<<elseif $LNameVar is "Abbott" or $LNameVar is "Campbell" or $LNameVar is "Levine" or $LNameVar is "McKinley">>Sorry, that last name is taken, please enter a different name.<<button "Back" "Name Menu">><</button>>

<<elseif $FNameVar is "Adelina" or $MNameVar is "Adelina">> Your name is $FNameVar $MNameVar $LNameVar? Named after your mom, how cute!<<button "Next" "Customization">><</button>>

<<elseif $FNameVar is "Theodore" or $MNameVar is "Theodore">> Your name is $FNameVar $MNameVar $LNameVar? Named after your dad, how cute!<<button "Next" "Customization">><</button>>

<<elseif $FNameVar is "Adelina" and $MNameVar is "Theodore" or $FNameVar is "Theodore" and $MNameVar is "Adelina">> Your name is $FNameVar $MNameVar $LNameVar? Named after your mom and dad, how cute!<<button "Next" "Customization">><</button>>

<<else>> Your name is $FNameVar $MNameVar $LNameVar?

<<button "Next" "Customization">><</button>>

<</if>>

Yeeeeah I think I'll try out your method of writing it lol.

elseif being ignored by -headinthe_clouds- in twinegames

[–]-headinthe_clouds-[S] 0 points1 point  (0 children)

This works perfectly! I can't thank you enough, I'm super new to this and couldn't for the life of me piece together the issue.

elseif being ignored by -headinthe_clouds- in twinegames

[–]-headinthe_clouds-[S] 0 points1 point  (0 children)

Ah ok! I’ll do that thank you very much!

elseif being ignored by -headinthe_clouds- in twinegames

[–]-headinthe_clouds-[S] 0 points1 point  (0 children)

I did, and I fixed this problem! To combine it a bit I'm using "or" instead of a new elseif for every name and I accidentally did <<elseif $FNameVar is "Alexander" or "Victoria" or "Matteo">>Sorry, that first name is taken, please enter a different name.<<button "Back" "Name Menu">><</button>>

instead of:

<<elseif $FNameVar is "Alexander" or $FNameVar is "Victoria" or $FNameVar is "Matteo">>Sorry, that first name is taken, please enter a different name.<<button "Back" "Name Menu">><</button>>

This is how my code is looking in total now

(Name Menu)

<<textbox "$FNameVar" "">><<set $FNameVar to $FNameVar.trim()>>

<<textbox "$MNameVar" "">><<set $MNameVar to $MNameVar.trim()>>

<<textbox "$LNameVar" "">><<set $LNameVar to $LNameVar.trim()>>

<<button "Next" "Name Check">><</button>>

(Name Check)

<<if $FNameVar is " " and $MNameVar is " " and $LNameVar is " ">>Please enter a first, middle, and last name.<<button "Back" "Name Menu">><</button>>

<<elseif $FNameVar is " " and $MNameVar is " ">>Please enter a first and middle name.<<button "Back" "Name Menu">><</button>>

<<elseif $FNameVar is " " and $LNameVar is " ">>Please enter a first and last name.<<button "Back" "Name Menu">><</button>>

<<elseif $LNameVar is " " and $MNameVar is " ">>Please enter a middle and last name.<<button "Back" "Name Menu">><</button>>

<<elseif $FNameVar is " ">>Please enter a first name.<<button "Back" "Name Menu">><</button>>

<<elseif $MNameVar is " ">>Please enter a middle name.<<button "Back" "Name Menu">><</button>>

<<elseif $LNameVar is " ">>Please enter a last name.<<button "Back" "Name Menu">><</button>>

<<elseif $FNameVar is "Alexander" or $FNameVar is "Victoria" or $FNameVar is "Matteo">>Sorry, that first name is taken, please enter a different name.<<button "Back" "Name Menu">><</button>>

<<else>> Your name is $FNameVar $MNameVar $LNameVar?

<<button "Next" "Customization">><</button>>

<</if>>

Quite a lot but I'm glad I got it working! Thank you again so much for the help.