Staredit Network > Forums > Modding Assistance > Topic: Several modding questions
Several modding questions
Jul 17 2012, 7:27 am
By: Rye123  

Jul 17 2012, 7:27 am Rye123 Post #1



Please help with these questions!
1.) Is there a way to give the command centre an attack?
2.) Is there a way to make refineries give cash every few seconds instead of SCVs?
3.) Is it possible to change a unit's speed?
4.) Is it possible to make a mobile bunker?

Thanks!

Post has been edited 1 time(s), last time on Jul 17 2012, 8:17 am by Rye123.



None.

Jul 17 2012, 8:50 am IskatuMesk Post #2

Lord of the Locker Room

1 - firegraft, iscript, datedit
2 - exe edit
3 - flingy.dat or iscript (flingy for air flag, iscript for ground pathing)
4 - not sure, if anything you are likely to encounter hard code or issues related to the overlay I think. Never tried it because I always made my stuff AI friendly and bunkers are far from Ai friendly.



Show them your butt, and when you do, slap it so it creates a sound akin to a chorus of screaming spider monkeys flogging a chime with cacti. Only then can you find your destiny at the tip of the shaft.

Jul 17 2012, 9:42 am Sand Wraith Post #3

she/her

Fairly certain mobile bunkers are impossible since the attack origin will always be where the bunker was first created.




Jul 17 2012, 12:23 pm Rye123 Post #4



How do I go about doing the possible ones?



None.

Jul 17 2012, 12:48 pm Biophysicist Post #5



Command Center with an attack... First, you'll need to give it a weapon in units.dat. Second, you'll need to make the graphic turn in, iirc, images.dat, but I'm very unsure about this step. Third, give it an attack animation in iscript.bin; look at the Photon Cannon script if you need an example, or one of the tutorials floating around. Lastly, give it an attack button in Firegraft.

Refineries giving cash periodically will require either triggers or a plugin, as opposed to an EXE Edit like Iskatu said as there isn't one for that. I'm unsure of how to import triggers into a mod, though, honestly.

Unit speed is controlled by iscript.bin and optionally also by flingy.dat. The move command in iscript must go in a walking animation, and makes the unit move up to that many pixels that frame. Like, move 7 will make it move up to 7px. For flingy.dat, you must set the unit to flingy.dat control in the graphics tab of units.dat, then edit the flingy, and it should be obvious how.

Mobile Bunkers are weird. As Hydro said, the units attack from where they were loaded, not the actual center of the Bunker. I don't see any way to do it.



None.

Jul 17 2012, 2:10 pm Sand Wraith Post #6

she/her

You could look at how the Photon Cannon attacks. You may not need the Command Centre to turn in order to attack. Again, see the Photon Cannon and its various properties.

I think triggers need some work with modifying existing triggers of game type rules. I don't remember how to do any of this.




Jul 17 2012, 11:06 pm IskatuMesk Post #7

Lord of the Locker Room

Firegraft plugin = ultimately an exe edit. Haven't messed with triggers. I think you can port triggers into a mod by replacing the default .got files or whatever they were. You can't use locations, though, AFAIK. Not something I did much with other than to change starting resources.



Show them your butt, and when you do, slap it so it creates a sound akin to a chorus of screaming spider monkeys flogging a chime with cacti. Only then can you find your destiny at the tip of the shaft.

Jul 18 2012, 6:01 pm poiuy_qwert Post #8

PyMS and ProTRG developer

Triggers are done with .got templates and their associated .trg files. But as IskatuMesk mentioned locations don't normally work. The reason you can't normally use locations with got trg's is that all the locations are positioned at 0,0 with size 0,0 (even "Everywhere") when not in UMS. But you can use LocUnlock plugin to be able to modify the locations through triggers. You'll also need to use a custom .trg compiler to generate the LocUnlock actions. PyTRG (from PyMS) has built in support, ProTRG can compile them though you'll have to make the actions raw, and there may be some other programs but I can't think of any.
The other problem with got trg's is that some actions seem to be disabled in melee, so even though you have locations they just dont work. What the OP wants to do should definitely work (off the top of my head, all Conditions should work, just some actions might not work, like: GiveUnitsToPlayer and Modify Shields).

(Note: All programs menioned can be found in my sig.)




Options
  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[03:27 am]
m.0.n.3.y -- Maybe because it's an EUD map?
[03:27 am]
m.0.n.3.y -- Can't upload maps to the DB. Error says "The action you have performed caused an Error". Any word?
[07:46 am]
RIVE -- :wob:
[2024-4-22. : 6:48 pm]
Ultraviolet -- :wob:
[2024-4-21. : 1:32 pm]
Oh_Man -- I will
[2024-4-20. : 11:29 pm]
Zoan -- Oh_Man
Oh_Man shouted: yeah i'm tryin to go through all the greatest hits and get the runs up on youtube so my senile ass can appreciate them more readily
You should do my Delirus map too; it's a little cocky to say but I still think it's actually just a good game lol
[2024-4-20. : 8:20 pm]
Ultraviolet -- Goons were functioning like stalkers, I think a valk was made into a banshee, all sorts of cool shit
[2024-4-20. : 8:20 pm]
Ultraviolet -- Oh wait, no I saw something else. It was more melee style, and guys were doing warpgate shit and morphing lings into banelings (Infested terran graphics)
[2024-4-20. : 8:18 pm]
Ultraviolet -- Oh_Man
Oh_Man shouted: lol SC2 in SC1: https://youtu.be/pChWu_eRQZI
oh ya I saw that when Armo posted it on Discord, pretty crazy
[2024-4-20. : 8:09 pm]
Vrael -- thats less than half of what I thought I'd need, better figure out how to open SCMDraft on windows 11
Please log in to shout.


Members Online: CarpetCleaningWokin, Roy