Help! Modding Question

patrick.nagel

Chieftain
Joined
Jul 14, 2006
Messages
12
Civ Modders,

I'm designing a mod that adds additional nuclear weapons to the game, and decided to start with the WWII vintage "Little Boy" fission bomb. I've created the new unit, modified the Bomber and Stealth Bomber to act as bomb-only transports, and now seek to add a "Nuclear Strike" option to the Bomber and Stealth Bomber's interfaces.

it should:

a) only be selectable if a nuclear bomb is loaded
b) trigger the appropriate bombing animations
c) if the bomber is not intercepted, delete the bomb unit and trigger a nuclear blast on the selected tile.

I've figured out that this functionality can't be implemented in XML, and need a few pointers as to where I should be looking.

:nuke: :nuke: :nuke:

Thanks!
patrick
 
patrick.nagel said:
Civ Modders,

I'm designing a mod that adds additional nuclear weapons to the game, and decided to start with the WWII vintage "Little Boy" fission bomb. I've created the new unit, modified the Bomber and Stealth Bomber to act as bomb-only transports, and now seek to add a "Nuclear Strike" option to the Bomber and Stealth Bomber's interfaces.

it should:

a) only be selectable if a nuclear bomb is loaded
b) trigger the appropriate bombing animations
c) if the bomber is not intercepted, delete the bomb unit and trigger a nuclear blast on the selected tile.

I've figured out that this functionality can't be implemented in XML, and need a few pointers as to where I should be looking.

:nuke: :nuke: :nuke:

Thanks!
patrick

Yup. One way of doing it is adding bombing missions, etc. to the SDK. For a python approach, however, you can try this:

http://forums.civfanatics.com/showthread.php?t=152314

Using that, you can make a button that is fit right with all your other action butons on the bottom of the screen. When a user clicks it, the mod calls one of your python methods.

Hope that helps!

Edit:

There is an "updated" version of this which makes SDK changes. I'm assuming it has a precompiled DLL, so you don't need to compile the SDK to get it to work. You can find it here:

http://forums.civfanatics.com/showthread.php?t=167144
 
Back
Top Bottom