Site hosted by Angelfire.com: Build your free website today!

!TUTORIALS!

Note: All tutorials that have not been written by me have given me permission to post them on this site. The Author will be displayed at the top of each tutorial

Tutorial 1: Money Author: Captain Difficulty: **  Tools Needed: T-mog, Script Station

Here's a quick tutorial on basic hacking, where you learn the basics of script station. In this tutorial you'll learn how to make a vase that gives you money.

GETTING READY
-------------------

First clone the vase sculpture
close t-mog and open up script station
In script station open up your vase by going to file-open.
Under the SimAntics Scripts there is a Behavior numbered 4097 called View. (Thats all the code that makes your sim happy or mad when they look at the sculpture in the game.) Open it up by double clicking.
Click the optimize button. That puts all the code in order and sorts it.
The 3rd piece of code calls some code that is build into the acctual game makes more of the reaction. Open that up by double clicking.

CODING
----------
Now coding, click on the button called 'Expert Edit' (its where you code.)
All those numbers are called hexadecimals. That is what the game is programmed out of (mostly...).
What are each section?
Function: When you put a number in here, it determines what the section of code your working on does.
Parameters (0-3): These are values that can change more of what the code is doing.
Its kind of hard to explain what everything does.

Ok, now for the 'getting money code'.
in the second box under function put 25. That says its going to do something with money.
In parametre0 second box again, put 1795. This continues with 25 under function.
In oarametre1 and under the second box put 1000. This is how much your sim is going to get.
parametre2 in the second box put 2. This says that its going to add money to your sims budget.
Lastly in parametre3 in the second box put 0. This just leaves that parameter empty.

Hopefully you'll get "Budget of 0x03[0]: (1000, BUDGET_ADD, MISC_EXPENSE);"
That says 'add 1000$ to the sims budget.'

You can now click ok and close Edit Expert.
Click ok and get out of that section of code.
Now click on the add button to add a new section of code to the 'view" bhav (Behavior).
Double click on your new piece of code, and go into expert edit.
Now to add that little sign that says how much money you get (it appears above your sims head.)

All of this is in the second box.

Function: 2
Parametre0: 1
Parametre1: 1000 'This is the number that will appear over your sims head'
Parametre2: 1018
Parametre3: 1810
Hopefully you got 'my person data Money Amount over Head += 1000'

Close this area and create a new line (by click add in the main area of the view bhav.)
Now open your new empty line and go into expert edit and put this code in the second box of each section.

Function: 23
Parametre0: 300
Parametre1: 0
Parametre2: 0
Parametre3: 0
This is that caching sound
Hopefully you got 'Play Sound Event (Stack: 300,0,0,0)'

Now to connect all the code.
Open up line 3 and go into expert edit. Now where it says true/false put in the first box "07" (this says if everything is ok goto line 7) and in the second box put "FE" (meaing if everything isn't ok just stop)
close that line and go into line 7 in expert edit.
In true (first box) put "08" (goto line 8 if everything is ok)
In false (second box) put "FE".
Close that line and go into your 8th line.
In true put "04"
In falso put "FE"
Close that line your working on and click the optimize button, to sort everything.

Now close that bhav that you were coding and save. After saving close Script Station and after its closed open it back up. Why? Its because there is a small bug is Script Station that if you don't close after saving you lose your data. After opening SS back up get into your vase again.

the Interactions Section and in the #132 Sculptures - Vase Tree Table (this is the menu when you click on the object in the game) Open that up.
Where it says view, change that to 'get $1000' and close that window, save, and exit SS.

Now go into the sims, and you should get your money.