DCF

Villager
Member
Joined
Feb 6, 2014
Messages
24
Reaction score
14
First Language
English
Custom State Eval v1.01
DCF

Introduction
Enables evaluation of custom js code in state notetag box when states are added and when states are removed.

Features

Evaluate custom javascript code when a state is added using notetag add eval.

<ADD EVAL> codecode</ADD EVAL>Evaluate custom javascript code when a state is added using notetag add eval.

<REMOVE EVAL>codecode</REMOVE EVAL>
How to Use
Place at or near bottom of plugin list. Place notetags in state notes.

Script

https://www.dropbox.com/s/7xi0jtai6t7uxen/DCF_CustomStateEval.js?dl=0

Examples

Run common event:

I use two events to change the sprite sheet of a character when a state is applied. Event 3 applies the custom sprite sheet and event 4 returns the sprite sheet to normal.

<ADD EVAL>$gameTemp.reserveCommonEvent(3);</ADD EVAL><REMOVE EVAL>$gameTemp.reserveCommonEvent(4);</REMOVE EVAL>Credit and Thanks
- Plugin can be used for commercial and non-commercial games. No credit required.

- I'm a JS/MV novice. Special thanks to Yanfly. Without his well commented and easy to follow code to use as a guide I would not have been able to make this plugin.
 
 

encapturer

Veteran
Veteran
Joined
May 24, 2012
Messages
30
Reaction score
4
First Language
English
Primarily Uses
Is there any way to access the affected actor directly in the code?
 

DCF

Villager
Member
Joined
Feb 6, 2014
Messages
24
Reaction score
14
First Language
English
Affected actor object is:

thisState # being added or removed is:

Code:
stateId
 

Latest Threads

Latest Posts

Latest Profile Posts

unknown.png


I figured it was about time to update the battle sprite for one of my characters. The old one was the first time I ever drew a battle sprite, and filled with lines that shouldn't be there. So far, the new one is cleaner.
EQAQeW8.png

This was supposed to become her neutral talking stance, but now i just feel like she looks a little puzzled :D
I'm also open for any name suggestions, as i seriously suck at those. In my notes everything is just THE CITY or THAT GUY and THIS PRIESTESS or whatever :D
Nearing completion of the first major city of Albert, a vacation getaway city built a long time ago by a king who really didn't want to be invaded.
It’s definitely a great day to fit in some time for me to play no mans sky on PS4
Julyon.png

First concept art of one of our main characters love interests who might turn evil depending on her decisions. Or become king of the world. Or marry her. Maybe even everything at once.

Forum statistics

Threads
110,277
Messages
1,051,908
Members
143,295
Latest member
Musicalmoogle
Top