Staredit Network > Forums > Modding Assistance > Topic: [help] starting energy
[help] starting energy
Aug 10 2019, 7:18 pm
By: Lagi  

Aug 10 2019, 7:18 pm Lagi Post #1



I try to set starting energy more than 50. I check all GPTP can not find it (there is max energy 250 or 200 to be modify).

Would like to change it globally for each unit to be let say 100. But would appreciate to know how to set it for each individual unit as well.

edit:
in Firegradt there is exe edit for Spellcaster, select custom caster and second option set energy, but I dont know how to set it up.

Post has been edited 1 time(s), last time on Aug 12 2019, 7:22 am by Lagi.



None.

Sep 2 2019, 9:44 pm Lagi Post #2



still dont know how to set higher starting energy,

but nice thing - energy update increase reg speed by 25%. Just put into game hook.cpp

//energy upgrade +25%energy regeneration rate

if(
(unit->id == UnitId::ghost && (scbw::getUpgradeLevel(unit->playerId, UpgradeId::MoebiusReactor)) && !(unit->status & UnitStatus::Cloaked)) ||
(unit->id == UnitId::wraith && (scbw::getUpgradeLevel(unit->playerId, UpgradeId::ApolloReactor)) && !(unit->status & UnitStatus::Cloaked)) ||
(unit->id == UnitId::battlecruiser && (scbw::getUpgradeLevel(unit->playerId, UpgradeId::ColossusReactor))) ||
(unit->id == UnitId::queen && (scbw::getUpgradeLevel(unit->playerId, UpgradeId::GameteMeiosis))) ||
(unit->id == UnitId::defiler && (scbw::getUpgradeLevel(unit->playerId, UpgradeId::MetasynapticNode))) ||
(unit->id == UnitId::high_templar && (scbw::getUpgradeLevel(unit->playerId, UpgradeId::KhaydarinAmulet))) ||
(unit->id == UnitId::arbiter && (scbw::getUpgradeLevel(unit->playerId, UpgradeId::KhaydarinCore))) ||
(unit->id == UnitId::corsair && (scbw::getUpgradeLevel(unit->playerId, UpgradeId::ArgusJewel))) ||
(unit->id == UnitId::medic && (scbw::getUpgradeLevel(unit->playerId, UpgradeId::CaduceusReactor))) ||
(unit->id == UnitId::dark_archon && (scbw::getUpgradeLevel(unit->playerId, UpgradeId::ArgusTalisman)))
)
unit->energy += 2; // 8 is default speed


//end energy upgrade +25%energy regeneration rate


Post has been edited 1 time(s), last time on Sep 8 2019, 9:41 am by Lagi.



None.

Options
  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[01:39 am]
Ultraviolet -- no u elky skeleton guy, I'll use em better
[10:50 pm]
Vrael -- Ultraviolet
Ultraviolet shouted: 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
hey cut it out I'm getting all the minerals
[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
[2024-4-17. : 11:50 pm]
O)FaRTy1billion[MM] -- nice, now i have more than enough
[2024-4-17. : 11:49 pm]
O)FaRTy1billion[MM] -- if i don't gamble them away first
[2024-4-17. : 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?
Please log in to shout.


Members Online: Roy, Moose, IlyaSnopchenko