RMRK is retiring.
Registration is disabled. The site will remain online, but eventually become a read-only archive. More information.

RMRK.net has nothing to do with Blockchains, Cryptocurrency or NFTs. We have been around since the early 2000s, but there is a new group using the RMRK name that deals with those things. We have nothing to do with them.
NFTs are a scam, and if somebody is trying to persuade you to buy or invest in crypto/blockchain/NFT content, please turn them down and save your money. See this video for more information.
LIves

0 Members and 1 Guest are viewing this topic.

**
Rep:
Level 88
yea!!
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

*
Shooting for the "MEMBER MODERATOR OF THE YEAR 2007" Award
Rep:
Level 89
Hi, there.
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

pokeball WcWOfflineMale
***
Rep:
Level 87
2 + 2 is a math problem, NOT 4.
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.

pokeball WcWOfflineMale
***
Rep:
Level 87
2 + 2 is a math problem, NOT 4.
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
« Last Edit: May 14, 2007, 10:49:26 PM by theguywithproblems »
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.

*
? ? ? ? ? ? ? ? ? The nice kind of alien~
Rep:
Level 92
Martian - Occasionally kind
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.

pokeball WcWOfflineMale
***
Rep:
Level 87
2 + 2 is a math problem, NOT 4.
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.

*
? ? ? ? ? ? ? ? ? The nice kind of alien~
Rep:
Level 92
Martian - Occasionally kind
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.

pokeball WcWOfflineMale
***
Rep:
Level 87
2 + 2 is a math problem, NOT 4.
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.

**
Rep:
Level 88
yea!!
Well i want is wen my guy touches a enemy he loses a live and at 0 gameover.no random encounters!
mark

*
A Random Custom Title
Rep:
Level 96
wah
Hero touch-

Subtract 1 from variable "Life"

Common event, Parallel process-

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

pokeball WcWOfflineMale
***
Rep:
Level 87
2 + 2 is a math problem, NOT 4.
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.