Go Back   The PokéCommunity Forums > Creative Discussions > Game Development > Scripts & Tutorials

Notices
For all updates, view the main page.

Scripts & Tutorials This forum is for scripts and code, as well as all kinds of tutorials, software, tools and so forth. Remember to give credit!
The thread revival limit does not apply here.



Reply
Click here to go to the first staff post in this thread.  
Thread Tools
  #76    
Old April 5th, 2012 (05:20 AM).
Ho-oh 112's Avatar
Ho-oh 112
Advance Scripter
 
Join Date: Feb 2011
Age: 19
Gender: Male
Nature: Hasty
Quote originally posted by Anglican:
Ok. there are a few ways to do this, depending what you're doing.
If:
a) There is only one event where you may receive the gift AND you have 4 or less gifts.

With your current mystery gift event, simply put in multiple conditional branches, all of which check self switches.
After the check goes by. make sure that if selfswitch a is on, check b and so on.
if selfswitch a in not turned on, then make it do the mystery gift thing and then turn selfswitch a on. Do this with the others again.

B) There are more places with events that can give you mystery gifts OR you have more than 4 gifts.
Simply do the above but use normal switches instead of selfswitches.

Hope it helps!
Well I'll get to adding self switch support/titlescreen support when I'm finished with my trade/H-Mode scripts alright.
__________________
Scripting Level: Advance

RMXP Poke-Essentials MySQL Trading System Link:
http://www.pokecommunity.com/showthread.php?p=7077162#post7077162

RMXP Poke-Essentials Mystery Gift Link:
http://www.pokecommunity.com/showthread.php?t=270687

RMXP Poke-Essentials Award System Link:
http://www.pokecommunity.com/showthread.php?p=7111566
Reply With Quote
  #77    
Old April 6th, 2012 (02:29 PM). Edited April 6th, 2012 by UnderMybrella.
UnderMybrella's Avatar
UnderMybrella
Some Game Developer
 
Join Date: Jan 2011
Location: Atlantis
Gender: Male
Nature: Calm
Out of curiosity ho-oh, does this script feature support for multiple mystery gifts at once?

Quote originally posted by FL .:
Mystery Gift is a feature that charge between generations, so put more descriptions that you system do in the topic. After a look I realized that this script can make the player to receive an egg/item/pokémon. Anyway, good script.
Idea: Maybe you can put a variable to be compared in the txt for each entry before give the pokémon.
Example: Player can only get one level 20 pokémon after this variable be 8 or greater, thing that occurs when the player reach at the sixth city, for other in the level 30 this variable need to be 13, and so on.
If someone don't like to use this feature, just made this optional making by default to this variable being -1 and all pokémon this line entry being 0, making the game to ignore when this variable is negative.

A Note to developers: It's no good to give a Victini lv5 at start of the game, so use this system moderately. maybe unlock after some game progress.
A note to Gamefreak: Being able to receive a lvl 100 reshiram after the first gym is not a good idea....... =/

This doesn't seem to be working for me ho-oh.... I'm using latest release of essentials, just can't actually seem to get the gift. Talked to the dude that has the event script but I don't receive anything. Nothing shows up.... It's odd....
__________________
The Monoball Challenge - Have you got what it takes to catch 'em all, but with only one type of Pokéball? http://www.pokecommunity.com/showthread.php?p=7889482
Reply With Quote
  #78    
Old April 6th, 2012 (08:47 PM).
krakacen's Avatar
krakacen
 
Join Date: Jan 2012
Location: Cancun, Mexico
Gender: Male
Nature: Relaxed
well I'll try what you said,
other questions:
You can make the text that is downloaded is put into a specific folder?
and if so how?
Reply With Quote
  #79    
Old April 7th, 2012 (07:44 AM).
Ho-oh 112's Avatar
Ho-oh 112
Advance Scripter
 
Join Date: Feb 2011
Age: 19
Gender: Male
Nature: Hasty
Quote originally posted by krakacen:
well I'll try what you said,
other questions:
You can make the text that is downloaded is put into a specific folder?
and if so how?

Yes where it says "Gift.txt" put "FolderHere/Gift.txt"
__________________
Scripting Level: Advance

RMXP Poke-Essentials MySQL Trading System Link:
http://www.pokecommunity.com/showthread.php?p=7077162#post7077162

RMXP Poke-Essentials Mystery Gift Link:
http://www.pokecommunity.com/showthread.php?t=270687

RMXP Poke-Essentials Award System Link:
http://www.pokecommunity.com/showthread.php?p=7111566
Reply With Quote
  #80    
Old April 7th, 2012 (12:56 PM).
krakacen's Avatar
krakacen
 
Join Date: Jan 2012
Location: Cancun, Mexico
Gender: Male
Nature: Relaxed
where in the script I put that?
The file is saved as "text.txt
Reply With Quote
  #81    
Old April 8th, 2012 (04:49 PM).
Ho-oh 112's Avatar
Ho-oh 112
Advance Scripter
 
Join Date: Feb 2011
Age: 19
Gender: Male
Nature: Hasty
Quote originally posted by krakacen:
where in the script I put that?
The file is saved as "text.txt
near the top is this:

Code:
file = File.open('text.txt', 'wb'){|f|
f.write(code)
}
array = IO.readlines('text.txt')
change text.txt to let's say: Data/Gift.txt then it saves to: Project/Data/Gifts.txt
__________________
Scripting Level: Advance

RMXP Poke-Essentials MySQL Trading System Link:
http://www.pokecommunity.com/showthread.php?p=7077162#post7077162

RMXP Poke-Essentials Mystery Gift Link:
http://www.pokecommunity.com/showthread.php?t=270687

RMXP Poke-Essentials Award System Link:
http://www.pokecommunity.com/showthread.php?p=7111566
Reply With Quote
  #82    
Old April 28th, 2012 (02:38 PM).
salva123
Beginning Trainer
 
Join Date: May 2011
Gender: Male
I have a problem with this script, when I put number 1 in the option to make a pokemon shiny, I receive the pokemon as a normal one, what can I do to solve this problem?
Reply With Quote
  #83    
Old April 30th, 2012 (05:58 AM).
Ho-oh 112's Avatar
Ho-oh 112
Advance Scripter
 
Join Date: Feb 2011
Age: 19
Gender: Male
Nature: Hasty
Quote originally posted by salva123:
I have a problem with this script, when I put number 1 in the option to make a pokemon shiny, I receive the pokemon as a normal one, what can I do to solve this problem?
I'll take a look, it might take a while since I'm real busy.
__________________
Scripting Level: Advance

RMXP Poke-Essentials MySQL Trading System Link:
http://www.pokecommunity.com/showthread.php?p=7077162#post7077162

RMXP Poke-Essentials Mystery Gift Link:
http://www.pokecommunity.com/showthread.php?t=270687

RMXP Poke-Essentials Award System Link:
http://www.pokecommunity.com/showthread.php?p=7111566
Reply With Quote
  #84    
Old April 30th, 2012 (07:00 AM).
salva123
Beginning Trainer
 
Join Date: May 2011
Gender: Male
Quote originally posted by Ho-oh 112:
I'll take a look, it might take a while since I'm real busy.
No problem Hooh, take your time
Reply With Quote
  #85    
Old May 18th, 2012 (06:36 PM).
SytheXP's Avatar
SytheXP
Net Labs/UG Founder
 
Join Date: May 2007
Location: Zombieville South Carolina
Age: 24
Gender: Male
Nature: Calm
Hey, I have a question more so about webs than the actual script, How do I get my uploaded .txt onto the page? also I was wondering if you could make the layout a bit more clear. For example do we need to Put pokemon Dex numbers/Move Numbers so on and so forth or Internal names/numbers. I tested it with your .txt and it works perfectly for what I am needing. Just need to get it set up with my stuff. My current .txt look like this.
Code:
Sythe from the Under-Net presents you with a dark gift. (Message)
0 (Pokemon)
491 (Darkrai)
50 (Level)
0 (Form)
0 (Shiny? No)
39 (Move 1)
25 (Move 2)
188 (Move 3)
449 (Move 4)
Sythe (OT)
39257 (ID #)
8 (Nature/Mild)
521 (Item)
0 (Ribbon)
0 (Gender)
31 (IV)
31 (IV)
31 (IV)
31 (IV)
31 (IV)
31 (IV)
Wasn't quite sure on the layout you didnt really explain it very well in your OP. For example do I use the Move Internal # from Moves.TXT or the number from the order it appears under the desired pokemon in Pokemon.txt? And for adding Items, If I wanted to add my custom item (Which cost 75k in game) would I put its Item # from Items.txt? basically Im asking if you can clarify a little better and walk users through how to get their .txt file uploaded to webs.
__________________
My Threads:
Phantom Dusk Plot and Story: http://www.pokecommunity.com/showthread.php?p=4678023#post4678023


My Sprite Thread:http://www.pokecommunity.com/showthread.php?t=179083

Phantom Dusk is back in production with loads of modifications. Will be updating soon! -2012

I Support:
Reply With Quote
  #86    
Old May 18th, 2012 (06:54 PM).
Air Lock's Avatar
Air Lock
Will I come back?
Community Supporter
 
Join Date: Sep 2008
Location: California
Age: 16
Gender: Male
Nature: Jolly
Quote originally posted by SytheXP:
Hey, I have a question more so about webs than the actual script, How do I get my uploaded .txt onto the page? also I was wondering if you could make the layout a bit more clear. For example do we need to Put pokemon Dex numbers/Move Numbers so on and so forth or Internal names/numbers. I tested it with your .txt and it works perfectly for what I am needing. Just need to get it set up with my stuff. My current .txt look like this.
Code:
Sythe from the Under-Net presents you with a dark gift. (Message)
0 (Pokemon)
491 (Darkrai)
50 (Level)
0 (Form)
0 (Shiny? No)
39 (Move 1)
25 (Move 2)
188 (Move 3)
449 (Move 4)
Sythe (OT)
39257 (ID #)
8 (Nature/Mild)
521 (Item)
0 (Ribbon)
0 (Gender)
31 (IV)
31 (IV)
31 (IV)
31 (IV)
31 (IV)
31 (IV)
Wasn't quite sure on the layout you didnt really explain it very well in your OP. For example do I use the Move Internal # from Moves.TXT or the number from the order it appears under the desired pokemon in Pokemon.txt? And for adding Items, If I wanted to add my custom item (Which cost 75k in game) would I put its Item # from Items.txt? basically Im asking if you can clarify a little better and walk users through how to get their .txt file uploaded to webs.
Moves have to use the numbers from Moves.txt. Items, the same way, except use the internal number from Items.txt. To upload to Webs, do this:
1. Log into your Webs Account.
2. Click View Control Panel.
3. Click Manage Pages & Apps.
4. Click File Manager.
5. Make a folder called Gifts.
6. Click on Gifts and upload the gift.txt. Make sure the text file is actually name gift.txt!
7. Test, and it should work.
8. ???
9. PROFIT! :D

Also I suggest you remove the ()'s and the words inside them. It'll give you a "The Gift was Corrupted!" error if you don't. Or you can just put a # in front of them.
__________________
coming soon kiddos
Reply With Quote
  #87    
Old May 18th, 2012 (07:26 PM). Edited May 18th, 2012 by SytheXP.
SytheXP's Avatar
SytheXP
Net Labs/UG Founder
 
Join Date: May 2007
Location: Zombieville South Carolina
Age: 24
Gender: Male
Nature: Calm
Quote originally posted by Final Destination:
Moves have to use the numbers from Moves.txt. Items, the same way, except use the internal number from Items.txt. To upload to Webs, do this:
1. Log into your Webs Account.
2. Click View Control Panel.
3. Click Manage Pages & Apps.
4. Click File Manager.
5. Make a folder called Gifts.
6. Click on Gifts and upload the gift.txt. Make sure the text file is actually name gift.txt!
7. Test, and it should work. :)
8. ???
9. PROFIT! :D

Also I suggest you remove the ()'s and the words inside them. It'll give you a "The Gift was Corrupted!" error if you don't. Or you can just put a # in front of them.
Thanks and I actually dont have the quotes on my document. I put it there to make sure my layout was correct.

Works perfectly thanks :) Well with the exception of not knowing how to set the nature and so forth. And not sure how to add items. Im going to tinker with it a bit and try to find out how to do the items :/
__________________
My Threads:
Phantom Dusk Plot and Story: http://www.pokecommunity.com/showthread.php?p=4678023#post4678023


My Sprite Thread:http://www.pokecommunity.com/showthread.php?t=179083

Phantom Dusk is back in production with loads of modifications. Will be updating soon! -2012

I Support:
Reply With Quote
  #88    
Old May 19th, 2012 (05:19 AM).
Ho-oh 112's Avatar
Ho-oh 112
Advance Scripter
 
Join Date: Feb 2011
Age: 19
Gender: Male
Nature: Hasty
Quote originally posted by SytheXP:
Thanks and I actually dont have the quotes on my document. I put it there to make sure my layout was correct.

Works perfectly thanks Well with the exception of not knowing how to set the nature and so forth. And not sure how to add items. Im going to tinker with it a bit and try to find out how to do the items :/
Items are from the item's give number (What I do is make the pokemon manually in debug modify all it's attributes and export each stat of it and put that in the file.)

(1=masterball,2=ultraballl,ect.)
__________________
Scripting Level: Advance

RMXP Poke-Essentials MySQL Trading System Link:
http://www.pokecommunity.com/showthread.php?p=7077162#post7077162

RMXP Poke-Essentials Mystery Gift Link:
http://www.pokecommunity.com/showthread.php?t=270687

RMXP Poke-Essentials Award System Link:
http://www.pokecommunity.com/showthread.php?p=7111566
Reply With Quote
  #89    
Old May 20th, 2012 (07:06 AM).
pokemonmasteraaron's Avatar
pokemonmasteraaron
The blind Pokémon Master!
 
Join Date: Jan 2011
Location: In the forest of an undiscovered region
Age: 18
Gender: Male
Nature: Relaxed
Send a message via Skype™ to pokemonmasteraaron
When ever the mystery gift script runs, it stops responding.
There is an option to try to restore the program.
When done, it says the script is hanging.
Help please?
Here is my file and I am using version 7 may 15 2012

This is a mystery gift!
0
26
5
0
0
209
422
85
344
Event01
67792
10
0
242
10
20
20
20
10
14
All the numbers are on separate lines.
__________________
Game developer.
Not nearly as active on here as I used to be.
Still like meeting and talking to pokemon fanatics like myself.
Reply With Quote
  #90    
Old May 20th, 2012 (02:08 PM).
Umbreon's Avatar
Umbreon
Community Supporter
 
Join Date: Aug 2009
Location: Nearby my feet.
Age: 18
Gender: Male
Nature: Calm
Quote originally posted by pokemonmasteraaron:
When ever the mystery gift script runs, it stops responding.
There is an option to try to restore the program.
When done, it says the script is hanging.
Help please?
Here is my file and I am using version 7 may 15 2012

This is a mystery gift!
0
26
5
0
0
209
422
85
344
Event01
67792
10
0
242
10
20
20
20
10
14
All the numbers are on separate lines.
Try the test gift first (if that doesn't work it's the Ho-oh's system)
Reply With Quote
  #91    
Old May 20th, 2012 (02:14 PM).
pokemonmasteraaron's Avatar
pokemonmasteraaron
The blind Pokémon Master!
 
Join Date: Jan 2011
Location: In the forest of an undiscovered region
Age: 18
Gender: Male
Nature: Relaxed
Send a message via Skype™ to pokemonmasteraaron
Wow, I derped big time.
I shoulda thought to try that.
I'll go test that.
__________________
Game developer.
Not nearly as active on here as I used to be.
Still like meeting and talking to pokemon fanatics like myself.
Reply With Quote
  #92    
Old May 22nd, 2012 (07:46 PM).
pokefangames's Avatar
pokefangames
Sinor Trainer
 
Join Date: May 2012
Gender: Male
Nature: Calm
this looks good, but I do have a question: is this like the DS games where you can have only on Mystery gift at a time or similar to the GBA games where you have preset codes?
Reply With Quote
  #93    
Old June 23rd, 2012 (06:59 PM). Edited June 23rd, 2012 by TheShinyMew.
TheShinyMew's Avatar
TheShinyMew
The World Will Never Know!
 
Join Date: May 2010
Location: Magic City
Age: 25
Gender: Female
Nature: Hardy
Send a message via Skype™ to TheShinyMew
I will try that, but before you do, can you please teach me how to do my own Mystery Gift System?

EDIT: By the way, is this script compatible with all DS Pokémon games (including Black/White/Black2/White2)?
__________________
I'd buy that for a dollar!
Would you buy it for a quarter?


"It is sure getting dark in here!"

<--- Please hatch my egg!


Smash TV wants to fight! It sent out Meta Knight!

Reply With Quote
  #94    
Old September 30th, 2012 (10:35 AM). Edited September 30th, 2012 by BattleScarred53.
BattleScarred53's Avatar
BattleScarred53
Unhatched Egg
 
Join Date: Dec 2011
Gender: Male
Nature: Modest
I just tried (and succeeded) at getting a gift working, but it can be obtained infinite times. Is there any way to get the gift once but keep the event for further use?

EDIT: Sorry, I'm an idiot. I had it in debug mode.

By the way, if you want to easily upload the gift file, use text-upload.com for it. I didn and I copied the .txt file download link. Then, just put the link into the script and it works like a charm.
Reply With Quote
  #95    
Old March 29th, 2013 (12:54 PM).
BenGames,Films, and More!'s Avatar
BenGames,Films, and More!
Are you not entertained?
 
Join Date: Nov 2012
Gender: Male
Nature: Serious
Hey, I decided to upload it here!
Attached Files
File Type: txt New Text Document.txt‎ (177 Bytes, 5 views) (Save to Dropbox)
__________________


YouTube Channel
Deviant Art
BGFM Forums
Take a quiz about me!
I believe in Jesus Christ my Savior. If you do too, and aren't scared to admit it, then copy and paste this in your signature.
If you say "pls" or "plz" because it's shorter than "please", I'll say "no" because it's shorter than "yes".
Reply With Quote
Reply
Quick Reply

Sponsored Links
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Minimum Characters Per Post: 25



All times are UTC -8. The time now is 05:06 PM.