(Keeps Hive Alive)
Go Back   The Hive Workshop - A Warcraft III Modding Site > Warcraft III Modding > World Editor Help Zone

World Editor Help Zone Need help with Blizzard's World Editor? Ask general questions about its features and use in this forum. README!

Reply
 
LinkBack Thread Tools Display Modes
Old 11-30-2008, 05:40 PM   #1 (permalink)
 
GodsHand's Avatar

Happy Holidays!
 
Join Date: Jan 2007
Posts: 125

GodsHand has little to show at this moment (10)GodsHand has little to show at this moment (10)


Question Left and Right Clicking

Is there any way to detect right/left clicking and where you clicked? For example, you LEFT click to move a unit to the position you left clicked, and you RIGHT click to make the unit instantly cast a spell where you right clicked. or vice versa. is there anyway i could do this?
__________________
Can't come up with a catchy signature yet...
GodsHand is offline   Reply With Quote
Old 11-30-2008, 05:43 PM   #2 (permalink)
 
DarkAngelAzazel's Avatar

Envoy of the Apocalypse
 
Join Date: Sep 2008
Posts: 412

DarkAngelAzazel has little to show at this moment (36)DarkAngelAzazel has little to show at this moment (36)DarkAngelAzazel has little to show at this moment (36)DarkAngelAzazel has little to show at this moment (36)


Mh there is the event "unit getting order targeting point" (something like this)

Maybe you can do something with that.

Something like ( I am not sure whether the condition exists..)

Event: Unit getting order targeting point
Condition: Order = move
Action: Cast spell
__________________
"Two things are infinite: the universe and human stupidity; and I'm not sure about the universe"

Quote from Albert Einstein
DarkAngelAzazel is offline   Reply With Quote
Old 11-30-2008, 06:12 PM   #3 (permalink)
 
GodsHand's Avatar

Happy Holidays!
 
Join Date: Jan 2007
Posts: 125

GodsHand has little to show at this moment (10)GodsHand has little to show at this moment (10)


nah, no action exists (maybe in WEU) idk.
but there is and event-unit issued order targeting a point
this works but how would i detect when a player left clicks on a point/unit now? I need to be able to detect right and left clicks.


right now i have it so i can always detect a left click and where you left clicked. but it dissables the unit from moving, not allowing me to detect right clicks!
__________________
Can't come up with a catchy signature yet...
GodsHand is offline   Reply With Quote
Old 11-30-2008, 06:17 PM   #4 (permalink)
Spell and Map Moderator
 
Dr Super Good's Avatar

The Helpful Personage
 
Join Date: Jan 2005
Posts: 4,269

Dr Super Good is a name known to all (691)Dr Super Good is a name known to all (691)Dr Super Good is a name known to all (691)Dr Super Good is a name known to all (691)


Impossiable and WEU has the same limitations as normal WE.
Dr Super Good is offline   Reply With Quote
Old 11-30-2008, 06:31 PM   #5 (permalink)
 
TheBlooddancer's Avatar

Cute Kargo is Cute :3
 
Join Date: Jun 2008
Posts: 2,674

TheBlooddancer is just really nice (418)TheBlooddancer is just really nice (418)TheBlooddancer is just really nice (418)TheBlooddancer is just really nice (418)TheBlooddancer is just really nice (418)


WEU can use trackable objects.
__________________
Last edited by The Administration; Today at 15:08 PM.. Reason: Do not spam, flame, harass and discriminate other users in a such way.



TheBlooddancer is offline   Reply With Quote
Old 11-30-2008, 06:33 PM   #6 (permalink)
 
GodsHand's Avatar

Happy Holidays!
 
Join Date: Jan 2007
Posts: 125

GodsHand has little to show at this moment (10)GodsHand has little to show at this moment (10)


well it is possible. there is a map, i even think the hive has it. like TCX or something and its a shooter map. i'll try to find it. but basically you left click (not right click) to move your guy. i can do that. but when you right click your guy jumps, i can do that too. but what i cant do is make them work together (where you can right and left click). i'll try to find the map.

Here is the map:TcX 1.02b - The Hive Workshop - A Warcraft III Modding Site

and trackables, well from what ive heard there inneficient and use all jass, so ive never looked into it. but if this is wrong and i can use custom scripts and understand how to implement trackables into a map then i would like to know more (:
__________________
Can't come up with a catchy signature yet...
GodsHand is offline   Reply With Quote
Old 11-30-2008, 08:11 PM   #7 (permalink)
Spell and Map Moderator
 
Dr Super Good's Avatar

The Helpful Personage
 
Join Date: Jan 2005
Posts: 4,269

Dr Super Good is a name known to all (691)Dr Super Good is a name known to all (691)Dr Super Good is a name known to all (691)Dr Super Good is a name known to all (691)


So can normal WE use trackables.

The problem with them is that they are un destroyable and so permant once created.
Dr Super Good is offline   Reply With Quote
Old 11-30-2008, 08:21 PM   #8 (permalink)
 
TheBlooddancer's Avatar

Cute Kargo is Cute :3
 
Join Date: Jun 2008
Posts: 2,674

TheBlooddancer is just really nice (418)TheBlooddancer is just really nice (418)TheBlooddancer is just really nice (418)TheBlooddancer is just really nice (418)TheBlooddancer is just really nice (418)


Well, left click, can select. So if you just Mass spam, units, that can be selected, that should do. Right click can move, so if you make some unit, which has move, but is paused or such, that should do.

The above statement is phail.
__________________
Last edited by The Administration; Today at 15:08 PM.. Reason: Do not spam, flame, harass and discriminate other users in a such way.



TheBlooddancer is offline   Reply With Quote
Old 11-30-2008, 09:16 PM   #9 (permalink)
 
GodsHand's Avatar

Happy Holidays!
 
Join Date: Jan 2007
Posts: 125

GodsHand has little to show at this moment (10)GodsHand has little to show at this moment (10)


well in your opinion should i find out how to use trackables? and if i spam the map with units thats a bit laggy. and i need the coordinates as exact as possible so i will need a lot of units...
and i know you probaly are busy but could you at least look at the map? i know how he/she did it but i dont know how to do it. they made you move by left clicking (casting a spell) but at the same time you could right click to jump. thanks.
__________________
Can't come up with a catchy signature yet...
GodsHand is offline   Reply With Quote
Old 01-05-2009, 07:12 PM   #10 (permalink)

User
 
Join Date: Aug 2007
Posts: 9

Xarian has little to show at this moment (2)


There are a few things you should know about trackables before you set off to learn how to use them.

1. Trackable events override all other events - selection, spell targeting, you name it. You cannot, for example, cast flame strike on a trackable nor can you select a unit at the same time you trigger a trackable event (if the unit is over the trackable, you will select the unit and the trackable event will not fire. the opposite is true if the unit is under the trackable)

2. Trackables cannot be moved or destroyed

3. There is no easy way to detect which player triggered a trackable event - there is a rather complex way, however

4. Trackable click events do not differentiate between right and left clicking

The only simple ways I've found to detect clicks are
1. Casting a point-targeted ability will let you detect left clicks
2. Having a unit selected will let you detect right clicks (by detecting the "smart" order)

I have not found a way to exploit detecting left-clicks to my satisfaction; there's no way (that I know of) to force a unit to stay in the 'targeting mode' forever - you can use ForceUIKey, but that makes a bunch of clicks and has its own issues

Detection of right-clicking can be done reasonably enough; make a trigger that cancels point, immediate, and target orders to a unit (using pause unit->issue "stop"->unpause unit) and do something when you detect a "smart" order.

If you use trackables for an entire map then you will have to re-build a lot of basic WC3 UI functionality, so good luck
Xarian is offline   Reply With Quote
Old 01-06-2009, 04:56 AM   #11 (permalink)

User
 
Join Date: Sep 2008
Posts: 63

zandose has little to show at this moment (11)zandose has little to show at this moment (11)


Quote:
Originally Posted by Xarian View Post
If you use trackables for an entire map then you will have to re-build a lot of basic WC3 UI functionality, so good luck
lol. I learned the hard way. Built the whole sha-bang; trackables for each player, alternatives to unit movement and attack, and other stuff. Then found out it just wasn't good enough. A 32 by 32 maps takes 12288 trackables alone. One word, lag.
zandose is offline   Reply With Quote
Old 01-06-2009, 11:34 AM   #12 (permalink)
 
Need_O2's Avatar

meow
 
Join Date: Aug 2007
Posts: 2,528

Need_O2 is a jewel in the rough (183)Need_O2 is a jewel in the rough (183)


even if these leak things are not true
you are expecting your unit to follow mouse while you hold mouse button
>>that<< is not posible
Need_O2 is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[Solved] Creating starting units by clicking on dialog Darkhunty World Editor Help Zone 4 11-02-2008 12:20 PM
Help Me In A Game I Play By Clicking This.. Chief_Of_GxBxL General Gaming 0 04-20-2008 03:34 PM
Unit Clicking Nbah World Editor Help Zone 7 09-17-2007 11:47 PM
Triggering help - clicking units Godly-Forces Map Development 1 02-20-2005 02:25 PM

All times are GMT. The time now is 06:11 AM.






Your link here 
Advertising | Debt Consolidation | Free Advertising | Outsourcing | Bankruptcy
Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
Copyright©Ralle