ID:170343
 
I need some help on making my wishes in my game, send YES/NO choices to only Admins. I would like the wish to be up on the choices also.

for example:

[src] has wished for [src.wish]. Will you grant it?

YES NO


Well, have the verb do it's thing, then do a loop check in the world to see if there's any admins currently on. Then send the alert to them. Make sure you break the loop.
In response to Thief Jack
Thief jack wrote:
Well, have the verb do it's thing, then do a loop check in the world to see if there's any admins currently on. Then semd the alert to them. Make sure you break the loop.

Why would you want to break the loop? I think you would morely want to use continue.
Also, it's A LOT better to keep a list of admins, and search the players list for admins. :)
In response to Hell Ramen
Break it, if it continues and another admin grants it, it could be granted twice. You got me on the list, tho.
In response to Thief Jack
Thief jack wrote:
Break it, if it continues and another admin grants it, it could be granted twice. You got me on the list, tho.
Oh, I thought you meant like:
for(var/mob/M in world)
if(!M.admin&&!M in big_list_of_admins)
break


_>
Meh, oh well. You got me there! We're even.
*shakes hands*
In response to Thief Jack
But if the admin doesn't grant it? the loop should continue until its granted or until it has went through every admin.
In response to Jamesburrow
Put an if statement inside the loop to check if it's granted. If it is, break the loop and grant the wish. If it isn't continue the loop.