Author Topic: [XP] Custom Event Triggers  (Read 14648 times)

Offline ForeverZer0

  • CP's Pedophile
  • Global Moderator
  • Guardian of Chaos
  • ****
  • Posts: 3247
  • LV: 294
  • Gender: Male
  • Remember you are unique, just like everyone else.
    • View Profile
[XP] Custom Event Triggers
« on: July 14, 2010, 11:35:24 PM »
Custom Event Triggers
Authors: ForeverZer0
Version: 1.1
Type: Event Trigger System
Key Term: Game Utility

Introduction

Allows you to easily create custom triggers for events. Uses simple commentcode in their event page to create a new trigger. If trigger evaluates as 'true', their code will execute. Work differently than conditions, since the page conditions must still be met and they are what actually what begin execution of the event commands for that page.

Features

  • Very easy to use (requires very simple script statements)
  • Can use ABSOLUTELY anything to trigger an event.
  • No longer confined to the few basic triggers.

Screenshots

None.

Demo

None.

Script

Here it is...
(click to show/hide)

Instructions

See script. Even if you have no scripting experience, you can will likely still be able to create the triggers, so do not let that turn you off to the script.

Compatibility

Should be very compatible with other scripts.

Credits and Thanks

  • ForeverZer0, for the script.
  • game_guy, for making the suggestion to post this.

Author's Notes

Enjoy! Please report any bugs/issues you may encounter. I will offer as much support as possible with support on creating triggers.
« Last Edit: October 13, 2010, 10:40:22 PM by ForeverZer0 »
I am done scripting for RMXP. I will likely not offer support for even my own scripts anymore, but feel free to ask on the forum, there are plenty of other talented scripters that can help you.

Offline winkio

  • Epiq
  • Administrator
  • Guardian of Chaos
  • *****
  • Posts: 4506
  • LV: 199
  • Gender: Male
  • I am lying.
    • View Profile
Re: [XP] Custom Event Triggers
« Reply #1 on: July 15, 2010, 02:24:46 AM »
I like the idea of the script, but I'm just curious: what does this do that parallel proccess events contained within a conditional block don't?

Offline ForeverZer0

  • CP's Pedophile
  • Global Moderator
  • Guardian of Chaos
  • ****
  • Posts: 3247
  • LV: 294
  • Gender: Male
  • Remember you are unique, just like everyone else.
    • View Profile
Re: [XP] Custom Event Triggers
« Reply #2 on: July 15, 2010, 02:43:11 AM »
I like the idea of the script, but I'm just curious: what does this do that parallel proccess events contained within a conditional block don't?

Not a whole lot. You can make more complicated triggers easier. You can say the same for all the default triggers as well. Why have an "Action Button" trigger when you can make a conditional branch on a parallel trigger checking for the same thing. Just makes some things easier.  :P
I am done scripting for RMXP. I will likely not offer support for even my own scripts anymore, but feel free to ask on the forum, there are plenty of other talented scripters that can help you.

Offline G_G

  • Green Gmod Game_Guy AKA G4 AKA hyper-G AKA G-force
  • Global Moderator
  • Chaos Ultimate
  • ****
  • Posts: 6585
  • LV: 407
  • Gender: Male
    • View Profile
Re: [XP] Custom Event Triggers
« Reply #3 on: July 15, 2010, 02:52:52 AM »
The input is my favorite part. Just glancing at it, I'm sure it supports ToA's Custom controls. :3

Offline ForeverZer0

  • CP's Pedophile
  • Global Moderator
  • Guardian of Chaos
  • ****
  • Posts: 3247
  • LV: 294
  • Gender: Male
  • Remember you are unique, just like everyone else.
    • View Profile
Re: [XP] Custom Event Triggers
« Reply #4 on: July 15, 2010, 03:12:31 AM »
The input is my favorite part. Just glancing at it, I'm sure it supports ToA's Custom controls. :3

It should support ANY script call that, even from exotic scripts.
I am done scripting for RMXP. I will likely not offer support for even my own scripts anymore, but feel free to ask on the forum, there are plenty of other talented scripters that can help you.

Offline Blizzard

  • This sexy
  • Administrator
  • has over 9000 posts
  • *****
  • Posts: 19929
  • LV: 642
  • Gender: Male
  • Magic midgets.
    • View Profile
    • You're already on it. (-_-')
Re: [XP] Custom Event Triggers
« Reply #5 on: July 15, 2010, 08:21:52 AM »
  • Can use ABSOLUTELY anything to trigger an event.

Unless it can trigger when I cough, I suggest you remove "ABSOLUTELY" from that sentence. xD
Check out Daygames and our games:

King of Booze      King of Booze: Never Ever      Pet Bots
Drinking Game for Android      Never have I ever for Android      Pet Bots for Android
Drinking Game for iOS      Never have I ever for iOS      Pet Bots for iOS
Drinking Game on Steam


Quote from: winkio
I do not speak to bricks, either as individuals or in wall form.

Quote from: Barney Stinson
When I get sad, I stop being sad and be awesome instead. True story.

Offline ForeverZer0

  • CP's Pedophile
  • Global Moderator
  • Guardian of Chaos
  • ****
  • Posts: 3247
  • LV: 294
  • Gender: Male
  • Remember you are unique, just like everyone else.
    • View Profile
Re: [XP] Custom Event Triggers
« Reply #6 on: July 15, 2010, 11:41:46 PM »
  • Can use ABSOLUTELY anything to trigger an event.

Unless it can trigger when I cough, I suggest you remove "ABSOLUTELY" from that sentence. xD

Just use
Code: [Select]
@blizzard.cough?
I'm leaving it. If anybody takes it out of context and thinks arbitrary things in the real world will trigger events, they are the idiot, not me for writing that.
I am done scripting for RMXP. I will likely not offer support for even my own scripts anymore, but feel free to ask on the forum, there are plenty of other talented scripters that can help you.

Offline G_G

  • Green Gmod Game_Guy AKA G4 AKA hyper-G AKA G-force
  • Global Moderator
  • Chaos Ultimate
  • ****
  • Posts: 6585
  • LV: 407
  • Gender: Male
    • View Profile
Re: [XP] Custom Event Triggers
« Reply #7 on: July 16, 2010, 02:10:46 AM »
LOL! Nice comeback! xD

Offline ForeverZer0

  • CP's Pedophile
  • Global Moderator
  • Guardian of Chaos
  • ****
  • Posts: 3247
  • LV: 294
  • Gender: Male
  • Remember you are unique, just like everyone else.
    • View Profile
Re: [XP] Custom Event Triggers
« Reply #8 on: July 16, 2010, 02:49:11 AM »
 :P
Didn't mean to be a smart-ass, but its the truth.
I am done scripting for RMXP. I will likely not offer support for even my own scripts anymore, but feel free to ask on the forum, there are plenty of other talented scripters that can help you.

Offline Sin86

  • Transcended Spirit
  • ***
  • Posts: 151
  • LV: 1
    • View Profile
Re: [XP] Custom Event Triggers
« Reply #9 on: July 25, 2010, 08:44:49 PM »
I keep getting this error every time I hit new game on the beginning. It says this right before the game loads the starting map.



Script 'Custom Event Triggers' line 59: NoMethodError occurred

undefined method `list for nil:NilClass

Offline The Niche

  • The Hair Man
  • Chaos User
  • ******
  • Posts: 1561
  • LV: -171
  • Gender: Male
  • Marvel at the hair.
    • View Profile
    • Laptops and Tea, the place to go for marketing your creativity!
Re: [XP] Custom Event Triggers
« Reply #10 on: October 09, 2010, 04:17:33 PM »
Bump. I get that if I try to load a savegame, except it happens when I try to enter another map.
Level me down, I'm trying to become the anti-blizz!
Ah, excellent.  You liked my amusing sideshow, yes?  I'm just a simple fool, my wit entertains the wise, and my wisdom fools the fools.

(click to show/hide)
I'm like the bible, widely hated and beautifully quotable.

Dropbox is this way, not any other way!

Offline ForeverZer0

  • CP's Pedophile
  • Global Moderator
  • Guardian of Chaos
  • ****
  • Posts: 3247
  • LV: 294
  • Gender: Male
  • Remember you are unique, just like everyone else.
    • View Profile
Re: [XP] Custom Event Triggers
« Reply #11 on: October 12, 2010, 06:03:39 PM »
I keep getting this error every time I hit new game on the beginning. It says this right before the game loads the starting map.



Script 'Custom Event Triggers' line 59: NoMethodError occurred

undefined method `list for nil:NilClass

I'll look into it and fix it tonight. Thanks. ;)

EDIT:
* Updates to 1.1 *

Fixed the bug. Also changed the script a bit, shortening it and improving the code. Added comments.
« Last Edit: October 13, 2010, 10:41:07 PM by ForeverZer0 »
I am done scripting for RMXP. I will likely not offer support for even my own scripts anymore, but feel free to ask on the forum, there are plenty of other talented scripters that can help you.

Offline Karltheking4

  • Transcended Spirit
  • ***
  • Posts: 101
  • LV: 1
  • Gender: Male
  • Quickly now turtles, mummy has meeting.
    • View Profile
Re: [XP] Custom Event Triggers
« Reply #12 on: October 14, 2010, 07:56:31 AM »
OMG, most wondeful script in the world *hugs and levels up*
It is ALOT easier than conditional paralell process events if you have nearly the whole floor covered in them :D

Offline Mimi Chan

  • Trained Member
  • *
  • Posts: 45
  • LV: 7
  • Gender: Female
  • I is eat you!
    • View Profile
Re: [XP] Custom Event Triggers
« Reply #13 on: October 15, 2010, 07:52:10 PM »
I think I am stupid for thinking some stuffs that can be use as a trigger too @.@

I mean I was thinking of stuffs outside RMXP that can trigger it as well. I was thinking of...an npc checks if you have a floopy drive inserted on your drive A and if you do, gives you a very rare item @.@ (a much rarer item if the floppy has a certain file inside it)

Or an event that will activate if your sounds are mute o.oa
Or if your CD drive bay is open...
Or if you are connected to internet...

Wait I think I am thinking too much ^^;
What's a sig?

Offline WhiteRose

  • Trying to code in Ruby
  • Moderator
  • Lexima Warrior
  • ***
  • Posts: 2341
  • LV: 127
  • Gender: Female
  • <3
    • View Profile
Re: [XP] Custom Event Triggers
« Reply #14 on: October 15, 2010, 11:04:07 PM »
floopy drive

floopy drive

floopy drive

:rofl: That's way funnier than it should be; I guess I'm just on one today.

At any rate, Blizz did, if I remember correctly, create a script that accessed external files. It's part of his Multi-Game Launcher, but if you got his permission you might be able to modify it to check for external files during a game.

Offline The Niche

  • The Hair Man
  • Chaos User
  • ******
  • Posts: 1561
  • LV: -171
  • Gender: Male
  • Marvel at the hair.
    • View Profile
    • Laptops and Tea, the place to go for marketing your creativity!
Re: [XP] Custom Event Triggers
« Reply #15 on: October 15, 2010, 11:31:52 PM »
Rose! My drive is floopy!
Level me down, I'm trying to become the anti-blizz!
Ah, excellent.  You liked my amusing sideshow, yes?  I'm just a simple fool, my wit entertains the wise, and my wisdom fools the fools.

(click to show/hide)
I'm like the bible, widely hated and beautifully quotable.

Dropbox is this way, not any other way!

Offline Karltheking4

  • Transcended Spirit
  • ***
  • Posts: 101
  • LV: 1
  • Gender: Male
  • Quickly now turtles, mummy has meeting.
    • View Profile
Re: [XP] Custom Event Triggers
« Reply #16 on: October 15, 2010, 11:40:40 PM »
Uh oh....
My drive is no longer floppy... :whistle:

Offline Blizzard

  • This sexy
  • Administrator
  • has over 9000 posts
  • *****
  • Posts: 19929
  • LV: 642
  • Gender: Male
  • Magic midgets.
    • View Profile
    • You're already on it. (-_-')
Re: [XP] Custom Event Triggers
« Reply #17 on: October 15, 2010, 11:46:49 PM »
You can drive my floopy. If you've been a good girl, that is.

Ok, enough with the sexual innuendo with my wife. (Read: Enough spam, lol!)
Check out Daygames and our games:

King of Booze      King of Booze: Never Ever      Pet Bots
Drinking Game for Android      Never have I ever for Android      Pet Bots for Android
Drinking Game for iOS      Never have I ever for iOS      Pet Bots for iOS
Drinking Game on Steam


Quote from: winkio
I do not speak to bricks, either as individuals or in wall form.

Quote from: Barney Stinson
When I get sad, I stop being sad and be awesome instead. True story.

Offline Mimi Chan

  • Trained Member
  • *
  • Posts: 45
  • LV: 7
  • Gender: Female
  • I is eat you!
    • View Profile
Re: [XP] Custom Event Triggers
« Reply #18 on: October 16, 2010, 12:46:52 AM »
Whats with people and floppy drives o.oa

For one, my computer still has floppy drive B (the one with 5 1/2 inch floppy)

Would be cool if RMXP can read stuffs outside it, I could make funny in and interesting NPC with it *.*
Like a psychic that will say I heard you like 'insert game here' when it detects you have it installed in your system.

Or that script that can automatically open your CD drive. I remember I always taught those are magic O.O
Or maybe force a full screen pic of a fake Blue Screen of Death and tell the CPU to make that long beep.
What's a sig?

Offline The Niche

  • The Hair Man
  • Chaos User
  • ******
  • Posts: 1561
  • LV: -171
  • Gender: Male
  • Marvel at the hair.
    • View Profile
    • Laptops and Tea, the place to go for marketing your creativity!
Re: [XP] Custom Event Triggers
« Reply #19 on: October 16, 2010, 10:07:08 AM »
*reluctantly puts away his floopy drive* What the hell kinda game are you making?!
Level me down, I'm trying to become the anti-blizz!
Ah, excellent.  You liked my amusing sideshow, yes?  I'm just a simple fool, my wit entertains the wise, and my wisdom fools the fools.

(click to show/hide)
I'm like the bible, widely hated and beautifully quotable.

Dropbox is this way, not any other way!