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.
[03:59 am]
NudeRaider -- IlyaSnopchenko
IlyaSnopchenko shouted: NudeRaider is that why there's rather little activity here?
Maybe a little, but it was pretty barren before as well. At least now the site doesn't break down non-stop.
[10:56 pm]
RdeRenato -- x2
[10:41 pm]
lil-Inferno -- ya
[09:33 pm]
IlyaSnopchenko -- NudeRaider
NudeRaider shouted: yeah who needs minerals? Everone is on discord anyway
is that why there's rather little activity here?
[08:01 pm]
NudeRaider -- yeah who needs minerals? Everone is on discord anyway
[02:52 pm]
Vrael -- who needs minerals I got minerals I got minerals for the low low price of only 2 minerals per mineral who needs minerals
[02:49 pm]
Voyager7456 -- I'm down like 2000 minerals lmao
[02:42 pm]
Suicidal Insanity -- It feels like the boxes just barelz break even in the long term
[01:31 pm]
MTiger156 -- I got a 0 again. Back to being a #BrokeBoi
[2020-8-04. : 9:57 am]
UndeadStar -- I just opened my 1st box, 40 minerals :wob:
Please log in to shout.


Members Online: Roy, jun3hong