• 0

    posted a message on [Solved] Combine text & text from script

    @Anthius: Go

    It was so easy that it was almost embarrassing to post :)

    When setting text variables or anything that has with text like dialog button text or the likes there are a lot of functions, what I was out after was both "Combine Text" and "Convert String to Text". It's possible to run them many times to combine a lot of stuff

    Posted in: Galaxy Scripting
  • 0

    posted a message on [Solved] Combine text & text from script

    Solved

    I'm looking for a way to combine pre-defined text with a string I get from a script.
    Anyone knows how to do this ?

    Posted in: Galaxy Scripting
  • 0

    posted a message on [Library] Item Utility Library

    @ZyphreRZO: Go

    I would like to pick up something from the inventory, like when right clicking an item that is inside the inventory. Is it possible to do with this ?

    Posted in: Trigger Libraries & Scripts
  • 0

    posted a message on Order unit to use inventory item?

    @JTG2003: Go

    I'm trying to do the same thing Pick up & Use item via triggers and have got the same result as JTG2003, with the error that the ability needs a target.

    Probably something wrong with the ability but can't figure out what that could be.

    Posted in: Triggers
  • 0

    posted a message on Apply Camera settings from Data

    @Klishu: Go

    Seems like I can't get it to work, tried the following.
    Adding a global variable with: Name: "Camera" , Type: "Camera Object"

    Then at initialization the following action:
    Variable - Set Camera =("PlayerCam" from the Global data table)

    But when I try to Apply Camera I just get a error saying my variable is 0.

    Posted in: Miscellaneous Development
  • 0

    posted a message on Apply Camera settings from Data

    @freche: Go

    bumps

    Posted in: Miscellaneous Development
  • 0

    posted a message on Apply Camera settings from Data

    Does anyone knows how I apply a camera object I have created in the data editor ?
    I made a duplicate of the default camera in data editor, renamed it to PlayerCam and then changed the settings to what I wanted.
    But I can't figure out how to load those settings. When I check triggers and try "Camera - Apply Camera Object", the PlayerCam isn't there.

    Posted in: Miscellaneous Development
  • 0

    posted a message on Diablo type attack/movement system

    @HappyWhaleshark: Go

    Sorry, that reply was for walshie02, those are the controls for Diablo2. I havn't managed to get such controls into SC2.

    Posted in: Galaxy Scripting
  • 0

    posted a message on Diablo type attack/movement system

    ok, tested a bit.
    Running is with left mouse button, but I tried with holding down left mouse and then click with right on enemies

    if I had a spell to cast like chain lightning bound to right mouse, then the character stopped and cast the spell in that direction, then continue to move towards the mouse.
    if I had a melee attack bound to right mouse then the character would run past.

    I also noted that if I have a melee attack on right button I can run with right and order the character to move close and attack.

    ohh another thing I forgot, holding down shift will force the character to stand still, so shift + left mouse is standing still and using ability bound for left mouse, same for right mouse, this applies for both spells and abilities.

    Posted in: Galaxy Scripting
  • 0

    posted a message on Diablo type attack/movement system

    @walshie02: Go

    Diablo 2 mouse controll

    Clicking left mouse button:
    on terrain, will make the character move to that spot.
    on a hostile unit/player will make the character attack ONCE with the skill assigned to left mouse.
    on a neutral unit will make the character move to that unit and initialize dialog if possible.
    on a friendly player will make the character move to that player and ask for trade.

    Holding down left mouse:
    on terrain will make the character move towards the mouse cursor.
    on a hostile unit/player will make the character attack with the skill assigned to left mouse for as long as the mouse button is pressed.

    Clicking right mouse button:
    on terrain/neutral unit will make the character attack ONCE with the skill assigned to right mouse in that direction.
    on a hostile unit will make the character attack with the skill assigned to right mouse.

    Holding down right mouse:
    on terrain/neutral unit will make the character attack with the skill assigned to right mouse in that direction for as long as the mouse button is pressed.
    on a hostile unit/player will make the character attack with the skill assigned to left mouse for as long as the mouse button is pressed.

    Posted in: Galaxy Scripting
  • 0

    posted a message on [Data + Terrain + Triggers] Question About Wading Effects In water

    @DarkRevenantX: Go

    I'm still new to the editor, but can't you just make a region at the place where the water is, and when entering the region you lower the speed of the unit, and when exiting the region you set it to default again ?

    Posted in: Miscellaneous Development
  • 0

    posted a message on [Trigger] Unit is Clicked, right mouse button.

    @sheldin: Go

    The problem with region is that it makes targeting Air units kinda hard. Since the unit is "standing" a lot more south of where they visually are.

    Posted in: Galaxy Scripting
  • 0

    posted a message on [Trigger] Unit is Clicked, right mouse button.

    @sheldin: Go But how do check if there is a unit where I clicked, when using the "UI mouse click event" ? Preferred without using a region.

    Posted in: Galaxy Scripting
  • 0

    posted a message on [Trigger] Unit is Clicked, right mouse button.

    @sheldin: Go

    Maybe I misunderstand you, but I don't run a Mouse Click event. The event that triggers the trigger, is "Unit Selection - Any Unit is clicked by Player Any Player" However it seems like that it only triggers on left mouse click.

    Posted in: Galaxy Scripting
  • 0

    posted a message on [Trigger] Unit is Clicked, right mouse button.

    I'm running a trigger with the event Unit is Clicked, I have also disabled Cannot be Clicked in the data for the unit. Now I try to assign an attack move when I click on that unit, it works fine if I use the left mouse button but when I try to use the right mouse button nothing happens. Anyone knows how to fix this ?

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