Staredit Network > Forums > Modding Assistance > Topic: Making an ability cost minerals
Making an ability cost minerals
Jul 7 2012, 8:54 pm
By: Pr0nogo  

Jul 7 2012, 8:54 pm Pr0nogo Post #1



I need to mod the Yamato Cannon to cost minerals. I'm trying to make a sort of 'ammo' system, where the mineral counter acts as the amount of times the player may use the ability. This would allow me to place ammo caches here and there. Any ideas?




Jul 9 2012, 4:47 pm Biophysicist Post #2



Plugin, natch. Do you know C++ and have access to GPTP? If so, do a unit loop and check when unit->mainOrderId is whatever Yamato's order is, which can be looked up in enumerations.h or order.dat. Inside that block, check if the player's minerals are high enough; deduct if they are, and otherwise set unit->mainOrderId to 1 (which is Stop).



None.

Jul 9 2012, 6:59 pm Pr0nogo Post #3



Quote from Biophysicist
Do you know C++

No.




Jul 11 2012, 5:56 pm xAngelSpiritx Post #4

eternal lurker

I've asked about this before; see here.

Quote from Biophysicist
Plugin, natch. Do you know C++ and have access to GPTP? If so, do a unit loop and check when unit->mainOrderId is whatever Yamato's order is, which can be looked up in enumerations.h or order.dat. Inside that block, check if the player's minerals are high enough; deduct if they are, and otherwise set unit->mainOrderId to 1 (which is Stop).
Won't that cause the minerals to be deducted for every frame that the order is being executed, instead of just once?



None.

Jul 11 2012, 6:54 pm Biophysicist Post #5



Yah, that's what I ran into and why this isn't done yet. >.>



None.

Jul 11 2012, 7:52 pm Pr0nogo Post #6



Thanks for the service, nonetheless. This is well beyond me.




Options
  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[06: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
[2024-4-20. : 8:09 pm]
Vrael -- woo baby talk about a time crunch
[2024-4-20. : 8:08 pm]
Vrael -- 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
so that gives me approximately 27 more years to finish tenebrous before you get to it?
[2024-4-20. : 7:56 pm]
Oh_Man -- lol SC2 in SC1: https://youtu.be/pChWu_eRQZI
Please log in to shout.


Members Online: Roy