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.
[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
[11:50 pm]
O)FaRTy1billion[MM] -- nice, now i have more than enough
[11:49 pm]
O)FaRTy1billion[MM] -- if i don't gamble them away first
[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
[2024-4-17. : 1:52 am]
Vrael -- hah do you think I was born yesterday?
[2024-4-17. : 1:08 am]
O)FaRTy1billion[MM] -- i'll trade you mineral counts
[2024-4-16. : 5:05 pm]
Vrael -- Its simple, just send all minerals to Vrael until you have 0 minerals then your account is gone
Please log in to shout.


Members Online: Ultraviolet, Roy, NudeRaider