Poll | | What game does everyone play now? | Starcraft 2 | | 26% | [ 8 ] | Warcraft 3 | | 35% | [ 11 ] | League of Legends | | 19% | [ 6 ] | World of Warcraft | | 0% | [ 0 ] | Diablo 2 | | 0% | [ 0 ] | No games at all | | 10% | [ 3 ] | Other game not listed | | 10% | [ 3 ] |
| Total Votes : 31 |
|
| | Unclickable Unit | |
| | Author | Message |
---|
KevKevQaz Recruit
| Subject: Unclickable Unit Tue 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 | |
| | | X.x-D.a.r.K-x.X Sergeant
| Subject: Re: Unclickable Unit Wed 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 | |
| | | Pat1487 Moderator
| Subject: Re: Unclickable Unit Wed 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 | |
| | | bloodasb Captain
| Subject: Re: Unclickable Unit Wed Aug 05, 2009 7:17 pm | |
| Ughh i cant wait to see pats Thing lol | |
| | | olonavy Corporal
| Subject: Re: Unclickable Unit Wed 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. 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: 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. | |
| | | X.x-D.a.r.K-x.X Sergeant
| Subject: Re: Unclickable Unit Wed 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 | |
| | | bloodasb Captain
| Subject: Re: Unclickable Unit Thu 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" | |
| | | Pat1487 Moderator
| Subject: Re: Unclickable Unit Thu 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 | |
| | | Knight of Gods Commander
| Subject: Re: Unclickable Unit Thu 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 | |
| | | olonavy Corporal
| Subject: Re: Unclickable Unit Thu 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 | |
| | | X.x-D.a.r.K-x.X Sergeant
| Subject: Re: Unclickable Unit Thu 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 | |
| | | Knight of Gods Commander
| Subject: Re: Unclickable Unit Thu 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) | |
| | | Sponsored content
| Subject: Re: Unclickable Unit | |
| |
| | | | Unclickable Unit | |
|
Similar topics | |
|
| Permissions in this forum: | You cannot reply to topics in this forum
| |
| |
| |