Clan TMMM
Would you like to react to this message? Create an account in a few clicks or log in to continue.


The official site of Clan TMMM
 
HomeHomeSearchLatest imagesRegisterLog in


Latest topics
» Kevkevqaz is back
Unclickable Unit I_icon_minitimeby Eat_bacon_daily Wed Feb 22, 2023 7:22 pm

» Hey whats up
Unclickable Unit I_icon_minitimeby seankly Tue Feb 04, 2020 10:32 pm

» Gotta click fast - WC3 Mazing #mildlyinteresting
Unclickable Unit I_icon_minitimeby hoffmann Wed Jun 21, 2017 10:28 pm

» I'm getting married and you guys are invited
Unclickable Unit I_icon_minitimeby Achilles.42 Wed Sep 07, 2016 11:00 am

» Server Photo Album 1
Unclickable Unit I_icon_minitimeby Pat1487 Sat Aug 06, 2016 5:28 pm

» Legacy of The Void Beta
Unclickable Unit I_icon_minitimeby Achilles.42 Sun Oct 18, 2015 3:21 am

» Hey guys!!!
Unclickable Unit I_icon_minitimeby Eat_bacon_daily Fri Oct 16, 2015 11:20 pm

SC2 Links
SC2 Challenge/Tourney Info

Official SC2 Forums

SC2 Curse

SC2Mapster

Team Liquid

SC2 Replayed

SC2 Strategy
WC3 Links
Clan_TMMM[Host] Info

WC3 Challenge/Tourny Rules

Epicwar
Poll
What game does everyone play now?
Starcraft 2
Unclickable Unit I_vote_lcap26%Unclickable Unit I_vote_rcap
 26% [ 8 ]
Warcraft 3
Unclickable Unit I_vote_lcap35%Unclickable Unit I_vote_rcap
 35% [ 11 ]
League of Legends
Unclickable Unit I_vote_lcap19%Unclickable Unit I_vote_rcap
 19% [ 6 ]
World of Warcraft
Unclickable Unit I_vote_lcap0%Unclickable Unit I_vote_rcap
 0% [ 0 ]
Diablo 2
Unclickable Unit I_vote_lcap0%Unclickable Unit I_vote_rcap
 0% [ 0 ]
No games at all
Unclickable Unit I_vote_lcap10%Unclickable Unit I_vote_rcap
 10% [ 3 ]
Other game not listed
Unclickable Unit I_vote_lcap10%Unclickable Unit I_vote_rcap
 10% [ 3 ]
Total Votes : 31
Transparency

 

 Unclickable Unit

Go down 
+2
X.x-D.a.r.K-x.X
KevKevQaz
6 posters
AuthorMessage
KevKevQaz
Recruit
Recruit
KevKevQaz



Unclickable Unit Empty
PostSubject: Unclickable Unit   Unclickable Unit I_icon_minitimeTue Aug 04, 2009 11:34 pm

I wanna know how to make an unclickable unit like the demon hunter in murloc slide ><
is it rly that hard tho cuz in line tower wars theres a tower thats unclickable which is annoying, but it's clickability is the same as the murloc slide demon hunter
Back to top Go down
X.x-D.a.r.K-x.X
Sergeant
Sergeant
X.x-D.a.r.K-x.X



Unclickable Unit Empty
PostSubject: Re: Unclickable Unit   Unclickable Unit I_icon_minitimeWed Aug 05, 2009 5:07 pm

its two units. a demon hunter and a dummy. the dummy is invisible and the demon hunter is locust it has a more complicated trigger involved but im not interested in helping you
Back to top Go down
Pat1487
Moderator
Moderator
Pat1487



Unclickable Unit Empty
PostSubject: Re: Unclickable Unit   Unclickable Unit I_icon_minitimeWed Aug 05, 2009 6:47 pm

Theres a really simple way to do it, you can even have the dh vulnerable so you can get dmged by mortars, and still have normal death collision (no need for immo)
You can do it to all the units on the map (including the dh's) all in 1 short trigger

I would tell you, but i dont want to give it out yet

You can try it the dummy unit way, but it kindve sucks
Back to top Go down
bloodasb
Captain
Captain
bloodasb



Unclickable Unit Empty
PostSubject: Re: Unclickable Unit   Unclickable Unit I_icon_minitimeWed Aug 05, 2009 7:17 pm

Ughh i cant wait to see pats Thing lol
Back to top Go down
olonavy
Corporal
Corporal




Unclickable Unit Empty
PostSubject: Re: Unclickable Unit   Unclickable Unit I_icon_minitimeWed Aug 05, 2009 7:52 pm

Wow you are all just so mean so kev here it is:

This is how it looks... The event is Unit- A Unit enters Region X, You can use a different event, and you can apply it to more than one unit, in my eaxmple im only applying it to one unit - the triggering unit.

Unclickable Unit JASS2-1

Theres 5 lines:
Code:
    call UnitAddAbilityBJ( 'Aloc', GetTriggerUnit() )
.
This line adds the ability 'Aloc' to the unit, which is locust,
Code:
    call ShowUnitHide( GetTriggerUnit() )
This line hides the unit....
Code:
    call ShowUnitShow( GetTriggerUnit() )
This line unhides it...
Code:
    call UnitRemoveAbilityBJ( 'Aloc', GetTriggerUnit() )
Removes locust
Code:
    call SetUnitInvulnerable( GetTriggerUnit(), false )
makes the unit vulnerable

The reason this trig is in JASS is because its the only way to remove or add locust ('Aloc')
By hiding and unhiding the unit u make it selectable, yet unclickable (u cant right click). and u HAVE TO remove locust in order to make the unit vulnerable.

of course all of this will look different on urs, just change the unit name and trigger names inside the trigger
If it makes it any easier make a GUI trigger that looks like this:
Unclickable Unit GUI2

Then click Edit-> convert to custom text, and look for the Ability 'ANab' (Acid Bomb) and change that to 'Aloc' (Locust). you can add conditions mroe actions... different event etc, but thats the basic example.
Back to top Go down
X.x-D.a.r.K-x.X
Sergeant
Sergeant
X.x-D.a.r.K-x.X



Unclickable Unit Empty
PostSubject: Re: Unclickable Unit   Unclickable Unit I_icon_minitimeWed Aug 05, 2009 7:56 pm

yeah olo's is right i guess except the trigger doesnt work with windwalk
or hero abilities for that matter

im guessing thats your way pat? lol
Back to top Go down
bloodasb
Captain
Captain
bloodasb



Unclickable Unit Empty
PostSubject: Re: Unclickable Unit   Unclickable Unit I_icon_minitimeThu Aug 06, 2009 9:42 am

dark if u think about it Pat prolly just willed his Jass trigger into living and it works with every ability blah blah blah.. and its "perfect"
Back to top Go down
Pat1487
Moderator
Moderator
Pat1487



Unclickable Unit Empty
PostSubject: Re: Unclickable Unit   Unclickable Unit I_icon_minitimeThu Aug 06, 2009 4:43 pm

Mine works with hero abilities, can even be the target of spells

The only spell that doesnt work is metamorphosis, using that brings the unit back to normal
But I could just make a trigger that redoes locust after metamorphosis ends to fix that
Id rather have the ability to bring the unit back to normal though, and since metamorphosis isnt used in mazes it doesnt matter

And with Olo's way, you dont have to remove invlu after removing loc, if the unit isnt invul before adding loc, removing loc is enough to make it vulnerable again
Back to top Go down
Knight of Gods
Commander
Commander
Knight of Gods



Unclickable Unit Empty
PostSubject: Re: Unclickable Unit   Unclickable Unit I_icon_minitimeThu Aug 06, 2009 5:30 pm

i accidently found a way to make it so you cant click it but you can right click it... dont know how it would be usefull but its funny
Back to top Go down
olonavy
Corporal
Corporal




Unclickable Unit Empty
PostSubject: Re: Unclickable Unit   Unclickable Unit I_icon_minitimeThu Aug 06, 2009 7:29 pm

mine works with hero abilities too.. and mine is targetable by spells, just by triggering though, which is probably the way ud do it in a maze or a TD.. And yeah u dont have to make it vulnerable, I guess for some reason mine needed it
Back to top Go down
X.x-D.a.r.K-x.X
Sergeant
Sergeant
X.x-D.a.r.K-x.X



Unclickable Unit Empty
PostSubject: Re: Unclickable Unit   Unclickable Unit I_icon_minitimeThu Aug 06, 2009 7:51 pm

Moo
Events
Map initialization
Conditions
Actions
Game - Disable selection and deselection functionality (Enable selection circles)
Game - Disable drag-selection functionality (Disable drag-selection box)

KoGy Razz
Back to top Go down
Knight of Gods
Commander
Commander
Knight of Gods



Unclickable Unit Empty
PostSubject: Re: Unclickable Unit   Unclickable Unit I_icon_minitimeThu Aug 06, 2009 9:20 pm

er mine was i had a militia that had locust and peasents had locust and the militia transformed into peasent after the 45 seconds you could right click the peasent (found on accident i placed a militia and didnt change the spell)
Back to top Go down
Sponsored content





Unclickable Unit Empty
PostSubject: Re: Unclickable Unit   Unclickable Unit I_icon_minitime

Back to top Go down
 
Unclickable Unit
Back to top 
Page 1 of 1
 Similar topics
-
» Color change command
» HOW TO MAKE A UNIT TURNING ?

Permissions in this forum:You cannot reply to topics in this forum
Clan TMMM :: Warcraft 3 :: WC3 Tutorials and Help-
Jump to: