Welcome Guest [Log In] [Register]
Welcome to Northernskies,

You're currently viewing our forum as a guest. This means you are limited to certain areas of the board and there are some features you can't use. If you join our community, you'll be able to access member-only sections, and use many member-only features such as customizing your profile, sending personal messages, and voting in polls. Registration is simple, fast, and completely free.


Join our community!


If you're already a member please log in to your account to access all of our features:

Username:   Password:
Locked Topic
Coding animals so they give money when they are put up for adoption
Topic Started: Aug 27 2012, 11:49 AM (1,590 Views)
Ghost
Member Avatar
Administrator

Coding animals so you get money for putting them up for adoption.
by Ghost
Difficulty:Easy


Always found challenge mode a bit boring? Do you find it stupid that you can't make any money with your breeding programs when you could in the original Zoo Tycoon? Then look no further, because here you can find an easy tutorial to do just that.

Step 1- Locating the needed file
The first thing we need to do is to find the main xml file of the animal we want to edit. So lets say we want to edit the Babirusa made by the ABC team. I open up the z2f file and go to entities>units>animals>ai. In there you see multiple xml files. The one we need is Babirusa.xml. We don't need the files that have adult or young in their names. Note always take the most recent/updated xml files available. So if you use RR and want to edit those animals, make sure you edit the xml files that come with RR and not the old xml files.

Step 2- Editing
Now that we have located the xml file you can either edit it directly or copy it from the z2f file. Now open the xml file with a text editor. The part we need to edit is located at the bottom. Search for the part that looks like the one below.
Code:
 
<ZTEconomyComponent cost="5500">
<ZTTransaction name="build" costType="parent" type="debit" category="animal" />
</ZTEconomyComponent>
The numbers may be different, but that doesn't matter. We have to add the following line to the xml file.
Code:
 
<ZTTransaction name="destroy" cost="100" costType="%parent" type="credit" category="animal" />
When we do that the code looks like this.
Code:
 
<ZTEconomyComponent cost="5500">
<ZTTransaction name="build" costType="parent" type="debit" category="animal" />
<ZTTransaction name="destroy" cost="100" costType="%parent" type="credit" category="animal" />
</ZTEconomyComponent>
We can edit the amount we receive for the adoption by editing the cost="100" part. Do note that the 100 means 100% of the animals original costs. So lets say we want twice the amount we payed for the animal. We do that by changing it to cost="200" and when we want half of the original amount we change it to cost="50".
After you're done editing the file don't forget to save it and update the z2f file.

Closing words
And that's all you need to do to get money for putting animals up for adoption. I hope you enjoy this new feature that should have already been in the game. It certainly makes challenge mode more fun. If there are any questions don't hesitate to ask me.
Offline Profile Goto Top
 
1 user reading this topic (1 Guest and 0 Anonymous)
ZetaBoards - Free Forum Hosting
Fully Featured & Customizable Free Forums
Learn More · Sign-up Now
« Previous Topic · Coding Tutorials · Next Topic »
Locked Topic