- 50
- Posts
- 16
- Years
- Seen Apr 27, 2024
i was talking about the non 3d tiles we have on pokecommunity, can anyone make them, and i mean a script that is like the menu in the demo of pokemon ryen
If they exist aren't they already made?i was talking about the non 3d tiles we have on pokecommunity, can anyone make them, and i mean a script that is like the menu in the demo of pokemon ryen
For a start, those dollar signs in front of the numbers (red) shouldn't be there. All that needs to be there is a number. And the script is ending on the green line, and never even looks at what you've added (it's because the line is "return"ing something; that's like an "end" to a def).def pbGetPokedexRegion
return pbGetCurrentRegion(0)
$game_variables[99] = $1
if $game_variables[99] = $2
return pbGetCurrentRegion(1)
end
This is most likely wrong, because I got an error when I accessed the Pokedex. :(
I'm a n00b to RGSS, but what went wrong in the script? Did I possibly define the global variable wrong?
def pbGetPoke[COLOR=Black]dexRegion
[/COLOR] [COLOR=Lime][COLOR=Black]return [/COLOR][/COLOR]$game_variables[99]
[COLOR=Lime][COLOR=Black]end
[/COLOR][/COLOR]
RegionalNumbers=42,17,0,3
Anyone?, anyone have an awnseri need the menu for hgss, one in 2d,and the tiles are not made, but some good spriters are out there
EnumOption.new(_INTL("BATTLE STYLE"),[_INTL("SHIFT"),_INTL("SET")],
proc { $PokemonSystem.battlestyle },
proc {|value| $PokemonSystem.battlestyle=value }
),
if $game_variables[99] >= 0
EnumOption.new(_INTL("POKeDEX TYPE"),[_INTL("Regional"),_INTL("National")],
proc { $game_variables[99] },
proc {|value| $game_variables[99]=value }
end
),
The tiles are made, and your post was two posts up no need to re-post it >_>Anyone?, anyone have an awnser
That code will mean the "switch Dex" option is always visible. There's probably simpler ways to do this, but use a global switch to turn this option on/off.How would I switch between pokedexes if I have beaten the game?
This is what I had in my options script.
EDIT: Oh, and why does my game compile the data EVERY time it starts up?Code:EnumOption.new(_INTL("BATTLE STYLE"),[_INTL("SHIFT"),_INTL("SET")], proc { $PokemonSystem.battlestyle }, proc {|value| $PokemonSystem.battlestyle=value } ), if $game_variables[99] >= 0 EnumOption.new(_INTL("POKeDEX TYPE"),[_INTL("Regional"),_INTL("National")], proc { $game_variables[99] }, proc {|value| $game_variables[99]=value } end ),
if $game_switches[42]
EnumOption.new(_INTL("POKeDEX TYPE"),[_INTL("Regional"),_INTL("National")],
proc { $game_variables[99] },
proc {|value| $game_variables[99]=value }
),
end
That code will mean the "switch Dex" option is always visible. There's probably simpler ways to do this, but use a global switch to turn this option on/off.
Also, the "end" is in the wrong place. It should be after the "),", because if you look closely, the EnumOption line is actually spread across several lines (for clarity), and that ")," ends that line.
Something like that, maybe. Turn global switch 42 ON only when you've "beaten the game" (and then leave it like that forever).Code:if $game_switches[42] EnumOption.new(_INTL("POKeDEX TYPE"),[_INTL("Regional"),_INTL("National")], proc { $game_variables[99] }, proc {|value| $game_variables[99]=value } ), end
The game will recompile itself whenever you've changed anything in the scripts or in the PBS files. Running it twice in a row means that at least the second run won't recompile (because there would be no changes since the first time).
NumberOption.new(_INTL("FRAME"),_INTL("TYPE%d"),1,$TextFrames.length,
proc { $PokemonSystem.frame },
proc {|value| $PokemonSystem.frame=value }
),
if $game_switches[50]
EnumOption.new(_INTL("POKeDEX TYPE"),[_INTL("Regional"),_INTL("National")],
proc { $game_variables[99] },
proc {|value| $game_variables[99]=value }
),
end
Script 'PokemonOption' line '288': SyntaxError Occurred.
Which one is line 288?I did that, but I got a syntax error in line '288'
This is a chunk of the script:
Here is the error:Code:NumberOption.new(_INTL("FRAME"),_INTL("TYPE%d"),1,$TextFrames.length, proc { $PokemonSystem.frame }, proc {|value| $PokemonSystem.frame=value } ), if $game_switches[50] EnumOption.new(_INTL("POKeDEX TYPE"),[_INTL("Regional"),_INTL("National")], proc { $game_variables[99] }, proc {|value| $game_variables[99]=value } ), end
Code:Script 'PokemonOption' line '288': SyntaxError Occurred.
A few people do have them, yes. No one will simply give you the Poké Dex scripts, though, because they worked hard on them (plus it implies you want the dual screen scripts as well, which people here don't want to hand out either). If you want to have a different-looking Poké Dex (or menu, or battle system), you'll either have to learn how to script and do it yourself, or find someone else who can and who would be willing to do all the work for you (hint: you won't). If you have an eye for programming, it's not actually that difficult.ayone have a hgss pokedex script and tiles
Which one is line 288?
A few people do have them, yes. No one will simply give you the Poké Dex scripts, though, because they worked hard on them (plus it implies you want the dual screen scripts as well, which people here don't want to hand out either). If you want to have a different-looking Poké Dex (or menu, or battle system), you'll either have to learn how to script and do it yourself, or find someone else who can and who would be willing to do all the work for you (hint: you won't). If you have an eye for programming, it's not actually that difficult.
For the tiles, look in the Resource Center. I know it's a crazy and ambiguous name for a place that holds game-making resources (what with it being in the game-making section and all), but I promise you there are a few things in there. Naturally, you'll give credit to anyone whose tiles you use.
Ah, I see the problem. All those options are in one big array, and I'm almost certain you can't simply use "if" clauses in the middle of those.Oh haha. Sorry, line '288' is "),"
if $game_switches[50]
@PokemonOptions.push[EnumOption.new(_INTL("POKeDEX TYPE"),[_INTL("Regional"),_INTL("National")],
proc { $game_variables[99] },
proc {|value| $game_variables[99]=value }
)
]
end
Ah, I see the problem. All those options are in one big array, and I'm almost certain you can't simply use "if" clauses in the middle of those.
You have three solutions:
- Immediately after the array is finished (after the one that puts in Speech Frame and after the "]" that closes the array), put the following. This will make the "Change Poké Dex" option the last/bottom-most option in the menu.
Code:if $game_switches[50] @PokemonOptions.push[EnumOption.new(_INTL("POKeDEX TYPE"),[_INTL("Regional"),_INTL("National")], proc { $game_variables[99] }, proc {|value| $game_variables[99]=value } ) ] end
These options are listed in the order I'd recommend them. Option 3 is by far the most extensive edit.
- Lump all the code you've added into one big line, and put the "if $game_switches[50]" bit at the end of it. Remember to remove the "end", and remember that the "one big line" includes the "),". This keeps the option where it is.
- A mixture of the two. All the options above the Poké Dex one go into the array, then "push" the Poké Dex option like above, then push all the options below it.
---------------------------
Pokemon Sparkling Yellow Version - Demo
---------------------------
Exception: NoMethodError
Message: undefined method `[]' for nil:NilClass
PokemonOption:312:in `pbStartScene'
PokemonOption:372:in `pbStartScreen'
PokemonLoad:435:in `pbStartLoadScreen'
PokemonLoad:435:in `pbFadeOutIn'
PokemonLoad:435:in `pbStartLoadScreen'
PokemonLoad:335:in `loop'
PokemonLoad:437:in `pbStartLoadScreen'
DebugIntro:6:in `main'
Main:37:in `mainFunctionDebug'
Main:16:in `mainFunction'
This exception was logged in errorlog.txt.
Press Ctrl+C to copy this message to the clipboard.
---------------------------
OK
---------------------------
And what does line 312 look like?It worked but I got this error when I go to options:
Code:--------------------------- Pokemon Sparkling Yellow Version - Demo --------------------------- Exception: NoMethodError Message: undefined method `[]' for nil:NilClass PokemonOption:312:in `pbStartScene'
And what does line 312 look like?
Interesting. Try retyping that line (you probably copy-pasted it originally) and see if that works. I don't know why it would, though.
---------------------------
Pokemon Sparkling Yellow Version - Demo
---------------------------
Exception: TypeError
Message: cannot convert EnumOption into Integer
PokemonOption:317:in `[]'
PokemonOption:317:in `pbStartScene'
PokemonOption:372:in `pbStartScreen'
PokemonMenu:231:in `pbStartPokemonMenu'
PokemonMenu:230:in `pbFadeOutIn'
PokemonMenu:230:in `pbStartPokemonMenu'
PokemonMenu:139:in `loop'
PokemonMenu:238:in `pbStartPokemonMenu'
Scene_Map:180:in `call_menu'
Scene_Map:153:in `update'
This exception was logged in errorlog.txt.
Press Ctrl+C to copy this message to the clipboard.
---------------------------
OK
---------------------------