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
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.
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.
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.
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.
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 ?
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.
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 ?
0
@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
0
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 ?
0
@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 ?
0
@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.
0
@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.
0
@freche: Go
bumps
0
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.
0
@HappyWhaleshark: Go
Sorry, that reply was for walshie02, those are the controls for Diablo2. I havn't managed to get such controls into SC2.
0
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.
0
@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.
0
@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 ?
0
@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.
0
@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.
0
@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.
0
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 ?