*bump* (it was at the bottom of the page, so this is justified)
Anyone?
Hey
I'm just enquiring how to use the "switch battle plans" special power to make a structure change appearance and weapon?
In my case, I've got a defense structure, when it's built, it lacks any weapon/turret, but you click a button that allows you to select either an AA weapon, an anti-tank weapon, or well, you get the idea
But all I've seen a direct ENUM call, without anything mentioned how you can change what gets modified
Thanks
-W3bbo
Okay, so I've just learned that ENUM calls are actually Module Calls
So how do I edit Modules?
The stuff in Deezire's module *.doc is exactly what I'm after, so how do I use it?
-W3bbo
*bump* (it was at the bottom of the page, so this is justified)
Anyone?
The StrategyCenter Battle plans are actually upgrades (look in GameData.ini file for battleplan), unless I am incorrect I think they are (kind of like heroic upgrade or whatever you know?) so anyway you also have to set up a W3D form change upgrade (like the strategycenter or a USA power plant).
As for ENUM they have special meanings in the actual coding... so if you use 1 make sure it is the closest to what you are trying to accomplish... for instance use remote charge enum for a OCLSpecialPower as appose to black lotus' cash hack ENUM... hope this helps
AFAIK the battle plan changing is done by passing a special parameter from the CommandButton to the battleplan enumerator. That then changes the status of the "battleplan" depending on the parameter. It's not an upgrade so.
So how would I use this to make a defense structure that can change weapons?
simple lood at the W3D module part of the strategycenter... it's controled by what you pick for the strategycenter... next week I will post the complete coding for this okay?![]()
Why don't you make the weapon an upgrade to the building and have to where the object, with the wepon, that gets placed on building is sellable so you can place another object on the building.
If you weren't looking to change the model you could use the ranger switch weapon code.
If you use the stratergy center code you will trigger the effects of the strategy center, the bonuses to range, defense, and fire power. the only way to stop that is to remove the code that specifies what the bonuses are and that will make the stratergy center usless. Although I am not sure on this one.
Bookmarks