ID:261306
 
Can anyone give me an example of how to add a verb that checks IQ?

So if some ones IQ is over 200 they are really clever, 150 bright, 90 average, 89< Dumb, the verb also has to be able to scan everyone playing.

Thanks.
you should make it a random numder and it will trick people to make them look stupid. sorta like: its random by "Name" that would be really cool
In response to Migzor
but i need to know how to code it in first.
In response to Super saiyan3
mob/verb/IQ_Check(mob/M in world)
if(usr.IQ>=200)
usr<<"[usr]'s IQ is [usr.IQ]. What a genius!"
else
usr<<"[usr] isn't so smart"

mob
var
IQ=20 //Thats there Iq but make sure u have it so you can gain IQ.
In response to Super saiyan3
you might be able to do it this way,

mob/proc
IQcheck()
if(usr.IQ >= 199)//if 200 - #
usr << "You are a Smart Guy"
else
if(usr.IQ >= 149)// if 150 - 199
usr << "Still not as smart as me
else
if(usr.IQ >= 89)//if 90 - 149
usr << "Your just average"
else
if(usr.IQ >= 0)//if 1-89
usr << "Not the sharpes tool in the shed.
else

And then have it spawn at the beggining of the game or have it run after they increase their IQ or something like that, tell me if it works, k
In response to Darke Rage
mob/verb/IQ_Check(mob/M in world)
if(M.IQ>=200)
usr<<"[M]'s IQ is [M.IQ]. What a genius!"
else
usr<<"[usr] isn't so smart"

mob
var
IQ=20 //Thats there Iq but make sure u have it so you can gain IQ.
In response to Darke Rage
Err. Where it says isn't so smart put M.
In response to Darke Rage
Err. Where it says isn't so smart put M.
In response to Darke Rage
Thanks for the help, but the verb must scan the whole world.
In response to Super saiyan3
I would like to thank darke rage for all his help. Thanks!
In response to Super saiyan3
Shadowdarke, when did he help you?
In response to Nadrew
he helped me a heck of a lot, but how is a secret.
Nadrew. Apparently he thinks I am Shadow. I already talked to him about the mix up.
In response to Darke Rage
it was Darke Rage that helped me. Thnak you very much.
Super saiyan3 wrote:
So if some ones IQ is over 200 they are really clever, 150 bright, 90 average, 89< Dumb, the verb also has to be able to scan everyone playing.

Although IQ isn't really an accurate measure of intelligence, I should probably tell you that 100 is the average, not 90, and "bright" people tend to be in the range over 115 or so. I believe 130 or 140 is considered "genius".

Lummox JR
In response to Lummox JR
110 is average. Don't ask me why, that's what a recent IQ test said.
In response to Foomer
Foomer wrote:
110 is average. Don't ask me why, that's why a recent IQ test said.

Weird. It's really supposed to be 100 that's average; if 110 is considered average, then the test is based on inaccurate data.

Lummox JR
mob
var/IQ as num
var/IQ_desc as text
mob/New()
IQ = rand(rand(40,60),rand(160,220))
..()
mob/Stat()
..()
statpanel("IQ")
if(IQ != null)
stat("Your IQ: [IQ]")
if(ID_desc != null)
stat("Judging by your IQ, you are [IQ_desc].")
proc/IQ_check-assign()
var/num_checked = 0 as num
for(var/mob/M in world)
if(M.IQ >= 200)
M.IQ_desc = "Genious"
else if(M.IQ >= 150)
M.IQ_desc = "Bright"
else if(M.IQ >= 90)
M.IQ_desc = "Average"
else
M.ID_desc = "Below Average"
usr << "[M] has been identified as [M.IQ_desc]."
M << "You have been identified as [M.IQ_desc]."
num_checked += 1
return num_checked

//usage example

mob/verb/CheckAllIQ()
set name = "Check everyone's IQ"
src << "[IQ_check-assign()] people have been checked."


Try that on for size.