• 🏆 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!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

[General] Pylon Psionic Fields

Status
Not open for further replies.
Level 25
Joined
Jul 30, 2013
Messages
2,678
Can someone help me at triggers? It's like Psionic fields where only protoss could warp in their other structures(except for Nexus/Extractor) that are produced by pylons. It's like blight but when the pylon gets destroyed the buildings built onto the field gets disabled(can't train/attack) until you warp in additional pylon to take over the destroyed one.

Anyone that could help would be credited properly.
 
Level 25
Joined
May 11, 2007
Messages
4,651
Create an ability based on devotion aura.
Give it a custom model with the protoss blue aura, basicly a gigantic blue circle.
Create a pylon building and give it the devotion aura ability.
Create an attachment ability called DISABLED BUILDING EFFECT and add some fancy effect.

Add some protoss buildings to a worker.

1.
Go to the trigger editor, create a trigger with the event "a unit starts constructing a building"

Check if there is a pylon nearby the constructing building, if not, order the worker to cancel the building and displaya message.

2.
Create a different trigger.
Use the event "A unit dies", set the condition to "unit type of triggering unit == pylon"

set tempGroup = buildings owned by owner of triggering unit in range of the pylon.
For each of the buildings, check if they have the pylon buff, if not, pause the building and add the DISABLED BUILDING EFFECT ability to the building.

3. Create a new trigger, check if a pylon finishes constructing, check how many buildings are nearby, unpause those buildings and remove the DISABLED BUILDING EFFECT ability from it.
 
Level 18
Joined
Jun 15, 2012
Messages
498
Well, the frost wyrms freezing breath disables buildings, you could use that.
When the pylon is destroyed make it so that the building is attacked by dummy with freezing breath, and when a pylon is rebuild remove the buff from the buildings in range
 
Status
Not open for further replies.
Top