proc
Ride()
if(usr.riding ==0)
for(var/global/mob/dragons/Dragon/O in oview())
if(usr.mp >= 2)
usr.doing=1
usr.mp -= 2
usr.riding=1
usr.icon_state = "ride"
usr.underlays+=O
usr<<"You go ride your dragon"
usr.doing=0
//usr.verbs+=/mob/ride/verb/dismount
O.loc=locate(0,0,0)
else
usr<<"Not Enough MP"
else
for(var/global/mob/dragons/Dragon/O in world)
usr.doing = 1
usr.riding=0
usr<<"You stop riding your dragon"
if(usr.sex == "male")
usr.icon_state="male"
else usr.icon_state="female"
usr.underlays-=O
usr.underlays-=O
usr.underlays-=O
usr.underlays-=O
usr.doing = 0
BottomDragon()
Problem description: the first half works great and exactly what i want however when i want to unride it picks a random dragon regardless of if the person has their own or not. ive racked my brain but i cant think of how to do it. any suggestions?