ID:269704
 
Basicly I want this code to make it so that everyone watching you can vote for you. This is the code Ive come up with:

obj
Machines
Get()
set hidden = 1
icon = 'machines.dmi'
Microphone
icon_state = "mic"
verb
Perform(son as obj in view(-1))
set src in oview(0)
if(istype(son,/obj/Lyrics/Song))
view(3) << "[usr] is now performing a song named [son:name]"
usr.frozen = 1
sleep(10)
view(3) << browse(son:song,"window=[son:name]")
for(var/mob/M as mob in view(3))
M.AskVote()
usr.frozen = 0
usr.Votes = global.vote1
usr << "You recieved [usr.Votes] votes"


I havnt actually tested this with anyone though i have placed some mobs on the map close to the mic and when it was voting time a got to chose all the votes. Could someone help me.
Say you have a verb called Vote() defined for /mob/extraskills - a mob that no clients will connect with, so that they don't automatically have the verb.

Say the mob the player connects to is /mob/player.

mob/player/proc/Give_Vote()
verbs += /mob/extraskills/Vote


An easy solution.

Hiead