ID:267234
 
    StartCombatSimulation(var/mob/M)
M.action="None"
if(M.usrplay==1)
M.my_client<<"<b>Turn ends in 40 seconds."
spawn()
Start_Timer(M)
sleep(400)


that's the code, exactly like how it is but when I run this proc in game

it repeats Turn Ends in 40 seconds 2 times each time.
Start_Timer() (or some other proc) must be calling StartCombatSimulation().

Also, that sleep(400) call at the end there does absolutely nothing.
In response to Crispy
well after that sleep() I have a bunch of other stuff but it has nothing to do with that beginning part. I don't understand, sigh.


figured it out, I had to put a filter on my list()

for instance for you others out there.

mob
proc
attack()
var/mob/character=new/mob/fire(src.loc)
var/mob/tt=input("Who do you want to attack?") as mob in world
spawn(10)
StartCombatSimulation(character)
spawn(10)
StartCombatSimulation2(tt)
return

I found out what was happening was tt was character when there was no other mobs to select from, I forgot to put filters.