View Single Post
Old 08-03-2004, 06:52 PM   #9 (permalink)
Kelso
Senior Member
 
Join Date: Jun 2003
Posts: 462
Send a message via AIM to Kelso Send a message via MSN to Kelso
Default

Shortcut bar or Controlbar?

If you use the controlbar you'll have more spaces to work with (14 in ZH if I remember correctly.) ((There is an option to disable it from being fired from the shortcut bar somewhere in the superweapon code))

That is an interesting thought, and I suppose it could be used to emulate CnC style construction (minus the minimum range). As for "paying" for the structure, there is an option that is used in Oil Derrick/Black Market code that is called something like InitialBurst = (the oil derrick uses this to give you 1000 credits as soon as you capture the structure) perhaps you could use that to take away all the money at once, and then set the other variables to 0 so it wouldn't take any more credits away from the player. Just a thought.

As for coding the actual superweapon, you first have to make a new science, then make a new specialweapon that requires that science to be built. After that it varies, for structures that are available right off the bat, you can edit IntrinsicSciences = in PlayerTemplate.ini and grant the science to the player as soon as the game starts. To emulate prerequisites you'll have to use a GrantScience module tag on the prerequisite structure. Sorry I can't be more specific and some of the names might not be correct but I don't have the files in front of me as I had a comp crash this week.
Kelso is offline   Reply With Quote