PokemonPlatnum
nomnomnom.
- 257
- Posts
- 17
- Years
- Ireland
- Seen Feb 18, 2015
Mystery Gift System 2.0 for Pokémon Essentials
------------------------------------------------------------------------------------------------------------------------------------
Instructions:
If you can find some cool way you've used the script please post a screenshot :P
Any problems? Talk to me on this thread :D
-----------------------------------------------------------------------------------------------------------
Scripts
----------------------------------------------------------------------------------------------------------
Version 1.0 *OLD*
Version 2.0 NEW*
Credits:
-----------
CRAZYNINJAGUY : Teaching me and making the bulk of the script.
ME : I'd like to thank me fro starting this project and making version 1.0
WICHU : Giving me some scripting help :p
![[PokeCommunity.com] Mystery Gift System (Basic) [PokeCommunity.com] Mystery Gift System (Basic)](https://img404.imageshack.us/img404/8329/mysterygift20.png)
------------------------------------------------------------------------------------------------------------------------------------
Instructions:
- To use this script simply place it above main :)
- To call the script use Class_MysteryGift.new
If you can find some cool way you've used the script please post a screenshot :P
Any problems? Talk to me on this thread :D
-----------------------------------------------------------------------------------------------------------
Scripts
----------------------------------------------------------------------------------------------------------
Version 1.0 *OLD*
Spoiler:
Code:
#######################################################################
# Mystery Gift System v1.0 for Pokemon Essentials #
# By PokemonPlatnum for the PokeCommunity #
# Using ALOT of help from Wichu #
# 8/04/2010 #
#If you are having trouble with this script contact me on my profile, #
#by pm or on the thread, thanks #
#######################################################################
=begin
To call this script simply use this:
Class_MysteryGift.new
=end
class Class_MysteryGift
def initialize
getPassword
end
def getPassword
password=pbEnterText(_INTL("Enter the password"),8,8)
case password
when "PASSWORD" #You can choose yor password on this line
Kernel.pbMessage(_INTL("Correct password!")) #This is the text after inputting the password.
Kernel.pbReceiveItem(PBItems::MEMBERSPASS) #You can change this item if needed.
when "adhosdgf" #You can choose yor password on this line
Kernel.pbMessage(_INTL("Correct password!")) #This is the text after inputting the password.
Kernel.pbReceiveItem(PBItems::OAKSLETTER) #You can change this item if needed.
when "adhosdgf" #You can choose yor password on this line
#You can insert your own items and messages here
else
Kernel.pbMessage(_INTL("Incorrect password..."))
end
end
end
Spoiler:
It's here.
Mystery Gift System 2.0
Whats New:
What's going to be in 3.0?
REMEMBER TO CREDIT CRAZYNINJAGUY, ME AND WICHU FOR THIS SCRIPT.
Thank you
Mystery Gift System 2.0
Whats New:
- You can select between different items which is then followed by a password unlock.
- Slightly easier to add more than 2 items.
Code:
#######################################################################
# Mystery Gift System 2.0 #
# For Pokemon Essentials #
# By PokemonPlatnum and Crazyninjaguy(Most by him :L) #
# Using ALOT of help from Wichu #
# https://www.planetdev.net #
# 12/05/2010 #
#If you are having trouble with this script contact me on my profile, #
#by pm or on the thread, thanks #
#######################################################################
=begin
To call this script simply use this:
Class_MysteryGift.new
=end
class MysteryGift
def initialize(menu_index = 0)
@menu_index = menu_index
@sprites={}
@sprites["spriteset"]=Spriteset_Map.new
end
def main
commands=[
_INTL("Potion"),
_INTL("Elixir"),
_INTL("Ether"),
_INTL("Exit")
]
@command = Window_CommandPokemon.new(commands, 160)
@text = Window_UnformattedTextPokemon.new("Which gift would you like?")
@text.y = Graphics.height - @text.height
@command.x = Graphics.width - @command.width
Graphics.transition
loop do
Graphics.update
Input.update
update
if $scene != self
break
end
end
Graphics.freeze
pbDisposeSpriteHash(@sprites)
end
def update
@command.update
if @command.active
update_command
end
end
def update_command
if Input.trigger?(Input::B)
$scene = Scene_Map.new
end
if Input.trigger?(Input::C)
case @command.index
when 0
password=pbEnterText(_INTL("Enter the password"),8,8)
case password
when "PASSWORD"
Kernel.pbMessage(_INTL("Correct password!"))
Kernel.pbReceiveItem(PBItems::POTION)
else
Kernel.pbMessage(_INTL("Incorrect password..."))
end
end
when 1
password=pbEnterText(_INTL("Enter the password"),8,8)
case password
when "adhosdgf"
Kernel.pbMessage(_INTL("Correct password!"))
Kernel.pbReceiveItem(PBItems::ELIXIR)
else
Kernel.pbMessage(_INTL("Incorrect password..."))
end
end
when 2
password=pbEnterText(_INTL("Enter the password"),8,8)
case password
when "pwnage91"
Kernel.pbMessage(_INTL("Correct password!"))
Kernel.pbReceiveItem(PBItems::ETHER)
else
Kernel.pbMessage(_INTL("Incorrect password..."))
end
end
when 3
$scene = Scene_Map.new
end
end
end
What's going to be in 3.0?
- Mystery gift background image.
- Mystery gift BGM Audio.
- Access from the 'New Game' screen :)
- If you would personally like any features to be added reply on this thread :P
REMEMBER TO CREDIT CRAZYNINJAGUY, ME AND WICHU FOR THIS SCRIPT.
Thank you
Credits:
-----------
CRAZYNINJAGUY : Teaching me and making the bulk of the script.
ME : I'd like to thank me fro starting this project and making version 1.0
WICHU : Giving me some scripting help :p
Last edited: