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.
Can't get the "respawn on death" script to work

0 Members and 2 Guests are viewing this topic.

**
Rep: +0/-0Level 83
http://rmrk.net/index.php/topic,19978.25.html


The script mentioned here, just won't work.

I make a new script and place it above "Main" in the script list.
Make a common event named 1

And I first tried to just use "Transfer player" etc.

Then I read the rest of the topic and made it like this

@>Conditional branch:[Aluxes] is [knockout] inflicted
   @>Entire team knockout etc etc
      @>Transfer player [XXX]
      @>
  :  Else
    @>
  : Branch end     
@>


And I also tried to use it with just the conditional and then under that one transfer player. Since my game just uses one player

Appriciate any help

********
Resource Artist
Rep:
Level 94
\\\\\
Project of the Month winner for June 2009
doesn't work without a script. no exceptions. i've tried it before, sorry.

**
Rep: +0/-0Level 83
I have the script mentioned in the link.

Or what do you mean?

Im quite fresh on these things :)


********
Furry Philosopher
Rep:
Level 94
Rawr?
2013 Best RPG Maker User (Creativity)Gold - GIAW 11 (Hard)Randomizer - GIAW 11Secret Santa 2013 ParticipantFor frequently finding and reporting spam and spam bots2012 Best RPG Maker User (Mapping)2012 Best RPG Maker User (Programming)Secret Santa 2012 ParticipantGold - GIAW 9Project of the Month winner for September 2008For taking a crack at the RMRK Wiki2011 Best RPG Maker User (Programming)2011 Best Veteran2011 Kindest Member2010 Best RPG Maker User (Story)2010 Best RPG Maker User (Technical)
1. Make sure the scriptlet is below the default scripts but above Main.
2. Make sure the common event ID you wish to run is entered into the scriptlet.
3. Make sure the common event is not parallel process or autorun.
4. Make sure the common event heals the player to whatever respawn health you wish.

Check these first and see if it works.




*
Rep:
Level 97
2014 Most Unsung Member2014 Best RPG Maker User - Engine2013 Best RPG Maker User (Scripting)2012 Best Member2012 Best RPG Maker User (Scripting)2012 Favorite Staff Member2012 Most Mature MemberSecret Santa 2012 ParticipantProject of the Month winner for July 20092011 Best Veteran2011 Favourite Staff Member2011 Most Mature Member2011 Best RPG Maker User (Scripting)2011 Best Use of Avatar and Signature Space2010 Best RPG Maker User (Scripting)2010 Best Use Of Avatar And Signature Space
Yeah, and don't name the common event 1 - that's the ID of the common event that has to be 1. You can change that in the script, but that's what it is by default. Get rid of the conditional there too. If the common event is being called, your characters are definitely knocked out.

**
Rep: +0/-0Level 83
so by default the common event is ID'd 001?

or am I missing something?

in the common event menu it says

001: respawn event

and in the script is says yada yada ID = 1

what needs to change?

I tried having the common event look like this

001: 1

didn't work

do I need a trigger in the common even or just create one and have only the  @>  transfer player [xxx] ?
« Last Edit: May 20, 2009, 10:13:15 PM by Vibliribland »

**
Rep: +0/-0Level 83
I tried adding some more events just to see if it called the right common event.

Tried giving money, restoring all and added a text message, all worked except the transiton.

very wierd.

*
Rep:
Level 97
2014 Most Unsung Member2014 Best RPG Maker User - Engine2013 Best RPG Maker User (Scripting)2012 Best Member2012 Best RPG Maker User (Scripting)2012 Favorite Staff Member2012 Most Mature MemberSecret Santa 2012 ParticipantProject of the Month winner for July 20092011 Best Veteran2011 Favourite Staff Member2011 Most Mature Member2011 Best RPG Maker User (Scripting)2011 Best Use of Avatar and Signature Space2010 Best RPG Maker User (Scripting)2010 Best Use Of Avatar And Signature Space
Hrmm..

I think I might have written this script with the intention of it going to gameover at the end. Try adding this line:

Code: [Select]
      $game_temp.in_battle = false

right below:

Code: [Select]
      $game_temp.common_event_id = 1

And see if that fixes it.

**
Rep: +0/-0Level 83
Works perfectly, thanks a lot mate.

Now, while we are on the subject,

Im in need of a savepoint system, an easy one to use.

And ofcourse, to remove the "Save" option from the regular menu.


Can you recommend me one?

Thanks again

******
Revolution is not a bed of roses.
Rep:
Level 91
Project of the Month winner for July 2009
Just use events.