New account registration is temporarily disabled.

SCRIPTING ASSISTANCE: FORCING ITEMS TO GO TO NEW WINDOW_SCENE CREATED

Posts

Pages: 1
kitten2021
Returning from RMVX Death
1093
I am attempting to create a new window in RMVX to display from the Menu titled "Misc Items". I am now using the Yanfly + KGC Scene Menu ReDux and Custom Menu Command script (yes all credits given to them) to create the new windows that I am in need of. However, my problem is, I am not sure, once the menu I need is created, how to 'force' specific items I want to go in there to actually do just that.

Example:
In the game, you speak to a young man who randomly asks you if you are here for the "Report", if you answer "Yes", you are given a non-usable, non-sell-able piece of paper with a large detailed report on it that you can not read. ~ Brief description of it would be given in the menu ~
The objective? You have to find out who it belongs to and deliver it - its a side-quest that you kind of have to figure out on your own.

(If anyone played Eternal Sonata, then you could match this up to the lengthy side-quest you can do that involves delivering things to the right people through-out the entire game. ~ Like the dentures received from a lazy man given to an old man in exchange for a can of paint which is delivered to the painter in exchange for a pair of pants which is delivered... etc.)

I want those side-quest items to go inside the Misc Items menu screen, but nothing else... How do I force those items only to do so?

Thanks a lot guys for any advise you could offer!
I can see two ways of doing this;

1- create a list of all misc items you would have in the game in the script and then have a window that checks each item the player has against that list and then displays all the misc items that he currently has in his inv.

2- In XP you can modify the stats of an item(not sure about VX though I'd assume something similiar), perhaps there is a stat on the item(like in name or icon) where you can have a common stat/name for all items that will be misc. Say you put "Misc -" in front of each items name so you'd get ,"Misc - Report" and "Misc - Quest Item x". You then have a script that searches the name of your item for the Misc label, and then prints it out in the window without it. Only problem I see with that is if you have other items with "misc" in their name, though it could be any common label you want so it could be as obscure as you want it too.

3. Okay I just though of another one though it is more complicated. Create your own item list that whenever the player gets a quest item it adds that item type to the list. Then when the window pops up you just print out everything in that custom list since you know they are all quest-type-ish items.
kitten2021
Returning from RMVX Death
1093
post=134606
1- create a list of all misc items you would have in the game in the script and then have a window that checks each item the player has against that list and then displays all the misc items that he currently has in his inv.


OK, I really like this idea; I'm a little confused though... How would I get the system to automatically check the players items? I ~think~ I understand how to get it to appear in the window after-wards, but no clue how to get it to look for them...
This is just a rough example of what I might do in XP for it.

#this would go into whatever class your misc item window is using,
#right before it prints items on the window.

for j in 0...$game_items.length
if $misc_item_list.include?($game_items.name) and $game_party.item_number($game_items.id) > 0

#checks to see if item is in inventory and if it is on the misc item list
#code to print item goes here, just print $game_items.name or something to that effect
end
end

#seperate class to stick on a new script page.
class Game_Variables

def initialize
super

#part where you make your misc_items array
$misc_item_list.push("whatever the item name is goes here")

#add as many of these lines as you want, just type a different item name each
#time, ensure it is spelled correctly or it won't work.

end
end


Hope that is coherent enough, I am a bit tired now so if it doesn't make sense say so and I'll probably be able to give you a clearer answer tomorrow.
kitten2021
Returning from RMVX Death
1093
This actually made a little bit of sense to me, thank you. :)

Um, I just posted another post though and was wondering if you could help me on that one too... Its actually got me stumped...
I can't seem to find your other topic but I'll keep an eye out. Or if you want post it here and I take a look at it.
Pages: 1