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.
[10:34 am]
NudeRaider -- SEN doesn't rely on spammers initiate its sleep cycle. It hat fully automated rest and clean-up phases. Please understand that this is necessary for the smooth operation of the site. Thank you.
[03:45 am]
Sylph-Of-Space -- Does the shoutbox get disabled when there's spammers?
[2024-5-17. : 6:47 am]
NudeRaider -- lil-Inferno
lil-Inferno shouted: nah
strong
[2024-5-17. : 5:41 am]
Ultraviolet -- 🤔 so inf is in you?
[2024-5-17. : 4:57 am]
O)FaRTy1billion[MM] -- my name is mud
[2024-5-17. : 4:35 am]
Ultraviolet -- mud, meet my friend, the stick
[2024-5-16. : 10:07 pm]
lil-Inferno -- nah
[2024-5-16. : 8:36 pm]
Ultraviolet -- Inf, we've got a job for you. ASUS has been very naughty and we need our lil guy to go do their mom's to teach them if they fuck around, they gon' find out
[2024-5-16. : 5:25 pm]
NudeRaider -- there he is, right on time! Go UV! :D
[2024-5-16. : 5:24 pm]
lil-Inferno -- poopoo
Please log in to shout.


Members Online: 4jasminee571yc3, Roy, 6camilac933eM4