Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - khalilsajadi

#2
I have a mythical creature I would like to disappear after he gives the main char a clue. I know to make him disappear you use, in my example, cLeshy.ChangeRoom(0); but I'm not sure where to put it so that he disappears directly when the conversation ends. I tried adding a hotspot right next to the one that makes the npc appear, but it's an awkward delay to wait for the main char to walk, hit the hotspot, and THEN make the npc disappear. Any suggestions?
#3
Nevermind, that was a character in place I hadn't changed the sprite for yet. I forgot, it automatically uses the main character's sprite. XD
#4
Nevermind; I went back to your first option and it worked splendidly. thank you! :)
#5
Firstly, thanks for the speedy reply. I've decided to go with your second option, where he is always in room 0. However, if I have an entire scripted dialogue rather than just one phrase, can I say dHam.Start(); instead of cHam.Say("..."); ? I tried that, and AGS wouldn't let me add oHam.Visible = false; afterwards. o:

What I'm understanding the whole script should look like is:

  function oHam_Interact()
{
  dHam.Start();
  oHam.Visible = false;
  player.AddInventory(iHam);
}

But it won't allow the oHam line?
#6
I enter a room from the left, and my npc is standing in the middle there as usual, but a sprite of my character also appears behind the NPC, so there are two of me on the screen! How do I make that doppelgänger disappear?! XD Thanks in advance for any help.
#7
In my game I have a ham that the character can talk to. I created the ham as a character so it could speak. At the end of the dialogue, I want my character to be able to pick up the ham, bring him to another room, and set him down again. To experiment with this, I tried creating an object that was the ham, and coded it so that when I use the interact option on oHam, it disappears and is then in my inventory. Looks like this:

function oHam_Interact()
{
  oHam.Visible = false;
  player.AddInventory(iHam);
}

So, obviously, now there are two hams on the screen. XD

Is there a way I can either:
a. have dialogue with an object, or
b. make cHam invisible (after the dialogue) and still have iHam show up in my inventory, and then just make the NPC reappear in another room after I drop the inventory item?
SMF spam blocked by CleanTalk