• 0

    posted a message on Changing armor level of units

    @s3rius: Go

    Thank you! I didn't even think of buffs. Having 0 +1 is fine for my purpose. I still have the warcraft 3 mindset, having to do everything the stupid way.

    Those upgrades were very frustrating, but like you said - it probably is because it was neutral hostile. That didn't cross my mind at all.

    Got the triggers working now, thanks to you.

    Posted in: Data
  • 0

    posted a message on Changing armor level of units

    I'm looking for a way to change the amount of armor a unit has through triggers. You can use "set property" to change life, shields, movement speed etc. But not armor.

    So it looks like I need to make an upgrade to do it.

    I don't need any off the crap listed here: http://forums.sc2mapster.com/resources/tutorials/1370-data-accumulative-and-multiple-upgrade-with-queue/

    I just need to add 1 armor to every unit, for a single player. It looks like you have to manually add every unit to the list of object values. I hope to god there is a better way to do it, but here is what I have for one zergling: http://radleygh.com/images/SC2Editor_2010-259-17-50-16-54.png

    I set "Max Level" to 255, and added "Zergling" to the 'Affected Unit Array' ( http://radleygh.com/images/SC2Editor_2010-259-17-50-49-46.png )

    Also removed Zergling from the affected unit array for zerg ground armors/carapace level 1/2/3. The only armor-related upgrade he has is my custom one.

    Now, I am using these two actions in the trigger editor to add a level:

    Tech Tree - Set Armor (Generic) upgrade level to 2 for player 15 Tech Tree - Add 1 to Armor (Generic) upgrade for player 15

    Neither of these change their armor - either in tooltip or reducing actual damage done. There must be another option I missed. I looked through that previously linked armor tutorial, but it was filled with all sorts of non-upgrade related crap and I couldn't find anything of use.

    Posted in: Data
  • 0

    posted a message on Show damage / speed / range of tower in tooltip

    I'm trying to show the damage of a tower in the tooltip, without writing it in manually. The only thing I could find similar to it was the ghost's upgrade: <d ref="Upgrade,GhostMoebiusReactor,EffectArray[0].Value"/>

    I took a screenshot, the 0's on the left are the actual formula's result, obviously giving an error because they should say 5. On the right is the formula I used to show the damage. What should I do?

    http://radleygh.com/images/chrome_2010-258-08-23-49-70.png http://radleygh.com/images/chrome_2010-258-08-31-48-98.png

    I turned on "Show raw data" to find the object ID's, and tried a large combination of text. But I can't get it to show up. It's probably simple, but I can't figure it out. I am not sure what I am doing wrong.

    http://radleygh.com/images/SC2Editor_2010-258-08-41-00-78.png

    Here is the code from the tooltip:

    Standard issue human machine gun turret.

    Damage: Effects,AutoTurret2,CEffectDamage_Amount Range: AutoTurret2,CWeapon_Range Speed: Weapons,AutoTurret2,CWeapon_Period

    AutoTurret2,CWeapon_Period (AutoTurret2,CWeapon_Period) AutoTurret2,CWeapon_Period.Value (AutoTurret2,CWeapon_Period.Value) Weapon,AutoTurret2,CWeapon_Period.Value (Weapon,AutoTurret2,CWeapon_Period.Value) Weapon,AutoTurret2,CWeapon_Period[0].Value (Weapons,AutoTurret2,CWeapon_Period[0].Value) Weapon,AutoTurret2,CWeapon_Period[0] (Weapons,AutoTurret2,CWeapon_Period[0])

    Posted in: Data
  • 0

    posted a message on Disabling Mouse Wheel Zoom

    Camera - Lock camera input for player, This will also disable keyboard and screen scrolling though, but for a 3rd person view you probably don't want those features anyway.

    Posted in: Miscellaneous Development
  • 0

    posted a message on How do you define constants in GUI?
    Quote from Slistak: Go

    how do you define constants to be used in several triggers within the gui? thanks!

    A constant is a variable that doesn't change, used for things like Pi which are used as read-only and have no reason to be modified. To get this, just check the "Constant" box like Ultimaswc3 suggested.

    It sounds like you are looking for global variables, which are variables that carry the same information through any trigger. To make a global variable, that is, not one listed under "Events" then "Local Variables". You need to right-click in the area that shows all of the triggers and go to New > Variable (Ctrl+B).

    Global Variable with Constant checked.

    Posted in: Miscellaneous Development
  • 0

    posted a message on Formatting Text for use in a Dialog

    I noticed you can format text in the editor with an html-like format (I guess it's just their own XML, which I've seen alot here).

    An example is, you apply a preset style and if you view raw data you can see: <s val="StandardButton">Test</s>

    Or you can change the color <c val="00FF00">Test</c>

    Does anyone know where to find more of these tags? I am especially interested in a tag to center text.

    Posted in: Miscellaneous Development
  • 0

    posted a message on Attack Ground

    I can't find any way to make a siege tank attack ground. In warcraft 3, siege units could "Attack Ground" which gives you a targetting cursor and would let you constantly shoot the ground there which was effective with splash damage.

    You could effectively use this to kill ghosts without a revealer.

    But how can I add this?

    Posted in: Miscellaneous Development
  • To post a comment, please or register a new account.