ID:262875
 
Code:
<b>Problem description:</b>

mob
Login()
proc
force()
if(src.ne==0)
if(prob(50))
src.forcesensitivity+= 1
src << "You are force sensitive!"
src.ne+= 1
else
src << "You are not force sensitive!"

mob/var/forcesensitivity= 0
mob/var/ne= 0


Problem description:
I dont know what the problem is it just wont work
Do you want that to happen when you log on, or you want to just call it.
(variable) means if it is not null and mob/var/ne = 0 means its null, so check if you change that value.
In response to Blakdragon77
i want it to have a 50% chance when the player makes a new character
In response to Naughty illusions
You see, I hate those system. People will just make new characters.. Make them do a whole bunch of quests to see if they're good to be a Jedi, and then let them figure out if they're Force Sensitive.
mob
Login()
..()
force()
proc/force()
if(!ne)
if(prob(50))
forcesensitivity++
src<<"You are force sensitive!"
ne++
else src<<"You are not force sensitive!"
var
forcesensitivity
ne


Why overwrite mob/Login() when you're going to do nothing with it?
In response to Mysame
do you want to code the system cause thats the best i got right there
In response to Naughty illusions
Well, remember. There are barely any Jedi in the Star Wars universe. So maybe a 5 percent chance. So if you had 100 people, only about 5 would be Jedi.
In response to Kalzar
yeah but i cant get the coding to work and before the clone war there was alot of jedi
I know, you have to call the parent in other words replace
Login()
with
Login()
..()
In response to Tails5
Then you get a proc definition error
Ive Got it to Work Thanks to those who tryed