The RPG Maker Resource Kit

RMRK RPG Maker Creation => RPG Maker General => General Scripting => Topic started by: Vibliribland on May 20, 2009, 07:16:43 PM

Title: Can't get the "respawn on death" script to work
Post by: Vibliribland on May 20, 2009, 07:16:43 PM
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
Title: Re: Can't get the "respawn on death" script to work
Post by: Grafikal on May 20, 2009, 07:27:56 PM
doesn't work without a script. no exceptions. i've tried it before, sorry.
Title: Re: Can't get the "respawn on death" script to work
Post by: Vibliribland on May 20, 2009, 07:30:01 PM
I have the script mentioned in the link.

Or what do you mean?

Im quite fresh on these things :)

Title: Re: Can't get the "respawn on death" script to work
Post by: Zylos on May 20, 2009, 09:39:09 PM
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.
Title: Re: Can't get the "respawn on death" script to work
Post by: modern algebra on May 20, 2009, 09:52:02 PM
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.
Title: Re: Can't get the "respawn on death" script to work
Post by: Vibliribland on May 20, 2009, 10:08:37 PM
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] ?
Title: Re: Can't get the "respawn on death" script to work
Post by: Vibliribland on May 20, 2009, 10:27:58 PM
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.
Title: Re: Can't get the "respawn on death" script to work
Post by: modern algebra on May 20, 2009, 10:53:39 PM
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.
Title: Re: Can't get the "respawn on death" script to work
Post by: Vibliribland on May 21, 2009, 09:50:01 AM
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
Title: Re: Can't get the "respawn on death" script to work
Post by: Falcon on May 21, 2009, 11:57:10 AM
Just use events.