:: AS Dump

<<set $dumped to 0>>

<<for $i to 0; $i < $slaves.length; $i++>>
	<<if $activeSlave.ID == $slaves[$i].ID>>
	<<set $slaves[$i] to $activeSlave>>
	<<set $dumped to 1>>
	<<break>>
	<</if>>
<</for>>

<<if $dumped == 0>>
	<<if def $activeSlave.slaveName>>
	<<AddSlave $activeSlave>>
	<<set $dumped to 1>>
	<</if>>
<</if>>

<<goto $returnTo>>

src/npc/asDump.tw