Ambrosia Garden Archive
    • Player to NCP


      Can you make a Player a NPC and guide them to a particual spot and then Player again?

      ------------------

    • Quote

      Originally posted by Kef:
      **Can you make a Player a NPC and guide them to a particual spot and then Player again?
      **

      An "NPC" is a Non-Playing-Character, so the answer is no. However, you can guide an NPC to a particular spot. What is it you want to do? If you give us the objective, we may be able to help you solve it. ~RD

      ------------------
      My Doctor said I was having too much wine, women, and song - so I gave up singing because 2 out of 3 is not so bad.
      The (url="http://"http://www.evula.org/rduck/")Kingdom of Garendall(/url) sectional map is easily printed from gif format pages.
      (url="http://"http://www.ambrosiasw.com/cgi-bin/vftp/dl-redirect.pl/damsels.sit?path=pog/addons&file;=damsels.sit")Damsels in Distress(/url) - A plugin for PoG.

    • You want to move the hero around while the player watches, like for a cutscene?

      Duplicate the hero's walking animation. In the animation editor, give it the Camera Lock flag. Make an NPC (Fake Hero) with that animation. Now, when you want to move the hero, you have to do a couple of things:
      1. Take control away from the player (Events-User Control)
      2. Place the Fake Hero NPC (Events-NPC Control) where the player was (Player X/Y)
      3. Hide the real Hero (either switch the hero's sprite with a white (invisible) picture, or use Events-Map Position to move him away from the action
      4. Give the Fake Hero your destination and when it reaches it, tell it to: delete itself, teleport the real hero to its (actual X/Y) position, and give control back to the player.

      You might be able to find a cleaner way of doing it, but it will probably involve one or more of those steps. Good luck.

      myshkyn

      ------------------
      "I'll give the fans just what they want, and nothing else at all."

    • I think the correct order would be:

      1. Take control away from the player (Events-User Control)
      2. Place an invisible camera-lock animation as a stamp (so that the camera is locked before you mess around with the player's position)
      3. Store the player's location (PlayerX/Y) in globals. (If you have the event linked to a particular ground tile whose location you know, this would of course not be necessary)
      4. Use Events-Map Position (possibly with the addition of turning the player sprite invisible) to move the player away from the action.
      5. Place the Fake Hero NPC (Events-NPC Control) where the player was.
      6. Give the Fake Hero your destination and when it reaches it, tell it to: delete itself, teleport the real hero to its (actual X/Y) position, and give control back to the player

      ------------------
      'You can either be on the stage, just a performer, just going through the lines...or you can be outside it, and know how the script works, where the scenery hangs, and where the trapdoors are. Isn't that better?'
      -- T. Pratchett

    • Quote

      Originally posted by Rubber Ducky:
      **An "NPC" is a Non-Playing-Character, so the answer is no. However, you can guide an NPC to a particular spot. What is it you want to do? If you give us the objective, we may be able to help you solve it. ~RD

      **

      I want to make some sort of cutscene, yes.

      But I'll try following instructions from above

      ------------------