May 23, 2002, 15:08
|
#1
|
Prince
Local Time: 18:11
Local Date: October 31, 2010
Join Date: Apr 2002
Location: USA
Posts: 916
|
Converting units to PW
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?
|
|
|
|
May 23, 2002, 18:11
|
#2
|
Deity
Local Time: 03:11
Local Date: November 1, 2010
Join Date: Nov 1999
Location: De Hel van Enschede
Posts: 11,702
|
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.
|
|
|
|
May 24, 2002, 00:15
|
#3
|
Prince
Local Time: 18:11
Local Date: October 31, 2010
Join Date: Apr 2002
Location: USA
Posts: 916
|
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
|
|
|
|
May 24, 2002, 03:52
|
#4
|
King
Local Time: 01:11
Local Date: November 1, 2010
Join Date: Oct 2001
Location: Of the universe / England
Posts: 2,061
|
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
|
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is On
|
|
|
All times are GMT -4. The time now is 21:11.
|
|