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.

Ability/Behaviour Questions (Targeting types and items)

Discussion in 'StarCraft II Modding' started by ZiggyMcjoney, Oct 10, 2010.

  1. ZiggyMcjoney

    ZiggyMcjoney

    Joined:
    May 4, 2008
    Messages:
    109
    Resources:
    1
    Maps:
    1
    Resources:
    1
    Hi guys, I've got a couple of questions to ask.

    1. How would I make a spell such as Defense Matrix be able to target allies? At the moment it just works on the caster.

    2. I've made a couple of items for different units to use. My weapons work perfectly, however my armour is causing me troubles. I made equipping the armour add a Behaviour to the unit wearing it. This Behaviour is pretty much a default Behaviour, except the field "Life Armour Bonus" in 'Behaviour - Modification +' has been altered to 3, with the intention of giving the unit a +3 bonus to armour. However when the unit equips the armour, nothing happens. Anything I could be doing wrong that anyone can notice?

    3. Is there any way to make a weapon that has two attacks have only one attack when it is wielded by a specific unit? I have a Reaper and a Medic and want to give both of them the ability to use a Pistol as a weapon, but I want the Reaper to have two attacks and therefor deal twice the amount of damage that the Medic does with the weapon.

    Thanks for any assistance you can provide!
     
  2. Darkness-4ever

    Darkness-4ever

    Joined:
    Nov 4, 2007
    Messages:
    763
    Resources:
    0
    Resources:
    0
    1. Change the Ability type to Effect - Target and change the Apply Behavior Effect's Target to Target instead of Caster.

    2. Did you set the behavior on the item to Equip+ or Carry+ behavior, if its only on Equip then your unit has to have an inventory, not just a backpack.

    3. Yes, make it an Effect Persistent and 2 Damage effects that deal the same damage. Now add both the Damage Effects to the Periodic Effects of the Persistent Effect and make sure one of those damage Effects has a Validator that checks the unit type that is Casting or Initiating the attack (Caster is essentially the unit that causes the effects) and have your weapon reference this Persistent effect as its Effect.

    3.
     
  3. ZiggyMcjoney

    ZiggyMcjoney

    Joined:
    May 4, 2008
    Messages:
    109
    Resources:
    1
    Maps:
    1
    Resources:
    1
    Thanks for parts 1 and 3, I'll get to work on those and let you know if I have any trouble.

    As far as part 2 goes, the item is set to Equip+ behaviour, and the unit DOES have an inventory and the item is being equipped, so I'm not quite sure why it doesn't work.
     
  4. Darkness-4ever

    Darkness-4ever

    Joined:
    Nov 4, 2007
    Messages:
    763
    Resources:
    0
    Resources:
    0
    Did you make sure that the Unit created for that item references the Item in its data field?
     
  5. ZiggyMcjoney

    ZiggyMcjoney

    Joined:
    May 4, 2008
    Messages:
    109
    Resources:
    1
    Maps:
    1
    Resources:
    1
    Sure did, I even know the behaviour is being applied to the unit as when I took the "Hidden" flag off the Behaviour I could see it in the unit's stats.
     
  6. Darkness-4ever

    Darkness-4ever

    Joined:
    Nov 4, 2007
    Messages:
    763
    Resources:
    0
    Resources:
    0
    Did you leave the Life Armor Multiplier at 1? If it was set to 0 that would explain the armor bonus not taking.
     
  7. ZiggyMcjoney

    ZiggyMcjoney

    Joined:
    May 4, 2008
    Messages:
    109
    Resources:
    1
    Maps:
    1
    Resources:
    1
    Yep, did that too :p

    It's a bit of a confusing problem.
     
  8. Darkness-4ever

    Darkness-4ever

    Joined:
    Nov 4, 2007
    Messages:
    763
    Resources:
    0
    Resources:
    0
    I can't think of much else to help you out, post your map and have it looked at.