The idea is a unit, that after a certain event is turned into PW points. I know that this may sound strange, but do any of you modders think it is possible? If so, what do you think the best path for implementing it into a scenario/mod would be?
Sure it's possible. All that's required is to kill the unit (KillUnit(tmpUnit);) and add PW points (pw = player[5].publicworkslevel; SetPW(tmpPlayer, (pw + bonus);). If you want to make the amount of PW you get dependant on the cost of the unit, use UnitDB(tmpUnit.type).ShieldCost.
Thanks Locutus. Sometimes I feel like I may be biting off more than I can chew, but thanks to SLIC studs like yourself, I'm learning more and more about this stuff everyday
why public works you can mod it to gold as well just use the
givegold(player, amount);
command
__________________
"Every time I learn something new it pushes some old stuff out of my brain" Homer Jay Simpson
The BIG MC making ctp2 a much unsafer place. Visit the big mc’s website