Attack Script
client
Topic(href, href_list [])
switch (href_list["action"])
if("Attack")
src<<"DEBUG"
if (usr.SelectedCommand || !usr.IsTurn || !usr.BattleNum)
return
usr.SelectedCommand = 1
var/list/PlayerList = new()
for (var/mob/M in world)
if (usr.BattleNum == M.BattleNum)
if (usr.TeamNum == 0 || M.TeamNum != usr.TeamNum)
if (usr != M && M.Hp > 0)
PlayerList += M
PlayerList += "Cancel"
var/AttChoice = input("Who do you wish to attack?", "Your Turn", null) in PlayerList
if(AttChoice != "Cancel")
usr.Attack(AttChoice)
usr.IsTurn = 0
usr.SelectedCommand = 0
else
usr.SelectedCommand = 0
else ..()
href script
for(var/mob/Attacker in TurnOrder)
if (Attacker != null && Attacker.Hp > 0 && Attacker.BattleNum && ContinueBattle)
Attacker.IsTurn = 1
Attacker << "[Server][Attacker], it is now your turn. Attack in 1 minute or your turn will be ended."
Attacker<<browse("<a href='?src=\ref[src];action=Attack'>Attack</a>","window=attack;popup;border=1,can_resize=1")
Problem description:Ok for some reason when i click the Attack href nothing happens it doesnt even get to debug what am i doing wrong?