turf
TLvlGo
Enter()
if(usr.town1=="None")
if(usr.TLvl>=4)
usr.town1="Enabled"
density=0
if(usr.TLvl<=5)
density=1
usr<<"<font color=red><b>You aren't experienced enough!"
if(usr.town2=="None")
if(usr.TLvl>=8)
usr.town2="Enabled"
density=0
if(usr.TLvl<=9)
density=1
usr<<"<font color=red><b>You aren't experienced enough!"
if(usr.town3=="None")
if(usr.TLvl>=14)
usr.town3="Enabled"
density=0
if(usr.TLvl<=15)
density=1
usr<<"<font color=red><b>You aren't experienced enough!"
if(usr.town4=="None")
if(usr.TLvl>=19)
usr.town4="Enabled"
density=0
if(usr.TLvl<=20)
density=1
usr<<"<font color=red><b>You aren't experienced enough!"
if(usr.town5=="None")
if(usr.TLvl>=25)
usr.town5="Enabled"
density=0
if(usr.TLvl<=26)
density=1
usr<<"<font color=red><b>You aren't experienced enough!"
if(usr.town6=="None")
if(usr.TLvl>=30)
usr.town6="Enabled"
density=0
if(usr.TLvl<=31)
density=1
usr<<"<font color=red><b>You aren't experienced enough!"
if(usr.town7=="None")
if(usr.TLvl>=36)
usr.town7="Enabled"
density=0
if(usr.TLvl<=37)
density=1
usr<<"<font color=red><b>You aren't experienced enough!"
Problem description: I want it so just like in PWO, you need a trainer level to switch through different towns. But as you can see, this code is messed up, I don't know how. You need to be lvl 5 to go through the first town, so I tried coding that in as: if(usr.TLvl>=4) .. . I reached level 5 and still blocks me with the "You arent experienced enough" quote. . Basically it still restricts me from moving through even though I reached the level.
In your case, you want to return 0 when your level isn't high enough, and return 1 when it is.