Used item only if in room 6 (SOLVED)

Started by Candle, Sun 23/04/2006 20:08:13

Previous topic - Next topic

Candle

I have a fishing pole and when it is used on the player[melt] I want to have him change views and do a small character animation of him using the pole.
But only if he is in the room with the small pond(room 6).
What would be the best way to do it?

Ashen

#1
You mean an inventory item you'd use on the character? Just do the normal Inventory Interaction, but add a check of the player.Room property, e.g.:
Code: ags

if (player.ActiveInventory == iPole) {
  if (player.Room == 6) {
    // Change View
    // Do Animation
  }
  else player.Say ("This isn't the place for that.");
}


On another note - this is about the third question on the run you've asked that's quite easily answered by just reading the manual. Please, think about it a little harder before you post next time.
I know what you're thinking ... Don't think that.

Candle

Didn't mean take up your time sorry.

SMF spam blocked by CleanTalk