Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Topics - Esther

1
Hello! :)
I need some help with this Chrono Cross Key Items script for XP by gameus. I am using version 1.2. It works perfectly, but I want to use it a little differently and couldn't figure it out on my own.

In short, this script opens an item select window when a button is pressed, after which you can make conditional events based on the item the player selected.


I want to be able to trigger and use the item select window in an event with a script call.

Details: I want to make cooking possible in my game. I would prefer to call the screen from an event, like show choices, with options like "Add an ingredient", "Mix ingredients", "Empty bowl and start over" without having to make the player move to a new event that would have a single function.

Right now I can only call the script by the press of a button (shift by default), when no event is running. I imagine using it like this:

@>Script: open_item_select_window
@>Conditional Branch: Script: used_item(item_id)


Extras:
  • Adding a boolean (or something else, I'm not a programmer, I don't know how it would be easiest) into the script to disable or enable the ability to trigger the window by keyboard input.
  • Being able to disable and enable the keyboard input in events with a script call. Or switch or variable, if that would be easier for the scripter. Previous point unnecessary if this was added.

These aren't essential, I just don't know if I'll want to use it in the original way in the future if the script call becomes possible. If not, I can probably figure out how to get rid of the input trigger option permanently on my own, even if somewhat inelegantly. xD

Something that would be extremely neat:
  • Being able to choose which item element I want the player to be able to select from when triggering the event with a script call. This would make it possible to have several separate crafting systems with different rules! How cool is that?  8)

Choosing an element is possible in the script right now, but you can only pick one overall. I would like to be able to pick which items to choose from with every event. Kind of like this:

@>Script: open_item_select_window(item_element_number)
@>Conditional Branch: Script: used_item(item_id)
This wouldn't work with keyboard input, so if that option was kept, when used, it would have to be either all items or whichever element you pick inside the script separately for keyboard input, as it is right now.


Thank you for reading! (: