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 Profile Posts

Sigh...I can do everything I need for this game but make actual sprites and tile maps for it. Guess I'll look into hiring someone for that
Goes looking for assets, ends up creating memes. I have priorities?
i'm working on finishing an old game in vx ace (the first game i tried to make in vx ace), and it's making me realize how many things i've come to take for granted in mv (like the additional BCDE tile layer and the plugin manager).
It's ma birfday! Gonna chill and work on my project, editing some icons for my compass rn. Later It's pizza and a movie, maybe Blazing Saddles...
I really hope Google stadia/Amazon luna become successful household "consoles" in the future only because I could see it being 1000x easier to get RPG Maker and other indie games on their platforms & if so I PRAY they have gate keepers to keep half baked indie games out of the mix so they don't end up like steam/itch.io with 1000s of incomplete RM projects that continue to give our community a bad stigma.

Forum statistics

Threads
109,023
Messages
1,041,331
Members
141,492
Latest member
Arthemis
Top