Jump to content


Photo

Event Trigger Labels


  • Please log in to reply
12 replies to this topic

#1 Tsukihime

Tsukihime

    Advanced Member

  • Ace Member
  • 7120 posts
  • LocationToronto
  • RM Skill - Coder

Awards Bar:

Users Awards

Posted 18 August 2012 - 09:42 PM

This script allows you to divide an event list into multiple sections using labels.
An event with multiple sections will only execute the section that was triggered.

This allows you to create different behaviors for the same event depending on how the event was triggered. There are many different ways to divide an event list
  • Pushing a button, for example the C button or the X button.
  • Using a key item.
  • Touching an event
For example, one button might allow you to talk to an NPC, while using a keyitem on the NPC allows you to trigger a special set of commands.

key_item_trigger3.JPG

eventtriggerlabels2.jpg?w=640

Download

Get it at Hime Works!

Edited by Tsukihime, 02 March 2015 - 10:22 AM.

All of my work can be found on my website:

banner200x40.png

You can follow me on any of these platforms:

logo_facebook40x40.pnglogo_twitter40x40.pnglogo_youtube40x40.pnglogo_patreon40x40.pnglogo_instagram40x40.png

Go here for Bugs and Requests.
 
Want to become a beta tester for my plugins before they are released to the public?

#2 Bunni89

Bunni89

    i shall rise like a phoenix... or a loaf of bread

  • Ace Member
  • 770 posts
  • LocationCardiff, Wales
  • RM Skill - Jack of All Trades

Posted 19 August 2012 - 07:05 PM

Wow, thank you! This is exactly what I need :3 You're a scripting beast!

.:: PERPETUAL NEWBIE ::.
...Like a million ideas but for now I need to practise...
My deviantART account: bunni89.deviantart.com


#3 ∑-sigma-

∑-sigma-

    Advanced Member

  • Ace Member
  • 200 posts
  • LocationAustralia.
  • RM Skill - Writer

Posted 22 August 2012 - 02:15 AM

So when I saw this, I thought it'd be perfect for an option where someone says something and you pick your reply based on an emotion, like, "Angry Response, Happy Response", that kind of stuff.
But when I actually tried the script, it basically just skipped the labels and played the whole thing, making the character say something nice, then angry, then happy, then bored, it was awkward..

Not really sure what I did wrong, was hoping maybe you could let me know.
*Picture removed*

Edited by -sigma-, 22 August 2012 - 03:16 AM.

Posted Image

#4 Tsukihime

Tsukihime

    Advanced Member

  • Ace Member
  • 7120 posts
  • LocationToronto
  • RM Skill - Coder

Awards Bar:

Users Awards

Posted 22 August 2012 - 02:34 AM

I've updated the script to support key inputs whose names are greater than 1 character (eg: F5).
You will need to use a full input script if you want support for any keys outside of the ones the default engine gives you (F1, F2, ...)

I have tested it with cidiomar's full input script on F1 F2 and it works fine now. Even obscure keys like :HOME and :CTRL work. Basically every key is fair game as long as it's bound to the engine.

Edited by Tsukihime, 22 August 2012 - 02:41 AM.

All of my work can be found on my website:

banner200x40.png

You can follow me on any of these platforms:

logo_facebook40x40.pnglogo_twitter40x40.pnglogo_youtube40x40.pnglogo_patreon40x40.pnglogo_instagram40x40.png

Go here for Bugs and Requests.
 
Want to become a beta tester for my plugins before they are released to the public?

#5 ∑-sigma-

∑-sigma-

    Advanced Member

  • Ace Member
  • 200 posts
  • LocationAustralia.
  • RM Skill - Writer

Posted 22 August 2012 - 02:43 AM

It still doesn't wait for me to input anything, it just goes right through the labels and plays everything. *sigh*
Guess I'm just going to have to do it the hard way through eventing. :(
Posted Image

#6 Tsukihime

Tsukihime

    Advanced Member

  • Ace Member
  • 7120 posts
  • LocationToronto
  • RM Skill - Coder

Awards Bar:

Users Awards

Posted 22 August 2012 - 02:55 AM

Try it in a clean project this script overwrites a bunch of things.
And do it with a simpler set-up, using standard keys like :C and :B. While it shouldn't matter, at least you can verify what you're typing is valid.

Are you sure F1 and F2 are valid keys? cause it's normal to just fall through labels that don't mean anything to the script.

Edited by Tsukihime, 22 August 2012 - 02:57 AM.

All of my work can be found on my website:

banner200x40.png

You can follow me on any of these platforms:

logo_facebook40x40.pnglogo_twitter40x40.pnglogo_youtube40x40.pnglogo_patreon40x40.pnglogo_instagram40x40.png

Go here for Bugs and Requests.
 
Want to become a beta tester for my plugins before they are released to the public?

#7 ∑-sigma-

∑-sigma-

    Advanced Member

  • Ace Member
  • 200 posts
  • LocationAustralia.
  • RM Skill - Writer

Posted 22 August 2012 - 03:16 AM

No dice, just tried it in a clean project, turns out you can't use this script in mid conversation. The button inputs have to be to activate the event.

It would work for something like a stealing mechanic, where you press a certain key to steal from people, but for what I'm after isn't it.
Maybe I could pester you for something like what I'm after? Lol.
Posted Image

#8 Tsukihime

Tsukihime

    Advanced Member

  • Ace Member
  • 7120 posts
  • LocationToronto
  • RM Skill - Coder

Awards Bar:

Users Awards

Posted 20 October 2012 - 04:03 PM

I have updated the script to support key item trigger labels. Think chrono cross.
You can now use a key item to trigger an event.

1: choose a "key item variable" in the configuration. This is only important if you are going to use the event command "select key item" to force players to choose a key item. Otherwise this is not very relevant (and by default you can see I use an arbitrary variable...)

2: choose a "key item button", which is the key you press in order to open up the key item selection window.

3: setup your event trigger labels for your key items.
Use the label

keyitem?(x)

Where x is the ID of the key item you want to trigger this event.

Posted Image

Select an item (cute coins is item 16)

Posted Image

Triggered!

Posted Image

Edited by Tsukihime, 20 October 2012 - 04:05 PM.

All of my work can be found on my website:

banner200x40.png

You can follow me on any of these platforms:

logo_facebook40x40.pnglogo_twitter40x40.pnglogo_youtube40x40.pnglogo_patreon40x40.pnglogo_instagram40x40.png

Go here for Bugs and Requests.
 
Want to become a beta tester for my plugins before they are released to the public?

#9 KanaX

KanaX

    Newbie

  • Ace Member
  • 9 posts

Posted 27 April 2013 - 12:01 PM

I have the same problem.


Edited by thepimpleoffury, 27 April 2013 - 12:40 PM.


#10 KanaX

KanaX

    Newbie

  • Ace Member
  • 9 posts

Posted 27 April 2013 - 12:38 PM

No dice, just tried it in a clean project, turns out you can't use this script in mid conversation. The button inputs have to be to activate the event.

It would work for something like a stealing mechanic, where you press a certain key to steal from people, but for what I'm after isn't it.
Maybe I could pester you for something like what I'm after? Lol.

Sigma I had the same problem as you. Tsukihime forgot to point out that you have to set the trigger for the event to "Action Button" (which makes sense since we do the same, just with multiple keys instead). And also for some reason the automatic "exit event processing" of the script doesn't work, so before each label insert the "exit event processing" and you should be up and running.



#11 Tsukihime

Tsukihime

    Advanced Member

  • Ace Member
  • 7120 posts
  • LocationToronto
  • RM Skill - Coder

Awards Bar:

Users Awards

Posted 26 September 2013 - 08:05 PM

A new type of label has been added: "trigger?"

eventtriggerlabels2.jpg?w=640

These are available if your event trigger is "player touch" or "event touch".

If you touch an event, then the event will run the "player touch" section.
If an event touches the player, then the event will run the "event touch" section.
If you trigger the event using a button or key item, the appropriate section will run (same as action trigger)

Edited by Tsukihime, 26 September 2013 - 08:06 PM.

All of my work can be found on my website:

banner200x40.png

You can follow me on any of these platforms:

logo_facebook40x40.pnglogo_twitter40x40.pnglogo_youtube40x40.pnglogo_patreon40x40.pnglogo_instagram40x40.png

Go here for Bugs and Requests.
 
Want to become a beta tester for my plugins before they are released to the public?

#12 KayDgirl91

KayDgirl91

    Phrostbyte

  • Ace Member
  • 438 posts
  • LocationNorthern Utah, USA
  • RM Skill - Jack of All Trades

Posted 26 September 2013 - 08:41 PM

Great looking script! Another great post by the master!


Current Projects At SircleSoft Studios (Website) (Blog)

Nyan%20Cat%20Button.jpg Shallows%20Island%20Button.jpg

Nyan%20Cat%20GIF.gif

 

RPG Maker VX Ace "Let's Make" Tutorials

Spoiler

 

Want to see a penguin walking back and forth?

Spoiler

#13 Wren

Wren

    Paragon/Renegade

  • Ace Member
  • 1128 posts
  • RM Skill - Jack of All Trades

Posted 05 October 2013 - 06:33 AM

I'm starting to become a Tsukihime stalker, checking every thread or post...

 

I am glad I am because I keep finding awesomesauce scripts like this one!

 

Teehee.


Super Awesome People Shoutout

Spoiler




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users