Protoss Problem

sunshinex3

You can change this now in User CP.
Reaction score
7
Pylons:
trying to make pylons power buildings allowing upgrades and units to be purchased

the first problem im having is that the buildings move slightly due to collision issues
im use a simple replace trigger.

i can post it if you need but its just a replace trigger involving two buildings!
 

Accname

2D-Graphics enthusiast
Reaction score
1,463
Its not going to work with replace. If you really want to change the unit type of your buildings I would suggest using the Chaos ability which will morph a unit to another type.
 

sunshinex3

You can change this now in User CP.
Reaction score
7
ah i didnt think about that, i will try this after the i finish all those zerg triggers.
 

sunshinex3

You can change this now in User CP.
Reaction score
7
ok your solution worked but it created some more problems, yes the builds switch perfectly but some how the building that isn't supposed to sell any units does. it says the same units and upgrades of the building that it replaced...

and

this

Trigger:
  • Pylon Khalai Powerup
    • Events
    • Unit - A unit Begins casting an ability
    • Conditions
    • And - All (Conditions) are true
    • Conditions
    • (Ability being cast) Equal to Pylon Empowering (Protoss Khalai)
    • Actions
    • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
    • If - Conditions
    • (Unit-type of (Target unit of ability being cast)) Equal to Forge (Protoss NoPower)
    • Then - Actions
    • Unit - Add Khalai Forge (Pylon transform) to (Target unit of ability being cast)
    • Unit - Order (Target unit of ability being cast) to Night Elf Druid Of The Claw - Bear Form
    • Else - Actions
    • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
    • If - Conditions
    • (Unit-type of (Target unit of ability being cast)) Equal to Photon Cannon (Protoss NoPower)
    • Then - Actions
    • Unit - Add Khalai Photon Cannon (Pylon transform) to (Target unit of ability being cast)
    • Unit - Order (Target unit of ability being cast) to Night Elf Druid Of The Claw - Bear Form
    • Else - Actions
    • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
    • If - Conditions
    • (Unit-type of (Target unit of ability being cast)) Equal to Altar (Protoss NoPower)
    • Then - Actions
    • Unit - Add Khalai alter (Pylon transform) to (Target unit of ability being cast)
    • Unit - Order (Target unit of ability being cast) to Night Elf Druid Of The Claw - Bear Form
    • Else - Actions
    • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
    • If - Conditions
    • (Unit-type of (Target unit of ability being cast)) Equal to Commerce Center (protoss NoPower)
    • Then - Actions
    • Unit - Add Khalai Commerce Center (Pylon transform2) to (Target unit of ability being cast)
    • Unit - Order (Target unit of ability being cast) to Night Elf Druid Of The Claw - Bear Form
    • Else - Actions
    • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
    • If - Conditions
    • (Unit-type of (Target unit of ability being cast)) Equal to Dark Temple (Protoss NoPower)
    • Then - Actions
    • Unit - Add Khalai Dark Temple (Pylon transform) to (Target unit of ability being cast)
    • Unit - Order (Target unit of ability being cast) to Night Elf Druid Of The Claw - Bear Form
    • Else - Actions
    • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
    • If - Conditions
    • (Unit-type of (Target unit of ability being cast)) Equal to Gate (Protoss NoPower)
    • Then - Actions
    • Unit - Add Khalai Gate (Pylon transform) to (Target unit of ability being cast)
    • Unit - Order (Target unit of ability being cast) to Night Elf Druid Of The Claw - Bear Form
    • Else - Actions
    • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
    • If - Conditions
    • (Unit-type of (Target unit of ability being cast)) Equal to High Temple (Protoss NoPower)
    • Then - Actions
    • Unit - Add Khalai High Temple (Pylon transform) to (Target unit of ability being cast)
    • Unit - Order (Target unit of ability being cast) to Night Elf Druid Of The Claw - Bear Form
    • Else - Actions
    • Do nothing


need to figure out why this trigger isn't working to change the buildings back.

the trigger that casts the slam ability works thrunder clap does go off
it just doesnt seem to be able to affect the structure around it.
 

sunshinex3

You can change this now in User CP.
Reaction score
7
im guessing its no possible for thunderclap to hit a structure? or any aoe for that matter?
 

Accname

2D-Graphics enthusiast
Reaction score
1,463
Thunderclap can hit buildings just fine. But thunderclap has no "target unit of ability being cast" because it doesnt target any units.
 

sunshinex3

You can change this now in User CP.
Reaction score
7
what would you recommend to "wake" the buildings up.(transforming them)

also using the transform ability keeps units trained the same... buildings with no power need to have no units able to be trained buildings with power need to have units able to be trained.
 

jonas

You can change this now in User CP.
Reaction score
67
Maybe you can use an aura and loop through your buildings periodically (e.g., every second) to see whether they are affected by the aura.
 

Accname

2D-Graphics enthusiast
Reaction score
1,463
Not quite sure what I would do. This is something that is rather difficult to do with WC3.
It really depends on how you want it to look and feel like. The simplest solution would be to pause / unpause the buildings. You wouldnt see a graphical indication whether the building is powered or not though.
 

KaerfNomekop

Swim, fishies. Swim through the veil of steel.
Reaction score
613
Trigger:
  • Powering
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to Power
    • Actions
      • Set TempPoint = (Position of (Triggering unit))
      • Set TempUnitGroup = (Units within 250.00 of TempPoint matching ((Unit-type of (Matching unit)) Equal to Burrow))
      • Unit Group - Pick every unit in TempUnitGroup and do (Actions)
        • Loop - Actions
          • Unit - Add Power (Burrow) to (Picked unit)
          • Neutral Building - Add Far Seer to (Picked unit) with 1 in stock and a max stock of 1
          • Special Effect - Create a special effect attached to the overhead of (Picked unit) using Abilities\Weapons\Bolt\BoltImpact.mdl
          • Special Effect - Destroy (Last created special effect)
      • Custom script: call DestroyGroup (udg_TempUnitGroup)
      • Custom script: call RemoveLocation (udg_TempPoint)


Did something simple using Chaos. Power is the ability that's cast, your Thunder Clap equivalent; Burrow is the default (unpowered) building; Power (Burrow) is a modification of Chaos, whose Resulting Unit field is the powered form of the building. The base building won't have any units available for training, but it needs to have the Sell Units ability so that you can Add units for sale later; the powered building will have the ability to train units (don't add any saleable units to its Units Sold list, as the Remove action only works on stuff put in via the Add action). Any pre-placed buildings that you want to be Powered will need the units for sale added manually. I added some special effects to the trigger and the abilities to make it clear when a building is or isn't powered.
 

Attachments

  • Power-Depower.w3x
    21.8 KB · Views: 279

sunshinex3

You can change this now in User CP.
Reaction score
7
hrm ok let me try this, not sure i understand the neutral buildings.

I wanted to ask, could i use pause and unpause or is their some memory leak or problem with useing that method.

my method in theory would work like this
pylon is constructed any paused building will be unpaused
pylon is destroyed any buildings in the area that don't have the pylon buff will be paused.

seperate triggers

building is constructed if no buff it will be paused
building is constructed and has buff nothing happens.
 

sunshinex3

You can change this now in User CP.
Reaction score
7
ok just looked at test map and yea thats what i want i will keep trying to mimic this
 

sunshinex3

You can change this now in User CP.
Reaction score
7
Trigger:
  • Pylons Enter Khalai
    • Events
    • Unit - A unit Finishes construction
    • Conditions
    • Or - Any (Conditions) are true
    • Conditions
    • (Unit-type of (Constructed structure)) Equal to Pylon (Protoss khalai Daelaam)
    • (Unit-type of (Constructed structure)) Equal to Pylon (Protoss NerazimDaelaam)
    • (Unit-type of (Constructed structure)) Equal to Pylon (Protoss PurifierDaelaam)
    • (Unit-type of (Constructed structure)) Equal to Pylon (Protoss Tal'darimDaelaam)
    • Actions
    • Set TempPoint = (Position of (Constructed structure))
    • Set TempUnitGroup = (Units within 600.00 of TempPoint matching ((((Matching unit) is in (Units owned by (Owner of (Constructed structure)))) Equal to True) and ((((Matching unit) is A structure) Equal to True) and ((Level of Inert (Protoss No Power) for (Matching unit)) Equal to
    • Unit Group - Pick every unit in TempUnitGroup and do (Actions)
    • Loop - Actions
    • Unit - Unpause (Picked unit)
    • Animation - Change (Picked unit)'s vertex coloring to (100.00%, 100.00%, 100.00%) with 0.00% transparency
    • Custom script: call DestroyGroup (udg_TempUnitGroup)
    • Custom script: call RemoveLocation (udg_TempPoint)


this works any problems?
 

sunshinex3

You can change this now in User CP.
Reaction score
7
Trigger:
  • Pylons Destroyed Daelaam
    • Events
    • Unit - A unit Dies
    • Conditions
    • Or - Any (Conditions) are true
    • Conditions
    • (Unit-type of (Dying unit)) Equal to Pylon (Protoss khalai Daelaam)
    • (Unit-type of (Dying unit)) Equal to Pylon (Protoss NerazimDaelaam)
    • (Unit-type of (Dying unit)) Equal to Pylon (Protoss PurifierDaelaam)
    • (Unit-type of (Dying unit)) Equal to Pylon (Protoss Tal'darimDaelaam)
    • Actions
    • Set TempPoint = (Position of (Dying unit))
    • Set TempUnitGroup = (Units within 600.00 of TempPoint matching ((((Matching unit) is in (Units owned by (Owner of (Dying unit)))) Equal to True) and ((((Matching unit) is A structure) Equal to True) and ((Level of Inert (Protoss No Power) for (Matching unit)) Equal to 0))))
    • Unit Group - Pick every unit in TempUnitGroup and do (Actions)
    • Loop - Actions
    • Unit - Pause (Picked unit)
    • Animation - Change (Constructing structure)'s vertex coloring to (15.00%, 15.00%, 15.00%) with 0.50% transparency
    • Custom script: call DestroyGroup (udg_TempUnitGroup)
    • Custom script: call RemoveLocation (udg_TempPoint)


this works too any thing wrong with it...?
 

sunshinex3

You can change this now in User CP.
Reaction score
7
Trigger:
  • Structure Pylon Khalai Enter
    • Events
    • Unit - A unit Begins construction
    • Conditions
    • And - All (Conditions) are true
    • Conditions
    • ((Unit-type of (Constructing structure)) Equal to Photon Cannon (Protoss Khalaie)) or (((Unit-type of (Constructing structure)) Equal to Altar of Aiur (Protoss Khalai)) or (((Unit-type of (Constructing structure)) Equal to Commerce Center (protoss Khalie)) or (((Unit-type of (Constructing structure)) Equal to Dark Temple (Protoss Khalie)) or (
    • ((Constructing structure) has buff (Protoss khalai) ) Equal to False
    • Actions
    • Set TempPoint = (Position of (Constructing structure))
    • Set TempUnitGroup = (Units within 600.00 of TempPoint matching ((((Matching unit) is in (Units owned by (Owner of (Constructing structure)))) Equal to True) and (((Unit-type of (Matching unit)) Equal to Pylon (Protoss khalai Daelaam)) and (((Matching unit) has buff (Protoss khal
    • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
    • If - Conditions
    • (Unit-type of (Random unit from TempUnitGroup)) Equal to Pylon (Protoss khalai Daelaam)
    • Then - Actions
    • Do nothing
    • Else - Actions
    • Unit - Pause (Constructing structure)
    • Unit - Add Inert (Protoss No Power) to (Constructing structure)
    • Animation - Change (Constructing structure)'s vertex coloring to (15.00%, 15.00%, 15.00%) with 0.50% transparency
    • Custom script: call DestroyGroup (udg_TempUnitGroup)
    • Custom script: call RemoveLocation (udg_TempPoint)

(FIXED)
this works, do you guys see any leaks?
 
Last edited:
General chit-chat
Help Users
  • No one is chatting at the moment.
  • The Helper The Helper:
    If you are new to the site please check out the Recipe and Food Forum https://www.thehelper.net/forums/recipes-and-food.220/
  • Monovertex Monovertex:
    How come you're so into recipes lately? Never saw this much interest in this topic in the old days of TH.net
  • Monovertex Monovertex:
    Hmm, how do I change my signature?
  • tom_mai78101 tom_mai78101:
    Signatures can be edit in your account profile. As for the old stuffs, I'm thinking it's because Blizzard is now under Microsoft, and because of Microsoft Xbox going the way it is, it's dreadful.
  • The Helper The Helper:
    I am not big on the recipes I am just promoting them - I use the site as a practice place promoting stuff
    +2
  • Monovertex Monovertex:
    @tom_mai78101 I must be blind. If I go on my profile I don't see any area to edit the signature; If I go to account details (settings) I don't see any signature area either.
  • The Helper The Helper:
    You can get there if you click the bell icon (alerts) and choose preferences from the bottom, signature will be in the menu on the left there https://www.thehelper.net/account/preferences
  • The Helper The Helper:
    I think I need to split the Sci/Tech news forum into 2 one for Science and one for Tech but I am hating all the moving of posts I would have to do
  • The Helper The Helper:
    What is up Old Mountain Shadow?
  • The Helper The Helper:
    Happy Thursday!
    +1
  • Varine Varine:
    Crazy how much 3d printing has come in the last few years. Sad that it's not as easily modifiable though
  • Varine Varine:
    I bought an Ender 3 during the pandemic and tinkered with it all the time. Just bought a Sovol, not as easy. I'm trying to make it use a different nozzle because I have a fuck ton of Volcanos, and they use what is basically a modified volcano that is just a smidge longer, and almost every part on this thing needs to be redone to make it work
  • Varine Varine:
    Luckily I have a 3d printer for that, I guess. But it's ridiculous. The regular volcanos are 21mm, these Sovol versions are about 23.5mm
  • Varine Varine:
    So, 2.5mm longer. But the thing that measures the bed is about 1.5mm above the nozzle, so if I swap it with a volcano then I'm 1mm behind it. So cool, new bracket to swap that, but THEN the fan shroud to direct air at the part is ALSO going to be .5mm to low, and so I need to redo that, but by doing that it is a little bit off where it should be blowing and it's throwing it at the heating block instead of the part, and fuck man
  • Varine Varine:
    I didn't realize they designed this entire thing to NOT be modded. I would have just got a fucking Bambu if I knew that, the whole point was I could fuck with this. And no one else makes shit for Sovol so I have to go through them, and they have... interesting pricing models. So I have a new extruder altogether that I'm taking apart and going to just design a whole new one to use my nozzles. Dumb design.
  • Varine Varine:
    Can't just buy a new heatblock, you need to get a whole hotend - so block, heater cartridge, thermistor, heatbreak, and nozzle. And they put this fucking paste in there so I can't take the thermistor or cartridge out with any ease, that's 30 dollars. Or you can get the whole extrudor with the direct driver AND that heatblock for like 50, but you still can't get any of it to come apart
  • Varine Varine:
    Partsbuilt has individual parts I found but they're expensive. I think I can get bits swapped around and make this work with generic shit though
  • Ghan Ghan:
    Heard Houston got hit pretty bad by storms last night. Hope all is well with TH.
  • The Helper The Helper:
    Power back on finally - all is good here no damage
    +2
  • V-SNES V-SNES:
    Happy Friday!
    +1
  • The Helper The Helper:
    New recipe is another summer dessert Berry and Peach Cheesecake - https://www.thehelper.net/threads/recipe-berry-and-peach-cheesecake.194169/

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top