You could always make two classes for 'action mode' and 'movement mode' and do something like this to switch between the two:
PHP Code:
function SwitchModes(newmode) {
temp.newmode = newmode;
temp.modes = { "move", "action" };
putnpc2(x, y, "join chair_" @ temp.modes[temp.newmode] @ ";");
with(npcs[npcs.size()-1]) {
for(temp.vname: thiso.getvarnames()) {
this.(@temp.vname) = thiso.(@temp.vname);
}
this.currentmode = temp.newmode;
}
destroy();
}
Or something like that X_x;