-Invul commmand

Do you need World Editor help? Ask here!
Before making a new topic:
First, check if your question has already been answered in the Tutorials section.
If you didn't find a solution, use the search function.
If searching didn't help either, you can make a new topic.

Topic title & content:
You must use a descriptive title. (Help plz is not good) (Need help with Dialog buttons is good)
Go into much detail when posting. You should post attachments. Like screenshots of the problem, the map you are making, replays of the error. Or you could even make a screencast (video) of your problem and upload it here.

Grammar seems to be a serious problem amongst teenagers, so use a spell checker or you will get no love.
Read your posts twice, before pressing the reply button.
And do not use profanity. Chatspeak (y r u nub) and Leetspeak (1 C4N S33 H4X) are not welcome here either.

Only World Editor related questions are allowed here!
(Click for Battle.net help) (Click for World Editor help)

-Invul commmand

New postby OrcSlayer101 on Fri Jul 29, 2011 11:51 am

In my map i want to have a command where if you type -invul it turns the unit selected invulnerable as a sort of cheat :P. This is what i have so far but dont know what to do

trigger scrn.png
trigger scrn.png (6.5 KiB) Viewed 2268 times
The Slayer Of Orcs...
User avatar
Posts: 82
Joined: Thu Mar 25, 2010 6:09 pm
Realm: US East
Account: ShadowBlades
Clan: TvN

Re: -Invul commmand

New postby 3ICE on Sat Jul 30, 2011 8:50 am

In TFT we have access to: Unit group - Units selected by player.
RoC users don't have that in GUI, but we can still use the EnumUnitsSelected() BJ function or the native JASS function GroupEnumUnitsSelected() together with SyncSelections() (SyncSelections always comes first) to get which units are selected by the triggering player. Turning it invulnerable should not be a problem.
User avatar
Posts: 2386
Joined: Sat Mar 01, 2008 11:34 pm
Location: Hungary
Realm: US East
Account: 3ICE
Clan: 3ICE

Return to HELP

Who is online

Users browsing this forum: No registered users and 17 guests