Dismiss Notice
60,000 passwords have been reset on July 8, 2019. If you cannot login, read this.

Detect the "real triggering" player?

Discussion in 'World Editor Help Zone' started by CaptainHero, Oct 23, 2014.

  1. CaptainHero

    CaptainHero

    Joined:
    Sep 30, 2012
    Messages:
    197
    Resources:
    1
    Spells:
    1
    Resources:
    1
    So if full shared unit control is on, and i cast with the unit of an ally, he is detected the triggering player, even though i cast-ed it..

    Maybe there is another approach...

    Well in this scenario i want to disable computer players from casting an ability, however the ability should still be available for human players..

    So in this example players can give financial aid, by buying gold crates at the main building, and bring them over to the allied players main building..

    I did this via a dummy summon ability, when cast the triggering player spends gold, and if he has enough money the dummy unit is replaced with a gold crate item.

    PC players obviously have no idea that this ability won't summon them a water elemental, and spam it like crazy..
     
  2. WaterKnight

    WaterKnight

    Joined:
    Aug 18, 2009
    Messages:
    4,035
    Resources:
    5
    Maps:
    1
    Tutorials:
    4
    Resources:
    5
    Why do you have to share control with cpu players? If there is an occasion when the unit should be ordered automatically to cast the ability, then realize this behavior via triggers. Also from your description there is no reason to use 'Water Elemental' as base ability, simply use 'Channel' or anything that has no AI attached.
     
  3. Dr Super Good

    Dr Super Good

    Spell Reviewer

    Joined:
    Jan 18, 2005
    Messages:
    26,134
    Resources:
    3
    Maps:
    1
    Spells:
    2
    Resources:
    3
    In SC2 this is exactly what triggering player does, to the extent that a lot of maps have broken shared control. This means that in SC2 casting an ability of an ally using shared control will return you as the triggering player.

    In WC3 it is limited to the owner of the casting unit, for better or worse.
     
  4. CaptainHero

    CaptainHero

    Joined:
    Sep 30, 2012
    Messages:
    197
    Resources:
    1
    Spells:
    1
    Resources:
    1
    can u have various channel spells inside a spell book?
    if so that might be the solution to my problem
    what other spells don't have an ai attached?
     
  5. Gismo359

    Gismo359

    Joined:
    Jul 14, 2011
    Messages:
    780
    Resources:
    44
    Packs:
    4
    Maps:
    40
    Resources:
    44
    You can change the order string of spells based of of channel and it works, unlike others where it just says you did, without taking effect.
     
  6. CaptainHero

    CaptainHero

    Joined:
    Sep 30, 2012
    Messages:
    197
    Resources:
    1
    Spells:
    1
    Resources:
    1
    well its all good using channel abilities, but i got a problem.

    See in this example i want that the unit is "stopped" from casting "gold crate" when the triggering player hasn't got enough gold, however it seems that "channel" spells can't be stopped.... they just cast it even though i stopped them. And i also "sell" some other items via dummy abilities inside the spell book, that have a cool down, so removing and adding the ability won't solve it then. I mean its really messy to replace spells inside a spell book in order to rest a individual cool down..

    Only checking when the effect triggers, the cool down is then inevitable..