• 0

    posted a message on Creating and removing Pathing Blockers using triggers?

    If the lava's position does not change, you can put a wall of invisible Supply Depots around the lava, and you can use the Issue Order action to lower/raise the Supply Depots as lava is lowered/raised.

    Posted in: Triggers
  • 0

    posted a message on Saving hero stats and items and porting to another map

    Sorry, I meant the person who uploaded the map to the game server. The same map uploader/creator would have to publish both map. If one person published MapA and another published MapB, then it would not work.

    Zantai uploaded and created ZHRPG. He has separate maps for each episode, but he can load the data that a player got from his first episode to his second episode.

    Posted in: Triggers
  • 0

    posted a message on Requiring position for ability
    Quote from illidans911: Go

    Is there a way to order a unit to cast an abillity with no target? (meaning the player will have to choose a target w/ cursor)

    An example of an ability with no target is is Stimpack.
    An example of an ability with a target is Stalker - Blink.

    There is a contradiction in your question. To issue an order with a target, click on the Green "(" before Ability Command in the Trigger Editor, and select "Order with target"

    Unit - Order (Triggering unit) to (Ability Command) (Replace Existing Orders)

    Posted in: Triggers
  • 0

    posted a message on Saving hero stats and items and porting to another map

    Bank files are shared in between maps if hosted by the same person. MapB can use the bank files which a player has achieved using MapA

    Posted in: Triggers
  • 0

    posted a message on Create Random Unit?

    Make sure every variable from RandomUnitType[0] to RandomUnitType[39] exists and is linked to a Unit Type

    Posted in: Triggers
  • 0

    posted a message on Random WASD not working

    I'm going to look at it later, but right now u can change ur variable array set to something like this:

    Pick each integer between 1 and 11
    Set Var[Picked Integer] == Var[PickedInteger + 1]

    Posted in: Triggers
  • 0

    posted a message on Custom Scripting and leaks

    Anything you can do in the GUI, u can do in custom scripting.

    Posted in: Triggers
  • 0

    posted a message on Changing a unit's model through triggers

    As far as I know, it is impossible to change a unit's model through triggers. If you look at the Data Editor, Supply Depot and Supply Depot (Lowered) are separate units. Same thing with Brood Lords and Corruptors, Viking ground and Viking air. I have never played Cortex, but they probably do it by creating a new unit at the point of the old unit.

    Posted in: Triggers
  • 0

    posted a message on [Triggers] Implementing a Physics Engine

    This is a great tutorial and I think more people should read it!

    Posted in: Tutorials
  • 0

    posted a message on Victory without Reveal

    Easiest way is this action:

    Player Group - Pick each player in (All players) and do (Actions)
    Actions
    Melee - Enable Victory melee option for player (Picked player)

    Posted in: Triggers
  • 0

    posted a message on Scale ability - unit health as input.

    Completely untested, but should be working.

    Scale
        Options: Action
        Return Type: (None)
        Parameters
            Radius = 0.0 <Real>
        Grammar Text: Scale(Radius)
        Hint Text: (None)
        Custom Script Code
        Local Variables
            HP = 0.0 <Real>
            Number of Units = 0 <Integer>
            Scale = 0 <Integer>
        Actions
            Unit Group - Pick each unit in (Any units in (Region((Point((X of (Position of (Triggering unit))), (Y of (Position of (Triggering unit))))), Radius)) owned by player Any Player matching Excluded: Missile, Dead, Hidden, with at most Any Amount) and do (Actions)
                Actions
                    Variable - Set HP = (HP + ((Picked unit) Life (Current)))
                    Variable - Set Number of Units = (Number of Units + 1)
            Variable - Set Scale = ((Integer(HP)) / Number of Units)
            Unit Group - Pick each unit in (Any units in (Region((Point((X of (Position of (Triggering unit))), (Y of (Position of (Triggering unit))))), Radius)) owned by player Any Player matching Excluded: Missile, Dead, Hidden, with at most Any Amount) and do (Actions)
                Actions
                    Unit - Set (Picked unit) Life to (Real(Scale))
    
    Posted in: Triggers
  • 0

    posted a message on Percentage Spawning

    Here you go!

    Posted in: Triggers
  • 0

    posted a message on Need Trigger man for Arena battle.

    DotA has around a 50 game learning curve, but it's still one of the best maps ever, spawning multiple sequels having its own engine and game.

    Anyways, I am sort of interested in triggering for you. PM'd.

    Posted in: Team Recruitment
  • 0

    posted a message on Get PlayerRace?
    Quote from bookerTier: Go

    @Kueken531: Go

    Well i made this one

            General - If (Conditions) then do (Actions) else do (Actions)
                If
                    And
                        Conditions
                            (Race of player 1) == Terran
                            (Race of player 2) == Terran
                Then
                    UI - Show game UI for (All players)
                    UI - Display "Your Enemy Is Terran" for (All players) to Subtitle area
                Else
            General - If (Conditions) then do (Actions) else do (Actions)
                If
                    And
                        Conditions
                            (Race of player 1) == Terran
                            (Race of player 2) == Protoss
                Then
                    UI - Show game UI for (All players)
                    UI - Display "Your Enemy Is Protoss" for (All players) to Subtitle area
                Else
            General - If (Conditions) then do (Actions) else do (Actions)
                If
                    And
                        Conditions
                            (Race of player 1) == Terran
                            (Race of player 2) == Zerg
                Then
                    UI - Show game UI for (All players)
                    UI - Display "Your Enemy Is Zerg" for (All players) to Subtitle area
                Else
    

    but no messages displayed

    Looking at your code, it seems that (Race of Player 1) == Terran is completely unnecessary. Try removing that and testing it again. The "And" should also be removed as it is And on default.

    All I can think of is that you are testing it locally, and Player 2 is Neutral race by default

    Posted in: Triggers
  • 0

    posted a message on Looking for US releaser (The Last Stand)

    K received it. There are some issues about the map and I emailed you about it.

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