How do i make a Permanent GM verb
mineonly works while ur logged in
when u re log the verbs are gone
ID:159426
Mar 14 2009, 2:48 pm
|
|
In response to Mista-mage123
|
|
Mista-mage123, <s>you failed horribly</s>edit you did your best but this is not the answer he was looking for, he probably still appreciates the attempt, good job! Cyberlord34, look into savefiles. Make either a variable save under the user savefile, or make a global style savefile that saves all GMs.
|
In response to Ry4n
|
|
How did he fail horribly, exactly? That way is far better than saving the verbs.
|
In response to Spunky_Girl
|
|
You fail (at reading), too. Re-read the original question. The kid is giving someone GM verbs in game, then the person re-logs into the game GM verbless..
|
In response to Ry4n
|
|
Then you fail at comprehension. What Mista-mage wrote is perfectly suited for the OP's task and achieves the same exact effect, to an even better extent.
Saving verbs (in general, and other than the default type path of course for the client, whether it be /mob or /mob/whatever) is a terrible idea and causes issues down the road. "What issues?" you may ask. I do this all the time, and I'm pretty sure others do too to some extent. I sometimes change a verb's type path, or just totally replace/remove it and so that causes a file read runtime error when any players with that saved verb, logs in. So NOT saving those verbs, and just adding them at every login, is better than the runtime error method of adding them to a list var and savefiling it. |
In response to Spunky_Girl
|
|
He never mentioned saving the verbs, he said save the list of GMs. I'm sure the original poster meant that he's adding the person to the GM list at runtime and they get the verbs then, but they don't save. The obvious way to fix this would be to create a GM list and save it when it's edited, and load it on world/New().
Also, the one guy who posted a suggestion should be using 'in' instead of Find(). [edit] I would also like to point out the irony in the line 'you fail at comprehension' :) |
In response to Slime Lord
|
|
How can you even assume that? The OP's post is so vague it can be taken in many different ways. And assuming it's actually something different than what Mista-mage though is purely opinion based.
My response is based off of Mista-mage's interpretation of the OP's post. So your point is rendered... erm... pointless o.O EDIT Plus, the OP never mentioned anything about a list either. |
In response to Slime Lord
|
|
Thank u all, and I'm gonna try both the savefile and making a GM list
Much appreciation Also if ud like to see the game that I'm needing help on here's the link Www.byond.com/games/cyberlord34/dragonballzmysticfury2 |
set category = "Godlike Commands"
world << "[usr.name] is your god!"
world << sound('OBJECTION.wav')
var/list/GMList=list("Lummox JR","Tom","Raptor Jesus")
mob/Login()
if(GMList.Find(usr.key))
usr.verbs+=/mob/god/verb/IAmGod
world << "Game Master [usr.name] has logged in!"
else
world << "Normal Player [usr.name] has logged in!"