Author Topic: [XP] Event drop-down  (Read 8224 times)

Offline Valdred

  • Ethereal Devastator
  • ****
  • Posts: 256
  • LV: 13
    • View Profile
[XP] Event drop-down
« on: June 05, 2010, 09:46:10 PM »
Event drop-down
Authors: Valdred
Version: Beta
Type: Multiple ways to interact with events
Key Term: Environment Add-on

Introduction
This script allows you to give the player multiple choices when interacting with an event. A menu will pop up and give the player choices when the event is clicked on with the mouse (that comes with the script).
Alternatively, the player can press enter while facing the event to without any menu start the first available page, just like it use to be. :D


Features
  • Very easy. No in-script configuration or setup.
  • Everything inside the events.
  • Adds a mouse to the game.
  • Let the player choose from several options of your choice,
  • One event page for each option.


Screenshots
(click to show/hide)


Demo
http://bb.xieke.com/files/Event%20dropdown.exe


Script
Put above main
(click to show/hide)

Instructions

1. Insert a new script above main, bellow other scripts and paste this script in.

2. Import an icon you want to use as mouse cursor to your icons folder. I recomend weapon1 from the rtp icons.

By default, events don't use drop-down. You have to set up menu options like described in the following steps

3. To make an event have a menu, you first have to choose what different options the player will have when clicking this event.
    Make one page (in the event) for each option you want in the menu.

4. Make each of these pages start with a comment, in this comment put the following:
   
Code: [Select]
%name of option   the "%" tells the script that this page is going to be in the menu, the "%" can be anywhere in the comment,
   but make sure the comment is the first command on the page.
   Pages without this will not be in the menu.


5. Exchange "name of option" (from the following step) with whatever you want the option to be in the menu if you have not already.

6. Bellow the comment, add stuff that happens if this option is selected.


Compatibility
This script should have great compatibility with pretty much anything.


Credits and Thanks

  • Dervvolfman for scripting the mouse.
  • sandal.github.com for the each_byte method.


Author's Notes
This is in beta. It's probably lots of bugs and awkward things to fix. Please give me feedback on what sucks with this script so that I can improve it :)
« Last Edit: June 07, 2010, 07:46:45 PM by Valdred »

Offline Jragyn

  • Ethereal Devastator
  • ****
  • Posts: 311
  • LV: 20
  • Gender: Male
  • A prodigy... maybe? Hoo hah.
    • View Profile
    • facenbooken.
Re: [xp]Event drop-down
« Reply #1 on: June 06, 2010, 05:04:42 AM »
I uhh, feel partially retarded in the sense that I don't understand what you mean by, "make a menu".

Perhaps a simple demo is in order that has a single event that demonstrates this?

And glancing at the script, it says something about pathfinding.
:D It makes me excited. Is there more to this script than I know?


--J
A bright light can either illuminate or blind, but how will you know which until you open your eyes?

Offline Silentknight72

  • Ethereal Devastator
  • ****
  • Posts: 374
  • LV: 6
  • Gender: Male
    • View Profile
    • Website
Re: [xp]Event drop-down
« Reply #2 on: June 06, 2010, 07:26:30 AM »
there is a bug. when you put %name of options in the comment, it appears normally. But if u put other strings than that, no text appears. i have no other script other than default ones.(test project)
(click to show/hide)

Offline Blizzard

  • This sexy
  • Administrator
  • has over 9000 posts
  • *****
  • Posts: 19930
  • LV: 642
  • Gender: Male
  • Magic midgets.
    • View Profile
    • You're already on it. (-_-')
Re: [xp]Event drop-down
« Reply #3 on: June 07, 2010, 02:04:58 PM »
1.

If you make a script for RGSS (RMXP), please add the [XP] tag in your title and separate the script name from the tag with a space.
If you make a script for RGSS2 (RMVX), please add the [VX] tag in your title and separate the script name from the tag with a space.
If your script can work in both languages and both makers, feel free to add both tags. Do NOT use a collective tag like [XP/VX]! BOTH tags have to be there!

2.

Please use this template here when you are submitting a script. It makes your topic overviewable. If you do not apply the template's header appropriately, your script will not be listed in the database on the homepage.

Code: [Select]
[CENTER][SIZE=24pt][b]<SCRIPT NAME>[/b][/SIZE]
[SIZE=16pt]Authors: <AUTHORS, NO SPECIAL THANKS HERE>[/SIZE]
[SIZE=16pt]Version: <NUMBER>[/SIZE]
[SIZE=14pt]Type: <DETAILED TYPE>[/SIZE]
Key Term: <KEY TERM (COMMON TYPE), SEE FURTHER BELOW FOR ALL ALLOWED TERMS>[/CENTER]
[hr]
[SIZE=18pt][b]Introduction[/b][/SIZE]

<TELL US SOMETHING ABOUT YOUR SCRIPT>
[hr]
[SIZE=18pt][b]Features[/b][/SIZE]

[LIST]
[*]<LIST YOUR SCRIPT FEATURES HERE>
[*]<AND HERE>
[*]<AND HERE>
[*]<AND SO ON>
[/LIST]
[hr]
[SIZE=18pt][b]Screenshots[/b][/SIZE]

<REQUIRED IF IT MAKES SENSE, IF NO PLEASE MENTION IT SO PEOPLE DON'T ASK>
[hr]
[SIZE=18pt][b]Demo[/b][/SIZE]

<REQUIRED OR SCRIPT>
[hr]
[SIZE=18pt][b]Script[/b][/SIZE]

<REQUIRED OR DEMO, ALSO POST WHERE TO PUT YOUR SCRIPT>
[SPOILER][QUOTE]
<HERE GOES YOUR SCRIPT, BUT USE [ CODE ] TAGS INSTEAD OF [ QUOTE ] TAGS>
[/QUOTE][/SPOILER]
[hr]
[SIZE=18pt][b]Instructions[/b][/SIZE]

<HERE OR REDIRECT TO THE SCRIPT IF THERE ARE SOME>
[hr]
[SIZE=18pt][b]Compatibility[/b][/SIZE]

<PLEASE LIST AS MANY COMPATIBILITY ISSUES AS YOU CAN IF THERE ARE ANY>
[hr]
[SIZE=18pt][b]Credits and Thanks[/b][/SIZE]

[LIST]
[*]<BE SURE TO CREDIT THE ORIGINAL MAKER(S)>
[*]<BE SURE TO CREDIT THE ORIGINAL MAKER(S) EVEN IF IT IS A DERIVATE, MERGE OR EDIT>
[/LIST]
[hr]
[SIZE=18pt][b]Author's Notes[/b][/SIZE]

<EVERYTHING ELSE>
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 Valdred

  • Ethereal Devastator
  • ****
  • Posts: 256
  • LV: 13
    • View Profile
Re: [xp] Event drop-down
« Reply #4 on: June 07, 2010, 03:47:58 PM »
I added a space between the xp tag and the name.
I did use that template, did I do anything wrong?

Offline Blizzard

  • This sexy
  • Administrator
  • has over 9000 posts
  • *****
  • Posts: 19930
  • LV: 642
  • Gender: Male
  • Magic midgets.
    • View Profile
    • You're already on it. (-_-')
Re: [xp] Event drop-down
« Reply #5 on: June 07, 2010, 06:48:42 PM »
It needs to be capital. Haven't you seen all the topics in the database? All have a capital [XP] with one space between the tag and the topic title. It's really funny. When you tell people not to copy-paste, they copy-paste. When they are supposed to copy-paste, they don't do it. -_-

Also, you're being a bit inconsistent with the space between titles and horizontal-rule. :P


Demo
http://bb.xieke.com/files/Event%20dropdown.exe


Script
« Last Edit: June 07, 2010, 06:50:39 PM by Blizzard »
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 Valdred

  • Ethereal Devastator
  • ****
  • Posts: 256
  • LV: 13
    • View Profile
Re: [xp] Event drop-down
« Reply #6 on: June 07, 2010, 07:44:52 PM »
Sorry about that. I'll fix it, and try to avoid it in the future.  ;)

Offline Blizzard

  • This sexy
  • Administrator
  • has over 9000 posts
  • *****
  • Posts: 19930
  • LV: 642
  • Gender: Male
  • Magic midgets.
    • View Profile
    • You're already on it. (-_-')
Re: [XP] Event drop-down
« Reply #7 on: June 07, 2010, 11:01:26 PM »
Would be nice if you did, 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 Jragyn

  • Ethereal Devastator
  • ****
  • Posts: 311
  • LV: 20
  • Gender: Male
  • A prodigy... maybe? Hoo hah.
    • View Profile
    • facenbooken.
Re: [XP] Event drop-down
« Reply #8 on: June 09, 2010, 10:38:05 PM »
You should make it so that this will check for regular conditions as well.
so even if the even has a page with the %98ngsdiubns46nkj , it won't read it unless switch(es) are flipped or variable(s) are met, or self-switch (Letter) is on, you know? :D

ie: old man doesn't tell you his secrets about the ancient ways of purple until you punch his frog or something.


--J
A bright light can either illuminate or blind, but how will you know which until you open your eyes?

Offline Valdred

  • Ethereal Devastator
  • ****
  • Posts: 256
  • LV: 13
    • View Profile
Re: [XP] Event drop-down
« Reply #9 on: June 10, 2010, 03:50:19 PM »
Great idea.

Unleashed

  • Guest
Re: [XP] Event drop-down
« Reply #10 on: July 11, 2010, 06:12:31 PM »
this working with rmx-os?

Offline Valdred

  • Ethereal Devastator
  • ****
  • Posts: 256
  • LV: 13
    • View Profile
Re: [XP] Event drop-down
« Reply #11 on: July 12, 2010, 12:57:00 PM »
Not sure, I doubt it

Offline Vexus

  • Ethereal Devastator
  • ****
  • Posts: 365
  • LV: 9
    • View Profile
Re: [XP] Event drop-down
« Reply #12 on: April 10, 2012, 11:32:16 PM »
Sorry for the necro but the demo link doesn't work.

In the script there's mentioned near fantastica's path finding script v2 beta but when I tried it it gave an error so I guess I found the wrong version.

Also anyone know of a similar script but instead of left click it uses right click or some other button and it would be the only way to show the drop down list?

Thanks.
« Last Edit: April 10, 2012, 11:57:10 PM by Vexus »
Current Project/s:

Offline Calintz

  • Guardian of Chaos
  • ********
  • Posts: 3803
  • LV: 108
  • Gender: Male
  • A Pixel's Worst Nightmare
    • View Profile
Re: [XP] Event drop-down
« Reply #13 on: April 10, 2012, 11:53:32 PM »
i think the show choices command works for me, but i like the idea. it is creative.