Staredit Network > Forums > SC1 UMS Mapmaking Assistance > Topic: Adding attack to Command Center and Queen
Adding attack to Command Center and Queen
Jul 22 2020, 6:09 pm
By: Saox  

Jul 22 2020, 6:09 pm Saox Post #1



Hi,

How do I add an Attack with damage,range, effect for a Command Center? I would like it to be able to fire while in lift/off or land position.

Similiarly, whenever I using "Starcraft EPD Triggers" software I add attack to a Zerg Queen it always throws an error message that "needs to damage the CC enough before infesting", hence whatever attack I add it doens't attack or work. Some other units have a similiar problem - I couldn't for example add a ranged attack to the Scourge.



None.

Jul 23 2020, 1:03 pm UndeadStar Post #2



You are in "modding assistance", but it doesn't feel like you're using the usual modding tools (GPTP, PyMS or other Dat Editor, Firegraft...).
What are your questions based on?




Jul 23 2020, 4:02 pm Voyager7456 Post #3

Responsible for my own happiness? I can't even be responsible for my own breakfast

Yeah, the answer will be very different whether you are modding or using EUDs. I'm going to assume you are using modding:

For the Command Center attack, there's a couple things you'll need to do:
- Units.dat: Give the command center a weapon, check the "Full Auto-Attack" flag in advanced properties, change its AI actions so that it uses Guard (Building) as an idle order and its right-click action has an attack option.
- Weapons.dat: Change the weapon's attack angle to 128 - buildings can't turn, so we want them to be able to attack from any angle.
- Iscript.bin: Add attack, attack repeat and attack to idle animations to the Command Center. Check out something like the Photon Cannon for an example of what this would look like.
- Firegraft: Add an attack button to the Command Center's command card


Regarding the Queen - at the very least you will need to change its Attack Unit order in units.dat to the standard "Attack Unit," I forget if there are some additional hardcoded issues as well, you'll need to give it a try.



all i am is a contrary canary
but i'm crazy for you
i watched you cradling a tissue box
sneezing and sniffling, you were still a fox


Modding Resources: The Necromodicon [WIP] | Mod Night
My Projects: SCFC | ARAI | Excision [WIP] | SCFC2 [BETA] | Robots vs. Humans | Leviathan Wakes [BETA]


Jul 23 2020, 5:21 pm IlyaSnopchenko Post #4

The Curious

Don't all the buildings need to use Turret Attack and Turret Guard orders in lieu of those standard for (mobile) units?



Trial and error... mostly error.

Jul 24 2020, 2:02 pm Saox Post #5



Is there a way to do it in EPD Triggers? That is using EUDs ?



None.

Jul 24 2020, 2:36 pm Voyager7456 Post #6

Responsible for my own happiness? I can't even be responsible for my own breakfast

Most of the steps would be the same, but you're going to have a harder time because you can't do iscript editing with EUDs. All you can do is swap what script is being used, and I don't think there's a suitable script to use.

Anyway, this is in the wrong place if you're doing EUDs.

>Moved to UMS Assistance



all i am is a contrary canary
but i'm crazy for you
i watched you cradling a tissue box
sneezing and sniffling, you were still a fox


Modding Resources: The Necromodicon [WIP] | Mod Night
My Projects: SCFC | ARAI | Excision [WIP] | SCFC2 [BETA] | Robots vs. Humans | Leviathan Wakes [BETA]


Jul 25 2020, 5:16 am Saox Post #7



Quote from Voyager7456
Most of the steps would be the same, but you're going to have a harder time because you can't do iscript editing with EUDs. All you can do is swap what script is being used, and I don't think there's a suitable script to use.

Anyway, this is in the wrong place if you're doing EUDs.

>Moved to UMS Assistance

Ok, thank you for moving.

So, with EPD Trigger there is no way to do this, right? I saw that I can swap iscripts, but that also wouldn't be enough? Even if I took one existing of bunker/missileturret/photoncannon ?

How about giving defiler and queen an attack ?



None.

Jul 25 2020, 7:34 am Sie_Sayoka Post #8



Command Center attacking should be possible albeit difficult. As for having it be able to land/lift as well I'm not entirely sure if it's possible. Allowing any sprite to attack without rock doodads is outlined here. Using the CC as a subunit of something like a Wraith is also possible although you'd lose the land/lift ability.

I'd recommend just using a separate unit that's linked to the Command Center instead. This can be done without EUDs as it's a simple move unit trigger. Alternatively you can just have the visual of a command center over another unit.

Queen and Defiler attacking is much easier as their iscripts allow for attacks. You will have to change the AI orders to allow for right click attacks and probably a few other things like the weapon.dat changes mentioned before.

Post has been edited 1 time(s), last time on Jul 25 2020, 7:39 am by Sie_Sayoka.



None.

Options
  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[10:41 am]
v9bettel -- Nice
[01:39 am]
Ultraviolet -- no u elky skeleton guy, I'll use em better
[10:50 pm]
Vrael -- Ultraviolet
Ultraviolet shouted: How about you all send me your minerals instead of washing them into the gambling void? I'm saving up for a new name color and/or glow
hey cut it out I'm getting all the minerals
[10:11 pm]
Ultraviolet -- :P
[10:11 pm]
Ultraviolet -- How about you all send me your minerals instead of washing them into the gambling void? I'm saving up for a new name color and/or glow
[2024-4-17. : 11:50 pm]
O)FaRTy1billion[MM] -- nice, now i have more than enough
[2024-4-17. : 11:49 pm]
O)FaRTy1billion[MM] -- if i don't gamble them away first
[2024-4-17. : 11:49 pm]
O)FaRTy1billion[MM] -- o, due to a donation i now have enough minerals to send you minerals
[2024-4-17. : 3:26 am]
O)FaRTy1billion[MM] -- i have to ask for minerals first tho cuz i don't have enough to send
[2024-4-17. : 1:53 am]
Vrael -- bet u'll ask for my minerals first and then just send me some lousy vespene gas instead
Please log in to shout.


Members Online: Roy, Excalibur