var/list/Attacks[][] = list(list()) //associated list with attack values and their targets
for(mob/char/C in attackers)
Attacks.Add(C.target)
Attacks[C.target][1] = C.movechoice
Attacks[C.target][2] = C.ratingchoice
Attacks[C.target][3] = C.locchoice
Callstack:
runtime error: cannot write to indexed value in this type of list
proc name: RunDuel (/combat_machine/proc/RunDuel)
usr: Bors (/mob/char/player/Bors)
src: /combat_machine (/combat_machine)
Problem description:
I am pretty sure I am getting the crash here.
If it's not apparent, my goal is to create a list of mobs that have previously been chosen as targets in the battle. Each mob reference on the list would point to a nested list with the three values in the order I chose above.
Thanks,
John
[Edit: Removed redundant code]
[Edit2:....and now I replaced the callstack I accidentally deleted in the last edit :-/]