Ambrosia Garden Archive
    • How to make a mission available once?


      I am new to plug-in development. I am using Schlemta-V for missions on my first plug and I was wondering how to tell if your missions are available only once. Thanks

      ------------------
      Write your complaints here: O
      Please don't write out of the space.

    • Use CompBitSet to set a mission bit. Set AvailBitClear to the same value, and the mission will be available once.

    • Quote

      Originally posted by Blackdog:
      Use CompBitSet to set a mission bit. Set AvailBitClear to the same value, and the mission will be available once.

      Thanks, I'll try.

      ------------------
      Write your complaints here: O
      Please don't write out of the space.

    • Quote

      Use CompBitSet to set a mission bit. Set AvailBitClear to the same value, and the mission will be available once.

      Slight clarification, it'll be available until the player accepts and completes the mission, in other words they can refuse it as many times as they wish. For it to be available only 1 time then you have to set the RefuseBit field to the AvailBitClear field value. Unfortunetly the RefuseBit field doesn't work. There are work-arounds but they aren't 100% effective (I haven't found one that is anyways, there's probably one that I haven't found). If you want don't want it to be available if they fail it the first time then set the FailBit field value to the same value as the AvailBitClear field.

      ------------------
      Phoenix
      (url="http://"http://commonwealth.cjb.net")EVO : Nemesis(/url)

    • Or if you want the mission to be refused as many times as the player wants but that if he fails, he can't start it again, you can set StartBitSet (if you use EVO) to a number and AvailBitClear to the same number. This way, when he accepts the mission, he won't be allowed to reask for it.

      ------------------
      M'enfin!
      Y'a personne qui parle français ici?