Main Menu
  • Welcome to The RPG Maker Resource Kit.

LIves

Started by punishermark13, May 14, 2007, 09:28:02 PM

0 Members and 1 Guest are viewing this topic.

punishermark13

i wqant a lives script like mario so when die you can have like three new chances and can gain lives after having like three coins
mark

ChaosSpartan28

Script wouldnt be necessary. Just use variable in a common event.

Example (doesnt really work but close to the concept)

For instance Variable Lives = 3
Conditional Branch for Variable Lives (Player Death, Player Gain)
if Player Death:  Variable Lives -1
if PLayer Gain: Variable Lives +1

Its not all that hard, eventing can do many things this easy but you just have to be very good add making if statements XD
Sig by MacGravel

WcW

I'll post how to do this soon, so don't worry about figuring it out yourself.  I should have it up soon.
If you are reading this, the government of the U.S.A. is currently planting a chip in your brain.
People like decreasing my Rep. In fact, people like decreasing most others people's rep.

WcW

#3
Here's how you get it too work, but only the basics.  If you need to see how to make it restart the level, post it.

Here's how to make it work:  simple.  When you walk into a coin, have it increase num_coin by 1.  Of course, you will need to have num_coin and life as variables.  Also, replace [] with the actors name.  It should now work.  If it doesn't, post what its doing.

-TGWP
If you are reading this, the government of the U.S.A. is currently planting a chip in your brain.
People like decreasing my Rep. In fact, people like decreasing most others people's rep.

Zeriab

I suggest you write when the common event Lives should be called. Or do you want it as a parallel process?
Either way implementing the lives system with events and event commands alone so that it works with every combat (random included) would be a bitch.
I naturally mean the random battles.

I personally suggest you want for someone to cook you up a script.

WcW

My bad... Yep, parallel process.   That should work on anything, really, I don't see what the problem is.  Anyway, to set up the Parallel Process:

Switch trigger to parallel process, and switch the switch thingy to a switch just ofr this, and activate the switch at the beginning of the game.  I think that should work...
If you are reading this, the government of the U.S.A. is currently planting a chip in your brain.
People like decreasing my Rep. In fact, people like decreasing most others people's rep.

Zeriab

The problem would be that parallel common events do not run during combat.
If you die in a random encounter combat you go directly to game over. The common events set to parallel will not be run.

WcW

Hmm... good point... That could be easily fixed, but first, to punishermark13, are you going to use random encounters?
If you are reading this, the government of the U.S.A. is currently planting a chip in your brain.
People like decreasing my Rep. In fact, people like decreasing most others people's rep.

punishermark13

Well i want is wen my guy touches a enemy he loses a live and at 0 gameover.no random encounters!
mark

Kokowam

Hero touch-

Subtract 1 from variable "Life"

Common event, Parallel process-

If "Life" = 0, Game over. :P

WcW

Ah!  Just use mine before, but make the hero touch add KO to your status, it will take you less work.  Pluss, it makes me seem more useful  :o
If you are reading this, the government of the U.S.A. is currently planting a chip in your brain.
People like decreasing my Rep. In fact, people like decreasing most others people's rep.