 |
 News Tracker
 |
 |
 |
Select a topic:
|
 |
|
|
 |
|
|
 |
 Headlines
 |
 |
 |

May 17, 2013 01:19 Banshee
Today's blockbuster: C&C Legos: Seas...
May 14, 2013 23:54 Banshee
PPM Hosted Mod News (covering early may)
May 14, 2013 17:43 Banshee
Reminder: Cartographer's Call Competitio...
May 14, 2013 17:36 Banshee
OpenRA Release 20130514 is ready!
May 14, 2013 16:12 Banshee
Reinforcements have arrived: more public...
May 14, 2013 15:42 Banshee
Chat about your favourite games at Proje...
May 13, 2013 06:26 Banshee
Interview, development diary, etc at the...
May 12, 2013 16:56 Banshee
Progress with Voxel Section Editor III

|
 |
|
|
 |
|
Featured Mod
|
Featured Content
|
|
|
|
|
|
 |
 |

Basic Tutorial to adding New Crate Surprises
September 17, 2007 - 07:30
|
 |
 |
This is a simple basic tutorial to adding new crate surpises.
In this we'll be adding a Predator crate so you'll only need to add 2 new xml files to your mod. The 1st is the GenericCrateSpawner.xml found in the Neutral/Units folder. The next is the UnitCrate.xml found in your Neutral/Crates folder. Make copies of both in your Mod/Data folder.
1st we'll make the Predators crate info. Open the UntiCrate.xml and look for the following code ID under Game Object.
<GameObject
id="UnitCrate"
Change the ID to:
<GameObject
id="UnitGDIPredatorCrate"
Next go to the following code under Behaviors:
<Behaviors>
<UnitCrateCollide
id = "ModuleTag_CrateCollide"
UnitCount="4"
UnitType="GDIPitbull"></UnitCrateCollide>
Change it to:
<Behaviors>
<UnitCrateCollide
id = "ModuleTag_CrateCollide"
UnitCount="1"
UnitType="GDIPredator"></UnitCrateCollide>
Finally, save it and then rename it as UnitGDIPredatorCrate.xml
Ok, that part is done. Next comes the GenericCrateSpawner.xml which tells the game what crates to spawn. This bit is simple and quick.
Open and find this code under Behaviors:
<Behaviors>
<SpawnCrateUpdate
id="ModuleTag_SpawnCrateUpdate">
<CrateList>MoneyCrateMP</CrateList>
<CrateList>VeterancyCrateMP</CrateList>
<CrateList>HealCrateMP</CrateList>
Just add your new crate name like this:
<Behaviors>
<SpawnCrateUpdate
id="ModuleTag_SpawnCrateUpdate">
<CrateList>MoneyCrateMP</CrateList>
<CrateList>VeterancyCrateMP</CrateList>
<CrateList>HealCrateMP</CrateList>
<CrateList>UnitGDIPredatorCrate</CrateList>
Save and you're done with that one.
Lastly, open your mod.xml and add both the GenericCrateSpawner.xml & UnitGDIPredatorCrate.xml files to it and save.
That's it. Just build and play. You will need to make a unit file for each unit you want added. And it's not just limited to units. Any number of things can be added, like exploding crates, etc, so play around with it and have fun.
Cheers,
Rebelmoon
|
|
|
|
|
Project Perfect Mod Webmasters: Banshee & Sk8erkid
© Since 2000 AD Project Perfect Mod Group. All rights reserved.
Powered by phpBB © phpBB Group
"Oibles!" is a random trademark from Project Perfect Mod and Kane.
"He who loves the game, mods the game. He who mods the game, lives the game" is also a random trademark from Project Perfect Mod.
Website design by Muldrake
|