• 🏆 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!

HIVE

BloodSoul
BloodSoul
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.
BloodSoul
BloodSoul
BloodSoul
BloodSoul
So, I recommend that you delete everything that is related to the Portal spell from your map (old spells and units - EXCEPT your portal)
BloodSoul
BloodSoul
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.
BloodSoul
BloodSoul
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.
BloodSoul
BloodSoul
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.
BloodSoul
BloodSoul
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.
Sylvos
Sylvos
It works !
Thank you
It's bad that the numbers "1" appear in reverse
BloodSoul
BloodSoul
Yeah, unfortunately I couldn't remove that number 1 from those 2 abilities. Still, I'm glad that it works the way you want it to.
Sylvos
Sylvos
For a campaign map, do you think it would be possible to already build two portals and connect them together from the start.
BloodSoul
BloodSoul
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".
BloodSoul
BloodSoul
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>
BloodSoul
BloodSoul
Sylvos
Sylvos
It's perfect ! Thank you !
BloodSoul
BloodSoul
No problem. Happy new years!
Sylvos
Sylvos
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"?
BloodSoul
BloodSoul
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:
BloodSoul
BloodSoul
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?
BloodSoul
BloodSoul
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.
Top