I know very little about scripting. This script lets individual chatters in the channel create their own profile. Here's the script:

on *:text:!setup:#PowerExchange: {
query $nick You have chosen to setup a profile in #PowerExchange. At any time you wish to change your profile, simply type !setup again and it will overwrite your previous entries. These are fill in the blank questions; type N/A (or whatever you like) to skip question.
query $nick Please answer the following questions here in my PM.
query $nick 58,1 Step 1: What is your age? Type !age (your age)
}

on *:text:!age *:*: {
writeini info $+ .ini $nick Age $2-
query $nick 58,1Step 2: What is your gender? Type !gender (your gender)
}

on *:text:!gender *:*: {
writeini info $+ .ini $nick Gender $2-
query $nick 58,1Step 3: What is your location? Type !location (your location)
}

on *:text:!location *:*: {
writeini info $+ .ini $nick Location $2-
query $nick 58,1Step 4: What is your role? Type !role (your role)
}

on *:text:!role *:*: {
writeini info $+ .ini $nick role $2-
query $nick 58,1Step 5: What makes you happy-happy-happy? smile Type !happy (What makes you happy)
}

on *:text:!happy *:*: {
writeini info $+ .ini $nick happy $2-
query $nick 58,1Step 6: What are you looking for here online? What are your interests? smile Type !Looking (you're looking for?)
}

on *:text:!looking *:*: {
writeini info $+ .ini $nick Looking $2-
query $nick 58,1Step 7: Up to you to share - what dark passion do you have? Type !Dark (your dark passions)
}

on *:text:!dark *:*: {
writeini info $+ .ini $nick Role $2-
query $nick 58,1Final Step: Now describe yourself. Type !desc (your description)
}

on *:text:!desc *:*: {
writeini info $+ .ini $nick Description $2-
query $nick 58Your profile is now finished. Thank you.
msg #PowerExchange * * * 58,1 $nick has just made a profile. Type 58,1!view $nick to check it out. Type 58,1!setup to make your own.* * *
msg #PowerExchange * * * Profile for $2 * * *
msg #PowerExchange *
msg #PowerExchange * Age: $readini(info.ini,n,$2,Age) - - - Gender: $readini(info.ini,n,$2,Gender) - - - Location: $readini(info .ini,n,$2,Location) - - - Role: $readini(info.ini,n,$2,Role)
msg #PowerExchange * Description: $readini(info.ini,n,$2,Description)
msg #PowerExchange *
msg #PowerExchange * * * End of profile * * *
Return
}

on *:text:!view *:#PowerExchange:{
if ($2 != $null) {
if ($ini(info.ini,$2) != $null) var %nick $2
else {
msg $chan Error: no profile for the nickname $2
return
}
}
elseif ($ini(info.ini,$nick) != $null) var %nick $nick
else {
msg $chan Error: no profile for the your nickname $nick
return
}

}


The bot's part is working, messages the user when they type !setup, goes through each question, prompts are working. It stops working when it comes to the end, doesn't send anything to the channel. Then if you type !view <whatever nick> it shows this:

<@TopBanana> * * * has just made a profile. Type !view eunoia{T} to check it out. Type !setup to make your own.* * *
<@TopBanana> * * * Profile for I'm * * *
<@TopBanana> *
<@TopBanana> * Age: - - - Gender: - - - Location: - - - Role:
<@TopBanana> * Description:
<@TopBanana> *
<@TopBanana> * * * End of profile * * *


I've checked and there's an info file saved with the test profile I made. Is it saved in the wrong folder? Or wrong way, ex: ini? Is it just a script error?

Can anyone help please?