When !view <nick> is used, I want it to display the profile info found in the .ini file for the nick specified after !view.

So what is the way to do that?

Here is my profile script...


on *:text:!setup:#ChanName: {
query $nick Please answer the following questions here in my PM.
query $nick What is your age? Type !age (your age)
}

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

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

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

on *:text:!role *:*: {
writeini info $+ .ini $nick Role $2-
query $nick Now describe yourself. Type !desc (your description)
}

on *:text:!desc *:*: {
writeini info $+ .ini $nick Description $2-
query $nick Your profile is now finished. Thank you.
msg #ChanName * * * $nick has just made a profile. Type !view $nick to check it out. * * *
Halt
}

on *:text:!view *:#ChanName: {
/notice $nick * * * Profile for $nick * * * | /notice $nick * | /notice $nick Age: $readini(info $+ .ini,$nick,Age) - - - Gender: $readini(info $+ .ini,$nick,Gender) - - - Location: $readini(info $+ .ini,$nick,Location) - - - Role: $readini(info $+ .ini,$nick,Role) | /notice $nick * | /notice $nick Description: $readini(info $+ .ini,$nick,Description) | /notice $nick * | /notice $nick * * * End of profile * * *
Halt
}

Last edited by raggie; 22/06/14 06:14 PM.