Ambrosia Garden Archive
    • Hrmmm... You can't kill NPCs at a certain location, so it would have to work like this (note: in this example if you have the deathraise sword equipped you have a 50% chance of raising any NPC you kill):

      When you equip the RaiseDead sword set gb_raisedead to 1. When you dequip it, set gb_raisedead to 0.
      In the death event of each NPC:
      gb_chancetoraise = random 100.
      If gb_raisedead = 1 AND gb_chancetoraise >= 50 then create blocker NPC (passive NPC that tries to get to player) at ActualX, ActualY.

      For the sake of reality, game-balance, etc. create a counter that is incremented every time an NPC is raised and limit the number (add a condition to the above line (the one that creates the blocker) that checks that the number is not above a certain number (of your choosing)). Also limit their time of existence. (Just post if you need help with that; let me just say that it involves good use of the counter which you can find out how to make here).

      Post your results here or ask if you have trouble getting it to work. Good luck!

      ------------------
      CI-I@()s
      (url="http://"http://www.world-of-cha0s.hostrocket.com")The Homepage of Cha0s(/url)

    • Yeroc, I think you want to limit your c-c-t-l "corpses-come-to-life" to about four (five at most) because if you get too many the hero will not be able to move. Blockers work pretty well in open areas of the map, but can tie up the hero in tight quarters. Each c-c-t-l has instructions to "try to reach player" and since the playing character and any NPC cannot occupy the same movement tile, the player can be the one who gets blocked if he gets pinned up against a line of trees, to give one example.

      You first need your NPCcorpse (dead ones) on the map. These are given zero movement. You also need to create the c-c-t-l creatures and I suggest that each one be uniquely numbered.

      Globals would be used to determine whether or not the sword would "release its magic." In the item editor for the sword, go to the "links" tab and create an event link for "Hit." If conditions for &&gb;_bringtolife are true, and &&gb;_c-c-t-l = 0, then (NPC control) delete NPCcorpse at location X1, Y1 and place NPCc-c-t-l#1 at location X1, Y1. Set &&gb;_c-c-t-l = 1. Now your dead corpse comes to life and walks over to join the hero. On the next hit, if &&gb;_bringtolife is still true, and &&gb;_c-c-t-l = 1, then the next NPCcorpse becomes NPCc-c-t-l#2. And so on.

      I know that sounds a little complicated, but that's exactly what you are doing, i.e. something a little complicated. If you need this clarified, please ask. ~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;=damselsV1.1.sit")Damsels in Distress(/url) - A plugin for PoG. (url="http://"http://www.evula.org/rduck/RD-DEL.jpg")RD-DEL(/url)