ID:147777
 
i have a problem with my GM list code. here's my code.

var
list/gmlvl1 = list()
list/gmlvl2 = list()
list/gmlvl3 = list()
list/gmlvl4 = list()

on the Give GM verb, i have gmlvl4 += src or gmlvl3, etc... and after that, i put src.verbs+=/blahblahblah... it works and on the mob/Login() proc i have it like this

mob
Login()
if(gmlvl4.Find(src))
// add verbs and other stuff here
// add verbs and other stuff here
// add verbs and other stuff here

it doesn't add when they login and they don't get their verbs back.
First off, why on EARTH would you want such a temptation? "Give GM" verb is pointless in my book. But, to answer your question...you're probably not saving the list when the world deletes it self. Also, you're using Find() incorrectly.

Find proc (list)
Format:
list.Find(Elem,Start=1,End=0)
Returns:
The first position of elem in list, or 0 if not found.
Args:
Elem: The element to find.
Start: The list position in which to begin the search.
End: The list position immediately following the end of the search.
Find the first position of Elem in the list. Elements between Start and End are searched. The default end position of 0 stands for the position immediately after the end of the list, so by default the entire list is searched.
In response to Goku72
it was for a GM system. i saw GM's demos in the libs or demos sections and they make a var to add like mob/login() if(gm=1) then add gm verbs. but if they get the edit verb too, they can change their gm rank var higher and relog to get more gm verbs. making a list is the only way i know how to do to prevent this since my edit verb can't edit list vars. but now i figured out how to do it, thanks anyway.