Results 1 to 2 of 2

Thread: Dink Engine variables get confused

  1. #1
    Guest

    Red face

    I've come across a bug... or rather WC did, in PQ in which the powerful magic spells are instantly recharged.

    It seems that the global varilables &magic_level and &magic_cost get confused with the variable &magic (as all three have the first 5 letters in common) so that if your &magic is say 18 then &magic_level becomes 18_level and &magic_cost becomes 18_cost.

    When this happens and you arm a new weapon (not magic, arming a new magic resets things properly, though I don't know why) - you get instant (in human time) magic... be it Deus Strike or whatever.

    I can't think of a way around this as I can't guarantee what magic is in which slot (or I'd do a quick change magic to fireball, arm it, change to &cur_magic and re-arm it) - compare_magic doesn't work, of course.

  2. #2
    Lesser Knight SimonK's Avatar
    Join Date
    Aug 2002
    Location
    Sydney, Australia
    Posts
    42

    Post

    Okay... Tyrsis solved this one for me. I had reworked a magic item script into a weapon item script (a scroll) and left if a &magic_cost = 0; command in the disarm of the item. She also pointed out that there is a bug in the Dink Engine in which if a magic item occupies slot number 5 and there is no weapon item in slot number 5 then when a saved game is loaded that magic item is not armed.
    You don't need a brain to talk

Similar Threads

  1. pilgrims quest engine
    By in forum Dink Smallwood HD
    Replies: 1
    Last Post: 05-05-2005, 10:57 PM
  2. scripting engine
    By elite_coder in forum Game development
    Replies: 4
    Last Post: 07-04-2004, 07:42 AM

Bookmarks

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •