Staredit Network > Forums > Modding Assistance > Topic: Buildin' a Sentry
Buildin' a Sentry
Feb 28 2016, 3:02 am
By: SCRuler  

Feb 28 2016, 3:02 am SCRuler Post #1



Would it be possible to have a non-worker unit (say a modded firebat) be able to build/spawn and/or repair buildings/units?
Say, take a firebat hero or whatever. Would you be able to make him gain the ability to repair mechanical units? And/or would you be able to make a spell or give the order to build a unit/small building (like for example a sentry type thing, based perhaps on the installation floor gun)?



None.

Feb 28 2016, 7:12 am Sand Wraith Post #2

she/her

I've gotten a Zealot to build and repair buildings the same way that SCVs do it. I don't remember if you need any more animations to script. The Firegraft portion: you have to check the requirements for each building/unit your Firebat can build (make sure that it can be built by the default worker, and also the Firebat using something like "Or... Current Unit is.... Firebat").

After that, all you really need is to copy in some build buttons from the SCV's sub-menus (or use a sub-menu yourself).




Feb 28 2016, 8:02 am Corbo Post #3

ALL PRAISE YOUR SUPREME LORD CORBO

Quote from Sand Wraith
I've gotten a Zealot to build and repair buildings the same way that SCVs do it. I don't remember if you need any more animations to script. The Firegraft portion: you have to check the requirements for each building/unit your Firebat can build (make sure that it can be built by the default worker, and also the Firebat using something like "Or... Current Unit is.... Firebat").

After that, all you really need is to copy in some build buttons from the SCV's sub-menus (or use a sub-menu yourself).

Yeah, you do need the iscript animations for it. It's something like SpecialAnimation2 or something like so. I suggest just looking at how SCV works, what it does when it's repairing/building and doing so in the other unit's iscript as well.

GL HF GG NO RM NR 20

Post has been edited 2 time(s), last time on Apr 8 2016, 2:36 am by Roy.



fuck you all

Feb 28 2016, 9:24 pm SCRuler Post #4



Thats another thing: Can I use the installation turrets as the buildable sentries?
Also, how do I make fresh sub-menus? I've been trying to make one so larva can morph into the hero strains.
I tried but I hit a roadblock.



None.

Feb 28 2016, 9:45 pm Corbo Post #5

ALL PRAISE YOUR SUPREME LORD CORBO

Sure. The installation turrets will need their building animations as well, though.

As for the fresh sub-menus, it's just a matter of creating a new button set and then calling to the new button set ID. Watch how SCVs do it so you can know which actions/conditions to use.

Post has been edited 2 time(s), last time on Apr 8 2016, 2:34 am by Roy.



fuck you all

Feb 28 2016, 10:32 pm SCRuler Post #6



I tried, but the change displayed buttons function seems to call to a "unit id", which is listed in the first tab on firegraft and includes such things as "replay:paused"
Could you take a look in firegraft? Just to cover bases my version is 1.16.1 I think.

I'll start looking at building animations and iscript for my engineer hero.

is it possible to make a structure/like unit that acts as a healer/energy regenerator?

Also I took a look at the iscripts, and the SCV one has "SCVAlmostBuilt" followed by SCVLocal00 in it, which appears to be the build animation. It lists SpecialState1 and 2 as empty.
SO should I use an "AlmostBuilt" animation entry for, say, the firebat, if I want to let the firebat hero do the sentry buildin'?

Also, the iscripts for the gun traps are weird. they use almostbuilt entries for their triggering and attack animation.

Attachments:
ShitModBeta1.exe
Hits: 2 Size: 2057.01kb

Post has been edited 2 time(s), last time on Feb 28 2016, 11:53 pm by SCRuler.



None.

Feb 29 2016, 1:35 am Corbo Post #7

ALL PRAISE YOUR SUPREME LORD CORBO

Quote from SCRuler
I tried, but the change displayed buttons function seems to call to a "unit id", which is listed in the first tab on firegraft and includes such things as "replay:paused"
Could you take a look in firegraft? Just to cover bases my version is 1.16.1 I think.

Ya, it should. The action variable number should call a button set for an existing unit. I am unsure if you can add more "unit" buttons sets. I know that you can make these units call a custom button set you add in FG. Either way there should be plenty unused units which you could assign a button set and call THAT unit as your action variable.

Post has been edited 2 time(s), last time on Apr 8 2016, 2:33 am by Roy.



fuck you all

Feb 29 2016, 4:10 am SCRuler Post #8



Quote from Corbo
Quote from SCRuler
I tried, but the change displayed buttons function seems to call to a "unit id", which is listed in the first tab on firegraft and includes such things as "replay:paused"
Could you take a look in firegraft? Just to cover bases my version is 1.16.1 I think.

Ya, it should. The action variable number should call a button set for an existing unit. I am unsure if you can add more "unit" buttons sets. I know that you can make these units call a custom button set you add in FG. Either way there should be plenty unused units which you could assign a button set and call THAT unit as your action variable.
I've done that, I applied the 'explarva' button set i made for the hero strains to the "overmind" unit id and tried to use that. But it doesn't work for whatever reason. I'm probably doing something wrong.
And strangely, I've somehow removed functionality from the upgrades I tried to make. They were there (at least a couple were) but now they're gone.



None.

Feb 29 2016, 4:10 am SCRuler Post #9



Quote from Corbo
Quote from SCRuler
I tried, but the change displayed buttons function seems to call to a "unit id", which is listed in the first tab on firegraft and includes such things as "replay:paused"
Could you take a look in firegraft? Just to cover bases my version is 1.16.1 I think.

Ya, it should. The action variable number should call a button set for an existing unit. I am unsure if you can add more "unit" buttons sets. I know that you can make these units call a custom button set you add in FG. Either way there should be plenty unused units which you could assign a button set and call THAT unit as your action variable.
I tried doing that, by using the "overmind" unit ID which had nothing attached, and applying the "explarva' button set I made. Yet nothing happened.
The "disabled" thing appears, but when I research the "spell" the button vanishes.
Also, certain upgrades I had in place to research to enhance, say, Hero armor and the Yamato Cannon's damage, have vanished mysteriously.



None.

Feb 29 2016, 5:33 am Sand Wraith Post #10

she/her

You can't add more button sets, you can only use some units that aren't used in your mod, more or less.




Feb 29 2016, 5:50 am Corbo Post #11

ALL PRAISE YOUR SUPREME LORD CORBO

Quote from Sand Wraith
You can't add more button sets, you can only use some units that aren't used in your mod, more or less.
I am pretty sure you can. You can at least add new entries for button sets in firegrafts, I am unaware if they just don't work.

What you cannot do is add new units. Am I wrong?

Post has been edited 2 time(s), last time on Apr 8 2016, 2:32 am by Roy.



fuck you all

Feb 29 2016, 6:38 am Pr0nogo Post #12



You can't add new units. You can add new button sets. I do it all the time in FireGraft.




Mar 1 2016, 5:49 pm SCRuler Post #13



Quote from Pr0nogo
You can't add new units. You can add new button sets. I do it all the time in FireGraft.
I'm aware.
I just managed to get the larva button working somehow. Pretty stoked.

Now, I just need to find a means to add a proper animation for the engie hero to build those traps.

Post has been edited 2 time(s), last time on Mar 2 2016, 12:43 am by SCRuler.



None.

Options
  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[2026-6-23. : 3:29 am]
DarkenedFantasies -- Probably just didn't care. For example, at some point before release, they've updated the graphics of some of the Protoss buildings (Forge, CyberCore, Citadel, Observatory, Arbiter Tribunal), but instead of properly re-rendering them with edited 3D models, they did crappy copy-paste jobs on the rendered graphics.
[2026-6-22. : 8:35 pm]
Ultraviolet -- :wob:
[2026-6-21. : 11:38 pm]
Symmetry -- :wob:
[2026-6-21. : 4:56 am]
Ultraviolet -- I suppose we'll likely never know, but my guess would be that they already saw it operating successfully and there was no monetary incentive to finish the original work. And the dev cycle in old school Blizzard was so hectic, it's possible it just got forgotten about after the original game got released. Plus there's an element of existing MPQ files that were packaged with the original discs becoming outdated if they updated it. And it's not like they remade the original MPQs, they just made new ones for BW specifically
[2026-6-21. : 4:26 am]
Oh_Man -- so that makes me think maybe the theory they are unfinished is not true and its a deliberate design decision, coz why not finish them wen ur making brood war?
[2026-6-21. : 4:25 am]
Oh_Man -- the thing is thos buildings are from classic. that means they went ahead and made brood war without ever finishing the 'unfinished' buildings
[2026-6-20. : 6:15 pm]
Ultraviolet -- Yeah he's talked about a lot of that stuff in his casts before. It seems plausible. Especially knowing how Blizzard of yesteryear operated.
[2026-6-20. : 3:47 pm]
NudeRaider -- to clarify: couldn't recall the behavior for every single Protoss building but I was aware the disparity exists.
[2026-6-20. : 3:43 pm]
NudeRaider -- Contained nothing new for me. Didn't know all building's behavior, but very much all unit's. Also Terran balance whine - also nothing new :lol:
[2026-6-19. : 9:57 am]
Oh_Man -- makes me wonder if SEN knows anything about the topic
Please log in to shout.


Members Online: RIVE, O)FaRTy1billion[MM]