• 0

    posted a message on Unit Enters/Leaves Range Of Unit not allowing a variable

    @SouLCarveRR: Go

    Thanks, thought my game was just broken or something. I've already solved the problem though, thanks anyway.

    Posted in: Triggers
  • 0

    posted a message on Unit Enters/Leaves Range Of Unit not allowing a variable

    Since that wasn't working, I tried a different approach. Since it wasn't liking the variable, instead of creating and destroying the missile, I put a missile out of sight on the map which, when you hit space, is moved to the position of the unit that's shooting it and told to move in the direction it was fired. When it hits a unit, it hides the missile, creates a new missile and kills it in order to show an explosion.

    Posted in: Triggers
  • 0

    posted a message on Unit Enters/Leaves Range Of Unit not allowing a variable
    @obliviron: I meant 'TriggerAddEventUnitRange(gt_KillEnemy, null, gv_missile, 0.5, true);' is asking for a unit where it says 'gv_missile' so I can't make it accept a unit type there. Reposting the code here. Shoot Events UI - Player 1 presses Space key Down with shift Allow, control Allow, alt Allow Local Variables Conditions Shot Fired == false (Viking (Fighter Mode) [32.00, 16.00] is hidden) == false Actions Unit - Create 1 Missile for player 1 at (Position of Viking (Fighter Mode) [32.00, 16.00]) facing 90.0 degrees (No Options) Variable - Set Missile = (Last created unit) General - Custom Script: TriggerAddEventUnitRange(gt_KillEnemy, null, ... Unit - Order Missile to ( Move targeting ((Position of Missile) offset by 100.0 towards 90.0 degrees)) (Replace Existing Orders) Variable - Set Shot Fired = true Kill Enemy Events Local Variables Conditions ((Triggering unit) is alive) == true (Missile is alive) == true Or Conditions (Unit type of (Triggering unit)) == Brood Lord (Unit type of (Triggering unit)) == Corruptor (Unit type of (Triggering unit)) == Mutalisk Actions Unit - Kill (Triggering unit) Unit - Kill Missile Variable - Set Shot Fired = false Unit Group - Pick each unit in Enemies and do (Actions) Actions Unit - Set (Picked unit) Movement Speed to (((Picked unit) Movement Speed (Current)) + 0.075)
    Posted in: Triggers
  • 0

    posted a message on Unit Enters/Leaves Range Of Unit not allowing a variable

    @obliviron: Go

    I can't make it do 'Unit comes within range of unit type of missile' because that returns a type when it's asking for a unit.

    The trigger is called 'Kill Enemy' so 'gt_KillEnemy' is right, right?

    Shoot Events UI - Player 1 presses Space key Down with shift Allow, control Allow, alt Allow Local Variables Conditions Shot Fired == false (Viking (Fighter Mode) [32.00, 16.00] is hidden) == false Actions Unit - Create 1 Missile for player 1 at (Position of Viking (Fighter Mode) [32.00, 16.00]) facing 90.0 degrees (No Options) Variable - Set Missile = (Last created unit) General - Custom Script: TriggerAddEventUnitRange(gt_KillEnemy, null, ... Unit - Order Missile to ( Move targeting ((Position of Missile) offset by 100.0 towards 90.0 degrees)) (Replace Existing Orders) Variable - Set Shot Fired = true

    Kill Enemy Events Local Variables Conditions ((Triggering unit) is alive) == true (Missile is alive) == true Or Conditions (Unit type of (Triggering unit)) == Brood Lord (Unit type of (Triggering unit)) == Corruptor (Unit type of (Triggering unit)) == Mutalisk Actions Unit - Kill (Triggering unit) Unit - Kill Missile Variable - Set Shot Fired = false Unit Group - Pick each unit in Enemies and do (Actions) Actions Unit - Set (Picked unit) Movement Speed to (((Picked unit) Movement Speed (Current)) + 0.075)

    Not sure how to put single line breaks with this thing.

    @Talon0815: Go

    I tried putting it after setting a unit to 'Missile' and it works sometimes, but it just seems to kill random units in the group after the first few kills.

    Posted in: Triggers
  • 0

    posted a message on Unit Enters/Leaves Range Of Unit not allowing a variable

    I haven't used custom script much, if at all, so I'm not quite sure how to implement what you're suggesting.

    I tried putting in a 'Custom Script' into the 'Initialisation' function with 'TriggerAddEventUnitRange(gt_KillEnemy, null, gv_missile, 0.5, true);' as the script.

    It compiles and runs but it still doesn't seem to do anything I've told it to do in the trigger.

    Posted in: Triggers
  • 0

    posted a message on Unit Enters/Leaves Range Of Unit not allowing a variable

    I'm trying to test if a specific unit enters a range of any unit in a unit group. The unit group is a group of 35 enemies that don't change (unless they die) but the single unit is constantly being created and destroyed, but there is only ever one in the game, so I figured a variable was the way to go. You press space, it creates a unit and then sets that unit to the variable of type 'Unit' with the name 'Missile' and this works perfectly fine.

    My problem is that when I try to put in 'Unit - Any Unit Enters a distance of 0.5 from Missile' it doesn't allow the 'Missile' part, it will only take a value or a function, not a variable. The variable is global and works in the first slot and in all other triggers and actions.

    Can someone explain this to me, direct me to somewhere that explains it or give me a work-around/fix for this?

    Thanks.

    Posted in: Triggers
  • 0

    posted a message on Lack of 'SEA' choice for region

    Wow, you guys are quick. Thanks for the fast response. On a side note, I'm new to SC2Mapster (clearly), how do you do that little reply arrow thing?

    (progammer) example here

    @progammer: Go

    Posted in: General Chat
  • 0

    posted a message on [Official] Forum upgrade suggestions

    A SEA region option in the profile would be good. SEA licenses get the same character code and I've used the same name but it doesn't keep achievements and stuff like that across both servers so I never use my NA character, only my SEA one.

    Posted in: General Chat
  • 0

    posted a message on Lack of 'SEA' choice for region

    Almost 4 weeks and this hasn't happened? Any reason why?

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