how do i make the pokegear use a mouse? i know the script is in pokemon animeditor but i just can't seem to make it work....
It works for me (although you have to use extendtext.exe and enclose the address in quotes). Check your PokemonNetwork script; there should be a pbDownloadToString method defined there.
Okay, I have a need to create a game, but when I click on the link to the site to download the Starter kit, the download link is un-clickable. Any Ideas on how to fix this problem.
I got it to work, well kind of. Why does the event return as the else. The web page says none. I copied and pasted the new scripts file to the game.
This caused a new problem. The game now skips the title screen and goes straight the continue or new game screen. I tried to copy and paste the old script in there but it still does not work. Other than this the game works fine.
string=pbDownloadToString(
'https://home.comcast.net/~tandmmail/none_page.html')
string[/<body>(.*?)<\/body>/]
body=$1.gsub(/[\t\r\n\f]/,"")
$game_variables[38]=body
You've probably got HTML tags which are messing it up; it will return the whole HTML code, not just the body text. You could use a regular expression to get just the body:
The first two lines download the website; the third finds the body. Finally, the fourth line removes any new-lines in the body.Code:string=pbDownloadToString( 'https://home.comcast.net/~tandmmail/none_page.html') string[/<body>(.*?)<\/body>/] body=$1.gsub(/[\t\r\n\f]/,"") $game_variables[38]=body
An explanation: a string enclosed in forward slashes is what's called a regular expression. A regular expression can include symbols which match several characters; for example, the '.' symbol matches any character. The '*' tells it to match multiple occurrences of it, while the '?' tells it to match the least amount possible (so it doesn't also match the </body> tag). Since the string is enclosed by forward slashes, the forward slash in the tag must have a backslash in front of it; a backslash in front of a symbol tells it to treat it as a normal character (this is called escaping). The brackets allow you to group expressions; however, they also save the contents to the $1 to $9 global variables. This means that the body text is saved to $1 (since it's in the first set of brackets). Since the body text contains new-lines, which are invisible on the website, you need to delete those. Again, a regular expression is used in the gsub (global substitution) method. The square brackets match any character inside the brackets; I've put the symbols for the various new-line characters there.
Where do I insert my code? Do I have to? I probobly sound completely dumb right now because I am still trying to learn rgss. My knowledge of html is very, very, very small. I tryed copying the text you put in the code into my event.
I figured out that in the new version of essentials the title screen only appears in the game file. At least that is the way mine is.
Thanks for your help so far.
Does IT refer to my code or the code you posted?Just put it in a Script... event command; it works for me. You'll have to use extendtext.exe to fit it all in, though (in your game's folder, there should be a program called extendtext.exe; run it while you have a text or script event input box open, and it will enlarge it).
You can't delete the new lines from the posted script, because that messes it up. Basically, open a new Script... event command, use extendtext, and finally paste in the script without changing anything.
EDIT: It should look like this:
![]()
Can someone explain why I get this during leveling up?
Exception: NameError
Message: uninitialized constant Window_SimpleTextPokemon
PokemonItems:11:in `pbTopRightWindow'
PokeBattle_ActualScene:2451:in `pbLevelUp'
PokeBattle_Battle:2174:in `pbGainEXP'
PokeBattle_Battle:2154:in `loop'
PokeBattle_Battle:2190:in `pbGainEXP'
PokeBattle_Battle:2072:in `each'
PokeBattle_Battle:2072:in `pbGainEXP'
PokeBattle_Battle:2039:in `each'
PokeBattle_Battle:2039:in `pbGainEXP'
PokeBattle_Battler:1494:in `pbUseMove'
Is there a way to show an animation when the player throws a pokeball out and calls one of their pokemon out. Like when the battle starts the player throws the pokeball then just as the pokemon is released an animation is shown?