Home > Tutorials > RPG Maker XP > how to make a "criminal" system.
how to make a "criminal" system. 
now,
1. create a city, it should be one with many opportunities to break the law, create a variable called "criminal".
the lawbreaking thing is very easy, just put a civilian on the map.
put a show choices on him and make one of the options "attack", then put variables (criminal)=1 under the "attack" option.
some examples:
attacking a guy, or even worse, a guard.
getting into the city without paying.
walking into a restricted area.
2. now copy the law breaking event (civilian etc.) and paste it all over the map so it's not just one civilian.
3 create a guard, i used the "soldier 2" as sprite.
4. now, on the first page, put what you want him to do when you are not criminal,
EXAMPLE:
show text: "nice day isn't it"
show choices: "yes indeed", "nope, not really"
5. then create a new page, put conditions: variable "criminal"=1
on this page put movement to "approach" and frequency to "highest", then put trigger on "event touch.
put a show text which says:
"stop, in the name of the law, pay a fine of (put an amount of money) or go to jail"
6. now input a show choices.
"ok, i'll pay"
what happens: change gold - (the amount you choose)
controll variables: "criminal" set to 0
"never"
show text: "ok, then you will go to jail"
now make a jail and transfer the player there (remember to make plenty of ways to escape the jail)
or change the whole jail thing with "or leave the city!"
ESCAPING:
create some stuff that you can hide in, an empty barrel, a bush etc. then create an event on it:
trigger: action button, movement: fixed, frequency: lowest.
then put show choices: "hide" "cancel"
cancel is obvious, but under hide put set move route (player) to change opacity "0", then press control variables and criminal to random (batch) 0 - 1, and then put a conditional branch= variable criminal is 1 or above: show text: shit! they saw you, run! set move route, change opacity "256", or else: show text: "puuuh, they lost track of you" set move route set opacity "256".
thats it.
|
|
Details
|
|
Tutorial:
|
how to make a "criminal" system. |
|
Date Listed:
|
Thu, 08 Oct 2009 16:18:07 -0400 |
|
Author:
|
valdred
|
|
Total Hits:
|
855 |
|
|