• 0

    posted a message on [Help] How do I make my Ammo System multi-instanceable?

    I thought that would work, but it didn't. ...And sorry, I don't know why I didn't explain, anyway...

    The problem is I'm trying to make this all work in 1 trigger instead of trying to make 7 copies. But the problem is I can't get the picked player to work, since all the integers are in arrays of 15. So I'm trying to make array 1 = player 1

    Posted in: Miscellaneous Development
  • 0

    posted a message on [Help] How do I make my Ammo System multi-instanceable?

    I still haven't figured this out, can somebody help?

    Posted in: Miscellaneous Development
  • 0

    posted a message on [Help] How do I make my Ammo System multi-instanceable?

    I have no idea why this isn't working!! If someone could help me with this that would be great!! I'd like to have this trigger all in one, so I don't have to copy this 8 times for each players reload.

    Oh, the 2 variables AttackTrue and AttackInProgress just remove the attack ability for the unit reloading on a separate trigger.

    Events

    Unit - Any Unit is attacked

    Local Variables

    Conditions

    Actions

    Player Group - Pick each player in (All players) and do (Actions)

    Actions

    General - If (Conditions) then do (Actions) else do (Actions)

    If

    MagazineAmmo[(Picked player)] > 0

    AttackTrue[(Picked player)] == false

    Then

    Variable - Set MagazineAmmo[(Picked player)] = (MagazineAmmo[(Picked player)] - 1)

    Else

    General - If (Conditions) then do (Actions) else do (Actions)

    If

    ClipsAmmo[(Picked player)] > 0

    Then

    Variable - Set AttackInProgress[(Picked player)] = true

    UI - Display "Reloading..." for (Player group((Picked player))) to Subtitle area

    Unit - Disable the Attack ability for AmmoUnit[(Picked player)]

    General - Wait 2.0 Game Time seconds

    Variable - Modify MagazineAmmo[(Picked player)]: + 100

    Variable - Modify ClipsAmmo[(Picked player)]: - 1

    Unit - Enable the Attack ability for AmmoUnit[(Picked player)]

    UI - Display "Reloaded!!" for (Player group((Picked player))) to Subtitle area

    Trigger - Stop all instances of RemoveBullet

    Else

    Variable - Set AttackTrue[(Picked player)] = true

    Variable - Set AttackInProgress[(Picked player)] = false

    UI - Display "OUT OF AMMO!!!" for (Player group((Picked player))) to Subtitle area

    Posted in: Miscellaneous Development
  • 0

    posted a message on How do I make leaderboards update the text (variable)

    I'm wondering how to update a leader board every time my marine attacks.

    For example, when my marine attacks, the variable integer "Bullets" gets -1. And how do I make the leaderboard update every time that occurs?

    Events

    Timer - Elapsed time is 0.01 Game Time seconds

    Local Variables

    Conditions

    Actions

    Leaderboard - Create a leaderboard with 3 columns and 2 rows, with the name "Statistics", and using (100%, 100%, 100%) color.

    Variable - Set LeaderboardPlayer[1] = (Last created leaderboard)

    Leaderboard - Turn (Last created leaderboard) minimize button On for (All players)

    Leaderboard - Set (Last created leaderboard) item text at column 1 and row 1 to "ID"

    Leaderboard - Set (Last created leaderboard) item text at column 2 and row 1 to "Clips"

    Leaderboard - Set (Last created leaderboard) item text at column 3 and row 1 to "Bullets in Clip"

    Leaderboard - Set (Last created leaderboard) item text at column 1 and row 2 to (Name of player 1)

    Leaderboard - Set (Last created leaderboard) item text at column 2 and row 2 to (Text(ClipsAmmo[1]))

    Leaderboard - Set (Last created leaderboard) item text at column 3 and row 2 to (Text(MagazineAmmo[1]))

    Variable - Set LeaderBoardBulletsInClip[1] = (Last created leaderboard)

    Leaderboard - Show all leaderboards for (All players)

    Thank you in advance.

    Posted in: Miscellaneous Development
  • 0

    posted a message on Tutorial Request

    I'd like to know how to do some things, if you could give me a step-by-step written tutorial or a map with an example so I can learn from that, Thanks in advance!

    Anyways, some things I'd like to know is:

    How to create custom UI at the top right of the screen with 2 boxes inside a rectangle, the first box will have the text CLIPS at the top of the box and the second box with AMMO at the top.

    Now that the UI is created...

    I'd like to know how to setup a couple of variables... one for CLIPS (for up to 14 players) and AMMO (for up to 14 players)

    Now for the triggers, I'd like to know how to every time this specific hero attacks (per player) the ammo will -1 each time and it'll show on the custom UI (per player) And for every time the ammo reaches 0, it takes 2-3 seconds to reload and when it does the CLIP will -1 and show on the custom UI and reload your ammo to 50

    And how do I make the custom UI update for each player as the ammo and clips get deducted.

    (Every player will only get 1 unit)

    I've been trying for awhile to know how to do this, I could do it on WC3 with resources, but now there's custom UI!!

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