• 0

    posted a message on Need something created for you?

    My trigger is good, it's just i need to add something to make it:

    if player is on team1 spawn unit here

    or

    if player on team 2 spawn unit here

    Just tryingt o do it all in 1 trigger.

    Posted in: Triggers
  • 0

    posted a message on Need something created for you?

    @deathtorn: Go

    Lol no. Thats just what I came up with. I want it to spawn for the player if they have enough. If they don't have enough i don't want it to spawn. But if the triggering unit remains in the reigon I want the trigger to keep fireing.

    Posted in: Triggers
  • 0

    posted a message on Need something created for you?

    Maybe it's smarter of me to post this whil I work on it, i have a bad habit of going in the wrong direction for long periods of time before figuring something out.

    This is basically a simply spawning trigger. When player on team enters reigon, subtract # minerals from them and spawn the unit at reigon for player.

    The first half of the trigger works great. The second half will spawn the unit for the enemy team if the triggering player does not have enough resources. I think there is a better way of setting this up than what I have.

    Posted in: Triggers
  • 0

    posted a message on Need something created for you?

    Yeah for the most part the income system is working good. Working on some other triggers now, if i have issues which I promise I will, I will post here. :)

    Posted in: Triggers
  • 0

    posted a message on Need something created for you?

    That's more of what I'm looking for. I thought I would be able to incorprate the other trigger into this one, however im haveing some issues.

    Melee Initialization
        Events
            Timer - Every 40.0 seconds of Real Time
        Local Variables
            Player 7 Resources = 0 <Integer>
            Player 8 Resources = 0 <Integer>
        Conditions
        Actions
            General - While (Conditions) are true, do (Actions)
                Conditions
                    Game In Session == true
                Actions
                    General - If (Conditions) then do multiple (Actions)
                        If Then Else
                            General - Else if (Conditions) then do (Actions)
                                Else If
                                    (Number of players in Team 1) == 1
                                Then
                                    Player Group - Pick each player in Team 1 and do (Actions)
                                        Actions
                                            Variable - Set Player 7 Resources = (Player 7 Minerals)
                                            Player - Modify player (Picked player) Minerals: Add (Player 7 Resources / 1)
                                            Player - Modify player 7 Minerals: Subtract Player 7 Resources
                            General - Else if (Conditions) then do (Actions)
                                Else If
                                    (Number of players in Team 1) == 2
                                Then
                                    Player Group - Pick each player in Team 1 and do (Actions)
                                        Actions
                                            Variable - Set Player 7 Resources = (Player 7 Minerals)
                                            Player - Modify player (Picked player) Minerals: Add (Player 7 Resources / 2)
                                            Player - Modify player 7 Minerals: Subtract Player 7 Resources
                            General - Else if (Conditions) then do (Actions)
                                Else If
                                    (Number of players in Team 1) == 3
                                Then
                                    Player Group - Pick each player in Team 1 and do (Actions)
                                        Actions
                                            Variable - Set Player 7 Resources = (Player 7 Minerals)
                                            Player - Modify player (Picked player) Minerals: Add (Player 7 Resources / 3)
                                            Player - Modify player 7 Minerals: Subtract Player 7 Resources
                    General - If (Conditions) then do multiple (Actions)
                        If Then Else
                            General - Else if (Conditions) then do (Actions)
                                Else If
                                    (Number of players in Team 2) == 1
                                Then
                                    Player Group - Pick each player in Team 2 and do (Actions)
                                        Actions
                                            Variable - Set Player 8 Resources = (Player 8 Minerals)
                                            Player - Modify player (Picked player) Minerals: Add (Player 8 Resources / 1)
                                            Player - Modify player 8 Minerals: Subtract Player 8 Resources
                            General - Else if (Conditions) then do (Actions)
                                Else If
                                    (Number of players in Team 2) == 2
                                Then
                                    Player Group - Pick each player in Team 2 and do (Actions)
                                        Actions
                                            Variable - Set Player 8 Resources = (Player 8 Minerals)
                                            Player - Modify player (Picked player) Minerals: Add (Player 8 Resources / 2)
                                            Player - Modify player 8 Minerals: Subtract Player 8 Resources
                            General - Else if (Conditions) then do (Actions)
                                Else If
                                    (Number of players in Team 2) == 3
                                Then
                                    Player Group - Pick each player in Team 2 and do (Actions)
                                        Actions
                                            Variable - Set Player 8 Resources = (Player 8 Minerals)
                                            Player - Modify player (Picked player) Minerals: Add (Player 8 Resources / 3)
                                            Player - Modify player 8 Minerals: Subtract Player 8 Resources
    

    I'm getting a red diamond on the first three General conditions. I'd attach it in a map for you but i can't seem to find a attach button here on the forum. Sorry im noob here :/ it'll only get better - Promise!

    - Edit 1
    Look at that i figured it out. So it's uploaded, and i noticed when copying the trigger and variables into the new blank map that it does not have any issues, unlike inside of my map. When the trigger is called, it throws the error "trigger took too long".

    - Edit 2
    I discovered the trigger debugger. It's not showing any failures with the trigger. So I played the map out for a bit and i'm noticing that I gain minerals as player 1 randomly, while player 7, the ally AI, is killing units. So it's not waiting for each 40 seconds to pass to fire the trigger. Seems like it's firing off after the first time and all kills from that point on are divided regardless of the time.

    - Edit 3
    I think it is working correctly now. I loaded the origional trigger you attached and noticed I removed a wait action. I added that back in and it is giving me resources every "round", so that working very good, I will get a few people in my map today and test to see if the resources are split correctly.

    I appreciate all the help!

    Posted in: Triggers
  • 0

    posted a message on Need something created for you?

    <<quote 284037>>

    @shadov3x: Go

    Well, you don't need to worry about giving resources to missing players, because who is going to spend them?<</quote>>

    Right, but if the game somehow ends up 3v1, that 1 player is only going to get the same amount as one of the other teams players, assuming their getting the same amount of kills. I guess to better explain it, I don't want resources going to waste for a team, it dramatically offsets the balance in my map. So if it is 3v1, that 1player should be getting 3 players worth of minerals.

    Posted in: Triggers
  • 0

    posted a message on Need something created for you?

    Ok, it seems the resource trigger works great, only how do it get it to ignore dead/missing players? so if someone drops or if it's a 1v1 instead of a 3v3, the resources are not being given to dead/missing players?

    Posted in: Triggers
  • 0

    posted a message on Need something created for you?

    I figured it out, and the resource trigger is working as well.

    Posted in: Triggers
  • 0

    posted a message on Need something created for you?

    Strange, i've tested the trigger out twice in my map, and for somereason after two or three minutes the trigger does not seem to run anymore. Any ideas?

    Also, another trigger problem i ran into is this, I have a "Shop" that heros can buy upgraded armor and attack from, when the hero unit enters a specified distance, then building becomes his, until it leaves or another unit enters the triggering distance. Does not seem to be working for me at all. Here is my trigger I created this morning.

    Events Unit - (Triggering unit) Enters a distance of 6.0 from Planetary Fortress [9.50, 28.50] Local Variables Conditions ((Unit type of (Triggering unit)) is Hero) == true And Conditions (Owner of (Triggering unit)) == 1 And Conditions Owner of Planetary Fortress [9.50, 28.50]) == 7 Actions Unit - Change ownership of Planetary Fortress [9.50, 28.50] to player (Triggering player) and Change Color

    Posted in: Triggers
  • 0

    posted a message on Need something created for you?

    Thanks for the trigger! :) I don't quite understand veriables with integers yet. I keep hearing their easy and very helpful. Half of the time when i look at them they make sense, the other half they don't make any sense to me. Im positive I'll be bak with another request.

    Posted in: Triggers
  • 0

    posted a message on [Triggers, Video] Basic Bank Saving

    Lol, Love the tutorials OneTwoSC!

    Avatar is good too :)

    Posted in: Tutorials
  • 0

    posted a message on Need something created for you?

    I've got a quick request. I don't think it's too dificult, but ive run out of brain bower for tonight.

    I want a trigger that will give all the avaliable minerals that Player 1 has, divided amungst player 2, player 3, and player4, evenly, every 60 seconds.

    Possiable?

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