Submit Your Article


 
RPG Maker

Welcome Guest ( Log In | Register )


  Games Resources RPG Maker VX RPG Maker XP Scripts Tutorials Downloads

 
Reply to this topicStart new topic
> [SSS] Pick Item Event, Events that let the player pick out an item.
Shanghai
post May 25 2010, 04:40 PM
Post #1


Level 31
Group Icon

Group: Revolutionary
Posts: 747
Type: Developer
RM Skill: Skilled




Shanghai Simple Script - Pick Item Event
made by Shanghai



Link/Script
Click here

Introduction
An event call to let the player pick an item, weapon, or armor, and then return that value to a variable.

How to Use
Make a script call event like one of the following:

CODE
  $game_variables[1] = pick_item_event
  $game_variables[1] = pick_weapon_event
  $game_variables[1] = pick_armor_event


This will return the selected item's item ID, weapon ID, or armor ID to the game variable you stored. 0 is returned if the player cancels.

CODE
<key item>


Place this tagin the noteboxes of your items, weapons, or armors to make you unable to select those items for the pick item event.

Compatibility
This script is not compatible with anyone who does not know how to think.

For more Shanghai Simple Scripts
Visit Here.


__________________________
Go to the top of the page
 
+Quote Post
   
Kread-EX
post May 26 2010, 12:18 AM
Post #2


(=___=)/
Group Icon

Group: +Gold Member
Posts: 4,136
Type: Scripter
RM Skill: Undisclosed




Jesus ! A swarm of SSSs ! I would have thought it was exam season...

I ran out of comments so I'll stick with "Good work (again)".


__________________________
FRACTURE - a SMT inspired game (demo) made by Rhyme, Karsuman and me. Weep and ragequit.

My blog.

Click here for my e-peen


Go to the top of the page
 
+Quote Post
   
Shanghai
post May 26 2010, 05:50 AM
Post #3


Level 31
Group Icon

Group: Revolutionary
Posts: 747
Type: Developer
RM Skill: Skilled




QUOTE (Kread-EX @ May 26 2010, 01:18 AM) *
Jesus ! A swarm of SSSs ! I would have thought it was exam season...

I ran out of comments so I'll stick with "Good work (again)".

Yeah, I've been done with them a while ago actually.


__________________________
Go to the top of the page
 
+Quote Post
   
Neosky5k
post Dec 17 2010, 06:12 PM
Post #4


Level 2
Group Icon

Group: Member
Posts: 18
Type: None
RM Skill: Undisclosed




I know this is a necro but I've got a question.

It seems really easy to use, but I don't think I know.

I place $game_variables[57] = pick_item_event in the event right. Cause vari = 1 does something else don't want to mess it up.

Also how would I do a C. Branch? Cause you don't want them to be able to just pick any item or cancel to be able to continue the event?

Cause yeah I'm able to select any item, not tagged. So I think I did it wrong... lol can you make a demo with some examples? Sorry to bother you....


just a guess.

You have to person ask for say a potion. Then they select the potion the vari changes to the Items ID then you make a C. Branch that says EX: If vari[57] = 1 then continue the event if it doesn't then they say something like not that item, or something?

This post has been edited by Neosky5k: Dec 17 2010, 08:32 PM
Go to the top of the page
 
+Quote Post
   
SwordSkill
post Dec 20 2010, 11:29 AM
Post #5


Level 2
Group Icon

Group: Member
Posts: 18
Type: Event Designer
RM Skill: Beginner




Hello. I noticed that there is a bug with this script. When you don't have items in your inventory and the game tries to open the item selection panel, the game throws a bug at 211 line on the script. ("draw_icon(item.icon_index, 0, 0)").

Is there any way to make script jump to the end by making the variable's value to -1 so that we could use it some something like "You don't have items" case?

The same applies for Weapons and Armors I suppose..

Cause if someone is at the beginning of the game and goes to an npc that needs potions the game will break down...


__________________________

AGK is Back!
Go to the top of the page
 
+Quote Post
   
Guinevere
post Dec 20 2010, 12:51 PM
Post #6


Triumphant!
Group Icon

Group: Revolutionary
Posts: 149
Type: Artist
RM Skill: Beginner




QUOTE (SwordSkill @ Dec 20 2010, 11:29 AM) *
Hello. I noticed that there is a bug with this script. When you don't have items in your inventory and the game tries to open the item selection panel, the game throws a bug at 211 line on the script. ("draw_icon(item.icon_index, 0, 0)").

Is there any way to make script jump to the end by making the variable's value to -1 so that we could use it some something like "You don't have items" case?

The same applies for Weapons and Armors I suppose..

Cause if someone is at the beginning of the game and goes to an npc that needs potions the game will break down...

Maybe if Shangai was online.
But she's not: she left in November.


__________________________
Look, this is a totally awesome project by Dragoncookie that you should totally visit ROFL
Go to the top of the page
 
+Quote Post
   

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 

Lo-Fi Version Time is now: 17th June 2013 - 10:06 PM
RPG RPG Revolution is an Privacy Policy and Legal
eXTReMe Tracker