ID:166309
 
Ok bascilly what I want is for monsters have to special attacks ok? And I want those attacks in a list. And when it is their turn to attack, they pick() from their list and then use or call() those attacks on the player.

Is this possible?
Of course its possible.
Add the special attacks as procs uder the monster
<dm>
mob/monster
icon_state='blah.dmi'
proc/Special1()
proc/Special2()
<dm>
Yeah, I do that all the time.

mob/monster
var/list/attacks = list("Jump", "Fly", "Retreat")

proc/RandomAttack()
var/attack = pick(attacks)
var/result = call("/mob/monster/proc/Attack[attack]")(***)
// *** - put any args that get passed to the procs here

proc/AttackJump()
world << "[src] jumps!"

proc/AttackFly()
world << "[src] flies!"

proc/AttackRetreat()
world << "[src] runs away!!!"


Something to that effect.