hi!
First, i begin to believe, AGS is the most addictived "game" i've ever played...
ok, i need player change room throug region only at two situations:
1.-when player have a object (no problem with that)
2.-when a specific NPC's loop have been run.
i use a conditional into function region_walkOnto
Code: ags
First, i begin to believe, AGS is the most addictived "game" i've ever played...

ok, i need player change room throug region only at two situations:
1.-when player have a object (no problem with that)
2.-when a specific NPC's loop have been run.
i use a conditional into function region_walkOnto
function region1_WalksOnto()
{
if (player.HasInventory(isello))
{
player.ChangeRoom(7, 150, 550);
}
else if (character[cPortero].loop==8)// This is what i don't know
{
player.ChangeRoom(7, 150, 550);
}
else
{
cPortero.LockView(3);
cPortero.Animate(2, 3, eOnce, eNoBlock);
cPortero.Say("EH! TU!...SI NO PAGAS NO ENTRAS");
player.Walk(468, 495, eBlock);
player.FaceCharacter(cPortero);
}
}
[\code]
thanks for answering!(roll)