Help - Search - Members - Calendar
Full Version: [SSS] Death Common Events
RPG RPG Revolution Forums > Scripting > Script Submissions > RGSS2-Submissions
Shanghai
Shanghai Simple Script - Death Common Events
made by Shanghai



Link/Script
Click here

Introduction
This script causes certain actors and enemies to trigger common events when they die in battle. Although this could be evented, there's a lot of messy condition work involved with battle event pages, which is why I created this script.

How to Use
To tell the game what common events to run when actors or classes die, change these settings in the module.

CODE
  ACTOR_DEATH_EVENTS ={
  # Actor => Common Event ID
        1 => 15,
        2 => 16,
        3 => 17,
        4 => 18,
  } # Remove this and perish.

  CLASS_DEATH_EVENTS ={
  # Class => Common Event ID
        1 => 19,
        2 => 20,
        3 => 21,
        4 => 22,
  } # Remove this and perish.


To tell the game what common events to run when enemies die, put this notetag inside of the enemy's notebox:

CODE
<death event: x>


This is for enemies. Makes common event x run when the enemy dies.

Compatibility
- Compatible with Battle Engine Melody

For more Shanghai Simple Scripts
Visit Here.
DespairReigns
This is great! Except it isn't compatible with my battle system... sad.gif
Is there any way you can make it compatible with my battle system?
(Battle system scripts are here...)
Leroy
Nice script, definitely cuts down on all that time hassling with conditional branches, I have a question though,
can I make it so that my common event has a "chance" of happening after a switch is turned on?
For example; Main character Lance has a 50% chance of turning into this other form once he is killed after I turn on the "Transform" switch.
Shanghai
Event it.
Garlyle
QUOTE (Leroy @ Jun 17 2010, 12:39 PM) *
Nice script, definitely cuts down on all that time hassling with conditional branches, I have a question though,
can I make it so that my common event has a "chance" of happening after a switch is turned on?
For example; Main character Lance has a 50% chance of turning into this other form once he is killed after I turn on the "Transform" switch.

Just use a randomly set variable in the common event, and then a conditional branch based on that.
Leroy
QUOTE (Garlyle @ Jun 17 2010, 04:38 PM) *
QUOTE (Leroy @ Jun 17 2010, 12:39 PM) *
Nice script, definitely cuts down on all that time hassling with conditional branches, I have a question though,
can I make it so that my common event has a "chance" of happening after a switch is turned on?
For example; Main character Lance has a 50% chance of turning into this other form once he is killed after I turn on the "Transform" switch.

Just use a randomly set variable in the common event, and then a conditional branch based on that.


Ahh I see, Thanks man. I'm just starting to get used to variables.
But I got this to work thanks to you.
Vegapunk
Both of the links to this script are broken. I was wondering if there was an alternate source for it. There are quite a few things I want to use it for in my game that have proven to be a real pain to try to event properly or efficiently.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2013 Invision Power Services, Inc.