M << output("<center><b><font color = [usr.textcolor]>(Effect: [src.Effect]) Damage: (<a href='?src=\ref[src];cmd=damage'>Damage</a>)","IC")
mob/Topic(href,href_list[])
switch(href_list["action"])
if("damage")
var/tmp/damage1 = DamageCalc(src.strength, src.dexterity, usr.endurance, usr.agility)
usr.stamina -= damage1
Problem description:
Code above has been doctored simply for ease of viewing, but problem lies in how I'm attempting to make damage work through hyperlink in a project I'm working on.
Essentially, when a player uses an "obj/technique" in their contents, it outputs a bunch of text, and by clicking on this hyperlink I'd like other players to be able to accept damage.
So I need to access the variables of the player who activated the object, for attacking stats (strength and dexterity) and defender's stats (endurance and agility) for the time being.
I'm getting no error readouts, no runtime errors, and am genuinely at a loss after reading the documentation if there's a way around this beyond simply storing these stats inside of "obj/technique" on use so I can refer to the object directly as a source for variables.