1. Find your way through the deepest dungeon in the 18th Mini Mapping Contest Poll.
    Dismiss Notice
  2. A brave new world lies beyond the seven seas. Join the 34th Modeling Contest today!
    Dismiss Notice
  3. Check out the Staff job openings thread.
    Dismiss Notice
Dismiss Notice
Hive 3 Remoosed BETA - NOW LIVE. Go check it out at BETA Hive Workshop! Post your feedback in this new forum BETA Feedback.
Dismiss Notice
60,000 passwords have been reset on July 8, 2019. If you cannot login, read this.

[Trigger] Purchased spell

Discussion in 'Triggers & Scripts' started by Leods, Mar 3, 2019.

  1. Leods

    Leods

    Joined:
    Dec 16, 2018
    Messages:
    324
    Resources:
    1
    Maps:
    1
    Resources:
    1
    In the editor there is only one spell available in stores, the one of exploration. But nevertheless, I need to create more. When creating an area, I noticed a small problem. Do you know any way to detect the buyer of the skill?
    Since it is not an object, the object buyer does not work. Being a neutral building the channeler, unit of the spell does not detect the player. I would appreciate any help
     
    Last edited: Mar 5, 2019
  2. inspicous

    inspicous

    Joined:
    Feb 27, 2019
    Messages:
    14
    Resources:
    0
    Resources:
    0
    Well, you can sell it as an item and then instantly destroy the item.
    Preferably a book of some kind so it doesn't take an inventory slot in the first place.
    Just my little hackish solution, perhaps someone has something better.
     
  3. Leods

    Leods

    Joined:
    Dec 16, 2018
    Messages:
    324
    Resources:
    1
    Maps:
    1
    Resources:
    1
    Another member for the hive barracks!
    ....................................................................................
    Well, I thought about that.
    But there is a problem anyway.
    The spell should follow certain guidelines.
    1. Purchase of the spell
    2. Selection of the area of effect. This is a problem, since it is impossible to do that with an item.
    3. Reaction of the trigger. The spell, based on rain of chaos, makes fall units for the buyer, which causes that it must invoke a dummy of the buyer's team and give him the spell to use it. For this, I could fix the problem of detection, since I can detect the buyer of the object.
    That is precisely the dilemma. It is fixing a problem, but acquire immediately.
    Thanks you anyway.
     
    Last edited: Mar 5, 2019