Hi guys,
After days and days of reading and trying to understand the commands, I'm still stuck.
I want that two guards to block the exit, so only fighters (members of the fighter class) can pass. I came up with this piece of code, which seems to not be working.
int block_player(object ob){
if (ob->GetClass() != "fighter")
ob->SetGuard("up", "The guards blocks your way!");
}
void init(){
::init();
call_out((: block_player, this_player()

, 0);
}
It still blocks everyone no matter what class. Where I'm wrong?