🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!
I've made it just like you want it to. However there is a little problem. The old abilities "Cancel" and "Locate Portal" don't have their Hotkeys (Q and W) anymore. Unfortunately I couldn't solve this problem, for now.
Note that you should remove every ability and units, EXCEPT the portal itself, from your map. Then, copy the abilities and units from the map above, and, at last, copy and paste the triggers again in your map.
Also, there's one more variable that you should pay a little attention when pasting the triggers: Portal_ability_shop. Here, you set/choose the ability that shares the command card of your portal. There are 2 different abilities in the object editor that I've created.
The first one is "Portal Sharing (For Allies)", well, it just shares the command card for allied players. The other ability "Portal Sharing (Everyone)" will share the command card to all players. There are 2 more messages added too. One will let the player know that only the portal owner can disconnect a portal from the other.
And the other message says to enemy players that they can't control a portal that is an enemy to them. However, that only shows up if the variable "Portal_AllowEnemies" is set to "true" and if the variable "Portal_ability_shop" is set to "Portal Sharing (Everyone)", which is not your case.
Yes, it's very easy to do that. First, I recommend that you change the String Order from the ability Link Portal to something that is easy to find in the GUI action "Unit - Issue Order Targeting A Unit". For example, I chose the "Innerfire".
After changing the string order, I recommend that you go to the Register Portal trigger and put in the end of it the action that I mentioned before.
So, it would be something like this:
Unit - Order Portal 0000 <gen> to Human Priest - Inner Fire Portal 0001 <gen>
Happy New Year !
I noticed one more thing
On a map with two islands with a portal on each island
I ask Island 1 units to go to Island 2
Units do not "think" of themselves to use the portal
In the countryside I know that this is possible
Would it be possible to make the units use the "shortest paths"?
Yeah, I didn't implement that thing, but I've thought about it many times. I am almost done here, but I would like to ask you something first before I finish it:
Is there any restriction when it comes to "activate" the shortest path? For example, the unit will only take the shortest path if the portal is visible, or units farther than 5000 distance away from the closest portal will enter or ignore it?
To be honest, I suggest that there should be a restriction related to distance (if unit is farther than 5000 from a portal, it won't use it), because it only takes into account straight paths, which is not appropriate. Sometimes the game might think that entering a portal is a good idea, but there may be many curves, and that could be a little bit more distant than just walking towards a target.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.