- 34
- Posts
- 9
- Years
- Seen May 22, 2021
Hi, as the title says, how do I level check the script without using any switch? (I am intending to use a conditional branch for pbHasLevel? (xx) )
I tried to use this script but it doesnt work. Am i doing somthing wrong? I also hope that I post this ques in the right thread...
def pbHasLevel?(level)
for i in 0...$Trainer.party.length
return true if $Trainer.party.level >=level
end
return false
end
I tried to use this script but it doesnt work. Am i doing somthing wrong? I also hope that I post this ques in the right thread...
def pbHasLevel?(level)
for i in 0...$Trainer.party.length
return true if $Trainer.party.level >=level
end
return false
end