• 0

    posted a message on Limit training of a unit to 5

    You can just look at the 'Build Interceptor' ability and copy that for the 'Build X' abilities you want to change. It should be listed under the requirements section.

    But you don't want to do this with triggers, because it would end up being so messy.

    Posted in: Miscellaneous Development
  • 0

    posted a message on ArrayIndexOverFlow?

    Hint: In an array of length 10, the first element has an index of 0 and the last element has an index of 9.

    Posted in: Miscellaneous Development
  • 0

    posted a message on Basic Camera Positioning

    Pan the camera for (Player 1) to (Point) over (0.0) with (Existing Velocity)% velocity and (0)% deceleration and (Do Not) use smart panning.

    It's found in Camera --> Pan Camera

    Posted in: Miscellaneous Development
  • 0

    posted a message on 8 Way Movement

    I'm not too sure what's causing the problem, but part of it is that you're making this too complicated.

    If it was simpler, it would look something like this:

    Global Variables: Buttons_Down (int), Speed (int), Strafe (int), FacingUp (int), FacingRight (int)

    Event:
         Player presses down W/S
    Action:
         Buttons_Down = Buttons_Down + 1
         Speed = +5/-5 (or some number)
         FacingUp = +1/-1

    Event:
         Player presses down A/D
    Action:
         Buttons_Down = Buttons_Down + 1
         Strafe = +5/-5 (or some number)
         FacingRight = +1/-1

    Event:
         Player presses up on W/A/S/D
    Action:
         Buttons_Down = Buttons_Down - 1
         Speed/Strafe = 0
         FacingUp/FacingRight = 0

    Event:
         Every 0.05 seconds of Game Time
    Action:
         Order (Unit) to Move targeting relative point near (Position of (Unit)) offset by (Speed * 0.707^(Buttons_Down-1) + Strafe * 0.707^(Buttons_Down-1))
    towards ( (90 * gv_facingUp)*0.5^(ButtonsDown-1) + (90 - 90 * gv_facingRight)*0.5^(ButtonsDown-1) ) degrees.

    I *think* the math works, but I'll need to doublecheck the numbers...
    Okay, numbers look good!

    Posted in: Miscellaneous Development
  • 0

    posted a message on Attack Ground

    @Deltafox:

    It sounds like it would work, but I'm trying to get this to work without using triggers - I want to make this exclusively using the data editor.

    I got it to the point where it attacks a given point (without the use of a dummy unit btw), I just can't get it to attack that point more than once.

    Posted in: Miscellaneous Development
  • 0

    posted a message on custom script coding

    @ezbeats:

    There's a list of all the valid keywords here: http://paste.sc2mapster.com/1979/

    There's one without comments here: http://paste.sc2mapster.com/1985/

    Posted in: Miscellaneous Development
  • 0

    posted a message on Recycle Count?

    Anyone know what Recycle Count does?

    It's under
    Data --> Effects --> [Effect Name] (Damage) --> Recycle Count

    I tried to change it from 0 to +/- 1, and it froze SC2...

    Posted in: Miscellaneous Development
  • 0

    posted a message on how do you make "bounty" rewards?

    Try this:

    Data --> Units --> [unit name here] --> (none) Kill Resource

    Changing that should give you X minerals for killing a certain unit.

    Another option is to use the triggers something to the effect of:
    Whenever (Player 1) kills (Unit) --> Modify Resources of (Player 1) +X Minerals/Gas
    but that's not as efficient...

    Hope that helps.

    Posted in: Miscellaneous Development
  • 0

    posted a message on Attack Ground

    Well, here's where I am with this:

    I have an ability that deals 60 damage (+ splash) to any location within 9 range of a Siege Tank.

    Problems:
    1. I can't get the tank to face the direction of the attack - I'm looking at some other abilities (Ghost snipe, etc) to see if there's an easy way to do this.
    2. I can't get it to keep attacking the ground. I don't have much of an idea of where to go with this though...

    Thx

    EDIT: I've managed to set it up so that it's in autocast mode and has a 3s cooldown, but #2 is still a problem...

    Posted in: Miscellaneous Development
  • 0

    posted a message on Attack Ground

    I'm having the same problem.

    I've tried changing all of the weapon settings (including damage, persistent, etc) to Target Point, instead of Target Unit, and I still can't get my unit to attack that point.

    The only other option I can think of is turning the attack into an ability, and casting that ability every time I want to fire...

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