Submit Your Article


 
RPG Maker

Welcome Guest ( Log In | Register )


  Games Resources RPG Maker VX RPG Maker XP Scripts Tutorials Downloads

> Effect: Common Event
Tsukihime
post Oct 30 2012, 05:19 PM
Post #1


Level 25
Group Icon

Group: Revolutionary
Posts: 565
Type: None
RM Skill: Undisclosed
Rev Points: 25




Effect: Common Event
-Tsukihime

This effect calls a common event.

Same as the built-in common event effect, except this supports common event arguments, keeps track of who called it, who it was targeted at, and which item was used to call it.

Download

Script: http://db.tt/mp9NndjR
Required: Effect Manager

Usage

Tag your item/skill with

CODE
<eff: common_evt id arg1 arg2 ... >


Where
`id` is the ID of the common event to call
`arg` is some argument to store, which can be retrieved in the common event

The following variables are available for the common event. You should use script calls to work with these.

CODE
   $game_temp.event_user - who called it
   $game_temp.event_target - who it is applied to
   $game_temp.event_args - list of arguments provided
   $game_temp.event_item - item that was used to call this


The main problem with common events is that, while it's nice, it is basically a function with no parameters.
This script attempts to make common events more flexible by allowing you to indirectly pass arguments to it.

Note that the event arguments are actually evaluated when the effect is called. This means you can say something like

CODE
<eff: common_evt 1 self.class.id>


And it will store the target's class ID as an argument for the common event.
I am not sure if this will be useful, but you are likely more creative than me.

An example usage might be something like this: http://www.rpgmakervxace.net/topic/8059-ho...l-requirements/

This post has been edited by Tsukihime: Oct 31 2012, 03:48 AM


__________________________
My Scripts
Go to the top of the page
 
+Quote Post
   

Posts in this topic
- Tsukihime   Effect: Common Event   Oct 30 2012, 05:19 PM


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: 18th June 2013 - 07:37 PM
RPG RPG Revolution is an Privacy Policy and Legal
eXTReMe Tracker