Submit Your Article


 
RPG Maker

Welcome Guest ( Log In | Register )


  Games Resources RPG Maker VX RPG Maker XP Scripts Tutorials Downloads

 
Reply to this topicStart new topic
> [SSS] Death Common Events, Make common events run when actors, classes, or enemies die.
Shanghai
post Jun 16 2010, 06:48 AM
Post #1


Level 31
Group Icon

Group: Revolutionary
Posts: 747
Type: Developer
RM Skill: Skilled




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.


__________________________
Go to the top of the page
 
+Quote Post
   
DespairReigns
post Jun 16 2010, 07:11 PM
Post #2


Level 13
Group Icon

Group: Revolutionary
Posts: 236
Type: Artist
RM Skill: Advanced




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...)

This post has been edited by DespairReigns: Jun 16 2010, 07:13 PM
Go to the top of the page
 
+Quote Post
   
Leroy
post Jun 17 2010, 11:39 AM
Post #3



Group Icon

Group: Member
Posts: 4
Type: None
RM Skill: Undisclosed




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.
Go to the top of the page
 
+Quote Post
   
Shanghai
post Jun 17 2010, 12:48 PM
Post #4


Level 31
Group Icon

Group: Revolutionary
Posts: 747
Type: Developer
RM Skill: Skilled




Event it.


__________________________
Go to the top of the page
 
+Quote Post
   
Garlyle
post Jun 17 2010, 03:38 PM
Post #5


RRR's little gay boy
Group Icon

Group: Revolutionary
Posts: 3,375
Type: Developer
RM Skill: Advanced




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.


__________________________
RRR 2006 Awards: Best Topic Starter, Ultimate Debater, Most Likely To Bail You Out of Jail, and Most Likely To Become Ruler of the World.
RRR 2007 Awards: Master Debater, Elite Gamer, and Uber-Nerd
RRR 2008 Awards:
Former staff member - VG Hub & General maker discussion
Go to the top of the page
 
+Quote Post
   
Leroy
post Jun 18 2010, 12:52 AM
Post #6



Group Icon

Group: Member
Posts: 4
Type: None
RM Skill: Undisclosed




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.
Go to the top of the page
 
+Quote Post
   
Vegapunk
post Oct 26 2011, 03:11 PM
Post #7



Group Icon

Group: Member
Posts: 1
Type: Developer
RM Skill: Intermediate




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.
Go to the top of the page
 
+Quote Post
   

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 

Lo-Fi Version Time is now: 20th May 2013 - 12:46 AM
RPG RPG Revolution is an Privacy Policy and Legal
eXTReMe Tracker