• 0

    posted a message on Any predator animations there?

    At the moment i've started a project which is going to require a lot of work around the predator unit. So, have any custom animations for it ever been made? And, if possible, i'd request an ability channel animation (my idea is that it keeps its tail like it's plugged into something ahead, but any other would be much appreciated as well).

    Posted in: Requests
  • 0

    posted a message on Cross-effect... communication?

    Actually, it seems to me that a human eye just can't spot where exactly the projectile is fired from, at least in my case, lol. Guess i've created a problem from nothing again...

    Posted in: Data
  • 0

    posted a message on Cross-effect... communication?

    @FunkyUserName:

    If only i knew how to add this delay...

    Posted in: Data
  • 0

    posted a message on Cross-effect... communication?

    @SoulFilcher:

    Ok, but how exactly should i exclude it?
    P.S. Looks like pretty pointless work, i'd better find a point to attach both effects to.

    Posted in: Data
  • 0

    posted a message on Cross-effect... communication?

    @FunkyUserName:

    Marauder doesn't launch both grenades simultaneously. In my case i can either use two different search effects, but this will lead to the problem of separating targets; or use one, but then both attcks will be launched from the same attachment point.

    Posted in: Data
  • 0

    posted a message on Cross-effect... communication?

    I've recently come up with an idea for an ability, but it has one problem. Basically, once activated, the ability should use a search effect to choose 2 (or whatever number you like, >1) targets and then launch 2 separate effects on them. The problem is that the effects should somehow communicate not to get launched at the same target. The behavour-validator solution seems too risky as both effects are started simultaneously. Is this possible at all?

    Edit: Oh wait, guess i've just asked a very stupid thing, since a search effect automatically launches a separate effect for each unit in the area >_<
    but ok, then the next question is - is there any way for the unit's actor to distinguish these two effects, and, let's say, launch their visual parts from different arms?

    Posted in: Data
  • 0

    posted a message on How do you set a Unit's Attribute ei. Armored, Bio

    @merrillphish:

    Yep, guess it would me much easier through dummy behaviours and validators. I mean the "behaviour count" vaidators, used by the ability to check the target unit.

    Posted in: Triggers
  • 0

    posted a message on [Solved] Game end action won't work

    UPD.

    I have no idea how, but it began to work. 0____o  Not sure what change exactly did the trick, though.

    Posted in: Triggers
  • 0

    posted a message on [Solved] Game end action won't work

    @BasharTeg: Go

    This only affects the fog of war and is not the same thing as using a Revealer over a region.

    And it does just what I need. Well, in my case it doesn't. But i don't need a full revealer here, the main building is visible by default. Really, i know what i'm doing.

    It appears as if your trigger may be having problems as a result of the Wait function. Try disabling this function to see if it's the cause.

    Debug shows the trigger gets stuck before this.

    Another problem may be that the game might be unable to store the unit's identifier after its death and after the Wait time. To get around this, set a variable to something that indicates which team has won before your Wait function. For example, WinningTeam (local integer) = 1 for team 1's victory. Then reference that variable later when deciding what to do with each team at the end of the game.

    Very much doubt this. As i said, the unit's death time is -1. But will try this as well.

    Also, I'm not really sure what the purpose of restoring and unlocking the camera is since, by that point, all players should have been given either victory or defeat messages. O.o

    Because some people enjoy resuming the game after their victory. Maybe they'll want to look for eastereggs or whatever.

    Posted in: Triggers
  • 0

    posted a message on [Solved] Game end action won't work

    Buuuuump? Seriously, does anyone have an idea what's going on?

    Posted in: Triggers
  • 0

    posted a message on [Solved] Game end action won't work

    @hobbidude: Go

    Because 1). Function will also include AI players which i don't need; 2). Idk how will the function work in case if host desides to use autobalance. Anyway, i tried the fuction too - didn't work either.

    Posted in: Triggers
  • 0

    posted a message on [Solved] Game end action won't work

    @DeltaV: Go

    The only other thing I can think of right now is that your code could be out of sync with your GUI trigger (Ctrl+f11 to check the actual code). I've heard of this happening to someone before.

    Even if so, i don't have an idea how the right script would look like. Damn. Will try to learn something about galaxy scripting, but this all is extremely weird.

    Edit: tried removing everything before 5m... so, the winners get the endgame screen, the losers don't 0_o

    Posted in: Triggers
  • 0

    posted a message on [Solved] Game end action won't work

    @DeltaV: Go

    So if you disable the "Visibility - Change visibility" actions, does that make the rest of the trigger work?

    No :'(

    Did you try displaying a text message after the 5s wait to see if the trigger reaches that point? Or putting a breakpoint in and watching the trigger run in the trigger debugging window? (Type 'TrigDebug' in chat in-game)

    Yep, and it doesn't reach that point.

    Posted in: Triggers
  • 0

    posted a message on [Solved] Game end action won't work

    @DeltaV: Go

    Are you sure there are players in each player group of "Players by teams[]"?

    Yep, double checked it. Lots of triggers use this variable before the endgame, and they all work correctly.

    You said you marked exactly where the trigger stops working... where was that?

    There is a comment at the end of the line. Scroll it to the right.

    BTW, don't you need to modify and save the banks BEFORE ending the game for all players?

    Dunno, i very much doubt players can leave so rapidly that their banks won't be saved. Unless the player is deleted from game by this action, but as far as i know he isn't.

    Posted in: Triggers
  • 0

    posted a message on [Solved] Game end action won't work
    Victory/defeat
        Events
            Unit - Any Unit takes Fatal or Non-Fatal Any damage (from Any effects)
        Local Variables
        Conditions
            Or
                Conditions
                    (Triggering unit) == Command Bio-Dome [10.00, 94.00]
                    (Triggering unit) == Command Bio-Dome [94.00, 10.00]
            ((Triggering unit) Life (Current)) <= 8.0
        Actions
            Trigger - Turn (Current trigger) Off
            Player Group - Pick each player in (All players) and do (Actions)
                Actions
                    Unit - Pause Heroes[(Picked player)]
                    Camera - Save the current camera settings for player (Picked player)
                    Camera - Lock camera input for player (Picked player)
                    General - If (Conditions) then do (Actions) else do (Actions)
                        If
                            (Triggering unit) == Command Bio-Dome [10.00, 94.00]
                        Then
                            Camera - Apply Camera 001 for player (Picked player) over 2.0 seconds with Existing Velocity% initial velocity, 10.0% deceleration, and Include Target  // This one works
                            Visibility - Change visibility for player (Picked player) to Explored within Base 1 and Do Not check cliff level  // And this doesn't :(
                        Else
                            Camera - Apply Camera 002 for player (Picked player) over 2.0 seconds with Existing Velocity% initial velocity, 10.0% deceleration, and Include Target
                            Visibility - Change visibility for player (Picked player) to Explored within Base 2 and Do Not check cliff level
            General - Wait 5.0 Game Time seconds
            General - If (Conditions) then do (Actions) else do (Actions)
                If
                    (Triggering unit) == Command Bio-Dome [10.00, 94.00]
                Then
                    Player Group - Pick each player in Players by teams[2] and do (Actions)
                        Actions
                            Game - End game in Victory for player (Picked player) (Show dialogs, Show score screen)
                            Bank - Store integer ((Load "wins" of section "stats" from bank Bank[(Picked player)] as integer value) + 1) as "wins" of section "stats" in bank Bank[(Picked player)]
                            Add XP((Picked player), 100)
                    Player Group - Pick each player in Players by teams[1] and do (Actions)
                        Actions
                            Game - End game in Defeat for player (Picked player) (Show dialogs, Show score screen)
                            Bank - Store integer ((Load "loses" of section "stats" from bank Bank[(Picked player)] as integer value) + 1) as "loses" of section "stats" in bank Bank[(Picked player)]
                Else
                    Player Group - Pick each player in Players by teams[1] and do (Actions)
                        Actions
                            Game - End game in Victory for player (Picked player) (Show dialogs, Show score screen)
                            Bank - Store integer ((Load "wins" of section "stats" from bank Bank[(Picked player)] as integer value) + 1) as "wins" of section "stats" in bank Bank[(Picked player)]
                            Add XP((Picked player), 100)
                    Player Group - Pick each player in Players by teams[2] and do (Actions)
                        Actions
                            Game - End game in Defeat for player (Picked player) (Show dialogs, Show score screen)
                            Bank - Store integer ((Load "loses" of section "stats" from bank Bank[(Picked player)] as integer value) + 1) as "loses" of section "stats" in bank Bank[(Picked player)]
            Player Group - Pick each player in (All players) and do (Actions)
                Actions
                    Camera - Unlock camera input for player (Picked player)
                    Camera - Restore the saved camera settings for player (Picked player) over 2.0 seconds with Existing Velocity% initial velocity and 10.0% deceleration
                    Unit - Unpause Heroes[(Picked player)]
                    Bank - Save bank Bank[(Picked player)]
    

    Sorry for such a useless wall of code, i don't have an idea what to remove.
    Classic victory/defeat trigger here. When a base is destroyed, it stops the game (at least it stops whatever players can command) and forces their cameras to turn to the destroyed base, and then goes the victory/defeat screen... which doesn't show up. I've made some debugging and marked where exactly the trigger stops working, but dunno why it does.
    Before you ask: "Players by teams[]" is an array and has a "Player group" type, "Banks[]" are just banks, that strange event and waiting action is meant to show the last projectiles hitting the unit before its death, that unit type has death time -1 so its data shouldn't be removed, and no errors are popping up. Absolutely no idea what's wrong.

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