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?



Who am I, and why should I care?

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.
[05:39 pm]
Dem0n -- also looks like he sucks at melee lmao
[05:39 pm]
Dem0n -- yeah he sounds like the most annoying douche ever. I don't know why so many people like him
[05:16 pm]
Vrael -- just completely retarded opinions that he cobbled together from watching people who presumably knew what they were talking about, but he doesn't, so he just tries to sound like them
[05:14 pm]
Vrael -- or shit like "One wraith makes zerg obsolete. Fact."
[05:13 pm]
Vrael -- and his professional casting is garbage too, he's constantly saying stuff like "Wow ask any pro, you should always. ALWAYS. always. have 17 zealots out by the 2 minute mark as zerg. ALWAYS."
[05:13 pm]
Vrael -- m.0.n.3.y
m.0.n.3.y shouted: Vrael why do you say that?
watch any of his stream, he is the whiniest little bitch on the planet
[02:29 pm]
MTiger156 -- u
[06:58 am]
NudeRaider -- m.0.n.3.y
m.0.n.3.y shouted: Mini Game Party was featured on Artosis's channel recently! Pretty cool win for UMS: https://www.youtube.com/watch?v=gSydfyOfOpI
"xKrayZee sux"
[04:36 am]
m.0.n.3.y -- Vrael why do you say that?
[12:03 am]
Vrael -- thats awesome money, for you, but artosis is a giant turd of a human being
Please log in to shout.


Members Online: warwig128644, abtateadict44