Ambrosia Garden Archive
    • Charges


      With an Item that has spell charges of XX number is there a way to display the remaining number of charges of that spell in the description of the spell?

      ------------------
      Thanks,
      GrahamVH
      graham@warcraftcentral.com
      Coldstone Developer (url="http://"http://www.warcraftcentral.net/legends/main.html")http://www.warcraftc...gends/main.html(/url)

    • Yes, if it's a global. Simply type the name of the global with those &'s in front. I didn't think this would work, either, since there's no dropmenu for globals, but I tried it once and it worked. Good luck!

      ------------------
      "Stiney! Get me a danish!"
      Check out teh 1337 sig: (url="http://"http://img.villagephotos.com/p/2003-10/417243/Ogre_Bobfinal.jpg")Teh 1337 sig(/url)

    • It depends on the item type(equipable or special/various). Either way, create a global, something like gb_wand_charges. Have an event linked to equipping the item that has a conditional. The conditional should check if the global is equal to zero. If it is, it means that it's the first time the item has been equipped. However, it could also be because the item is out of charges. You could solve this by having the item self-destruct when it's charges are spent. Back to the event: If gb_wand_charges=0, then set gb_wand_charges to, let's say 10. Then, have the spell event link subtract 1 from gb_wand_charges. Then put gb_wand_charges in the description of the item(I've tested it. Variables do work in descriptions.) In the spell event link, also have a conditional that checks to see if gb_wand_charges=0. If it's true, have an item wizard that drops the item(could also add a new one that says charges are spent).

      Hope that's not too confusing.

      ------------------
      They say money can't buy happiness, but it's not happiness I want. It's money. -Zippy

    • Or you could try this:
      GB_somethignorother = number of charges (NOTE: choose any old number and set this global to it AND set the charges to it. You don't need to set the number of charges to the global).

      Then: On Cast global = global -1

      Only problem is if you have two of the same item...

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