Quantcast
Channel: The PokéCommunity Forums
Viewing all 64307 articles
Browse latest View live

[Scripting Question] Need help creating a function code for a status ailment I added

$
0
0
I'm new to this whole thing but I've been trying to create a new function code to allow me to make that give a status ailment I added. I followed other steps to implement the ailment itself but the function I made for It keeps saying its the wrong number of arguments. 1 for 2 specifically.

This is what I got so far,

################################################################################
# Gives the target tetanus.
################################################################################
class PokeBattle_Move_66A < PokeBattle_Move
def pbEffect(attacker,opponent,hitnum=0,alltargets=nil,showanimation=true)
return super(attacker,opponent,hitnum,alltargets,showanimation) if @basedamage>0
return -1 if !opponent.pbCanTetanus?(true)
pbShowAnimation(@id,attacker,opponent,hitnum,alltargets,showanimation)
opponent.pbPoison(attacker,true)
@battle.pbDisplay(_INTL("{1} was infected with tetanus!",opponent.pbThis))
return 0
end

def pbAdditionalEffect(attacker,opponent)
return false if !opponent.pbCanTetanus?(false)
opponent.pbPoison(attacker,true)
@battle.pbDisplay(_INTL("{1} was infected with tetanus!",opponent.pbThis))
return true
end
end

This is the error I get.
---------------------------
Exception: ArgumentError

Message: wrong number of arguments(1 for 2)

PokeBattle_MoveEffects:227:in `pbCanTetanus?'

PokeBattle_MoveEffects:227:in `pbAdditionalEffect'

PokeBattle_Battler:4647:in `pbProcessMoveAgainstTarget'

PokeBattle_Battler:4519:in `each'

PokeBattle_Battler:4519:in `pbProcessMoveAgainstTarget'

PokeBattle_Battler:5284:in `pbUseMove'

PokeBattle_Battler:5234:in `loop'

PokeBattle_Battler:5287:in `pbUseMove'

PokeBattle_Battler:6057:in `pbProcessTurn'

PokeBattle_Battler:6056:in `logonerr'
-----------

[Pokeemerald] Decapitalization of Pokémon Emerald's disassembly

$
0
0
Hello!

I've just finished decapping the Pokémon Emerald disassembly, and I want to share it to anyone that might have an use for it.

It's a best-effort attempt (lots of search & replace and Notepad++'s formatting features so I didn't risk mistyping anything), I might have missed some evil all-caps words, if you notice any please let me know.

The first commit is the actual decapitalization, the second one is a small change to the text input window so it will switch from upper to lower case after you input the first uppercase character, somewhat like a smartphone's virtual keyboards would do.

I think it makes it easier and more natural to input nicknames and the player's name in a properly capitalized way, but feel free to revert it if it doesn't suit your tastes.

The repository is on Github, Wyrserth/pokeemerald, sorry but can't post the full link yet. Hope it will help someone out there!

[Script] Rematch a trainer multiple times

$
0
0
Hello,

I am trying to create a battle club in Pokemon Fire Red. This would include the player being able to rematch a trainer multiple times. But, when I try to initiate my code I am only able to battle the trainer once or twice. A part of my code that uses trainer battles is below.

Spoiler:
#org @grace
showsprite 0x03
applymovement 0x03 @battle
waitmovement 0x0
setvar 0x4015 0x1
trainerbattle 0x1 0x1C6 0x0 @oddish @stall @win
release
end


I appreciate any help someone can give me.

How Do You Define an RPG

$
0
0
Believe it or not, there's been a debate on what's considered an RPG for video games. Some say it's the turn-based gameplay, others say it's the character-driven stories, and the rest say it's based on character/weapon stats. One of my friends, Mr. Red Fox, posted his video on his definition of an RPG just to give you an example. To summarize, it's when your choices affect the current story.

As for you guys, how would you define a video game as an RPG based on your own descriptions?

'Ello

$
0
0
Hi! I have been here before but have not been on my computer in awhile. I been playing Pokemon for 20 plus years. I am an oldie! I remember having the original games on my game boy and playing Red and Blue. I always had charmander! Anyway, hope to meet you all and see you all around!

[Other Question] Emerald resources

$
0
0
Two days ago, I bought RPGMakerXP and downloaded Pokemon Essentials from the only source I could find, the essentials GitHub, thinking to myself: "It might be better to first develop my game in a slightly easier to understand environment than an actual ROM," and I was right! But one of the requirements of my fanmade game is that it's located in Hoenn, and as far as I could see there is no Hoenn tilesets.
Now, I would gladly make my own tileset from existing tilesets, but that's already another 2 to 5 hours of work. If the option exists, I would rather just download all the tilesets and sprites directly.

Does anybody know a source for that?

If not, no problem, I'll make my own stuff and upload it.

4th Gen Why is pokemon heartgold and soulsilver so expensive?

$
0
0
I lost my pokemon heartgold when I moved house and tried to get a new one or preowned as it's an old one. I thought it would be cheaper as it's older and on the DS but it's actually more expensive.

I just wondered why is it so much more expensive than some of the others?

[Error] Essentials CRASHING Please Help

$
0
0
Hi guys
Actually I am in big trouble. I accidentally messed up something in essentials and now neither the game nor the playtest is working

This is what I see
When I open the Game


When play testing


I tried to add an Alolan pokemon by debug and thats when this happened
I thinks I messed up something in PBS or with the Graphics

I tried using a fresh Essentials and this is repeating for the new one also which I hadn't even touched
Please help guys I don't know what to do

[Script] Completely delete party member before a battle?

$
0
0
Hello all. :)

I have a question concerning battling, is there any way I can erase a Pokemon entirely from someone's team before a battle occurs, like, completely erase? There's a gimmick I wanted to try for a hack, in which in the final battle of the hack, the starter of yours, if in your party or PC Box, will be entirely removed from the players possession? If not, are the any workarounds to this that would function similarly?

Thankyou all in advance. :)

How would i make an item like Ice Boots that let me walk on ice without sliding for post game stuff?

$
0
0
I cant figure it out if i'm being honest

IMPORTANT: Time's up: Vote on your favorite game!

$
0
0
Game submissions have been closed and the game jam is coming to a conclusion. There's only one final thing left to do: play all the games!

Please vote in the poll above this thread on your favorite game! Although it's possible to vote on your own entry... don't be that guy. You're also not allowed to use alt accounts (which aren't allowed on the site at all) to vote multiple times. The poll will be open until the judges have played all the games and decided on a winner.

Speaking of judges, the judges for this game jam are juliorain, Vendily and Marin. If any of these judges have submitted an entry of their own, they will not judge that game.

The winning entries will get a special prefix in the Games Showcase, as well as a special header in the thread itself.

come up with at least five good things about your least favourite pokemon games

$
0
0
i know it's way easier said than done, but I challenge all of you: I know there's a reason why your least favourite Pokemon games are they way they are, but are you able to come up with five positive things, as well? are you able to recognize your least favourite Pokemon games past their flaws and see the good that they bring to the table?

Detective Pikachu trailer, with foot massages and… oh my

$
0
0
I can’t see me lovin’ nobody but you for all my life



I chuckled at the "I pictured you as a bit of a briefs guy" part.

Who where when how why to start what??

$
0
0
I wanna make a pokemon emerald rom haaaaaaaaaaaaaaaaack :*( with exploration.. & graphics.. & difficult gameplay.. NOW!!! take me thereee

[General] Evolving Scyther to Scizor(Gen VII)

$
0
0
Good evening, can anyone care to help me evolve my Scyther as the title implies. We can get into the details (friend code and what not) in details through PM. Thank you

[Resource] Fire Red Dynamic Surf Overworlds

$
0
0
This code is based on slawter666's pokeem implementation, which loads a custom sprite for each pokemon that can learn surf. I've ported it to Fire Red and changed it up, in my opinion, for the better.

For starters, the overall surfable pokemon structure has been combined into a single case, so you don't have to worry about matching indices between tables. It also saves space by using pointers to graphics templates that, if are nonexistent, can just be set to zero rather than making a null template.

The palettes are also loaded directly, rather than being searched for by tag, so a single palette tag can be used for all of the sprites. This isn't that big of a deal with the knowledge of increased palette tags, but it saves the user the work of adding palettes to their npc palette table.

The repository is here. The readme should do a good job of explaining necessary information, but please ask if anything is unclear or not working correctly.

**One of the main reasons I ported this was to encourage more artwork to be developed for this resource, as only a handful of sprites have been made thus far. My intent was that with more users gaining access to it, more people would be willing to contribute. I will be contributing here and there, but my spriting skill is somewhat limited, so please help out :)

I should also note that the pokeem source allows horizontally-aligned images, but I am unaware of such a nicety in FR, so the sprites must be vertically aligned. It's not too bad to swap frames around, though.

Here is a nice GIF of it working in FR:

Evil Pokémon

$
0
0
Which Pokémon, other than the three evil Malamar from XY, do you find to be evil?
Out of memory, I can think of:
* Team Rocket's Meowth
* The Togepi in Where No Togepi Has Gone Before

[General] Looking for Clauncher

$
0
0
I am looking for a Clauncher or Clawitzer for breeding purposes. I'm Playing Ultra Moon and just discovered it cannot be caught in the wild.

Let me know if you have a spare!


---

I have found what I was looking for! Please delete this thread. :)

[Discussion] Sketch-y question

$
0
0
I just encountered really interesting situation in my Fire Red Randomized Nuzlocke. I randomized all the TMs and aside from really bad ones I now got TM Sketch. After booting it up I found out all of my Pokémon can learn it. Which means I can give one move of my choosing to one Pokémon.

And this brings out the question. If you could teach one Pokémon one move to make sure it will survive the whole Nuzlocke run, what Pokémon and what move would you choose? Would you go for offensive move for coverage or would you go with some kind of healing? Or let's take this even higher - imagine you found 4 TMs Sketch and can now teach one Pokémon 4 moves. What moves would you teach them?

[Script] getting script tiles to work

$
0
0
Im using a variable to determine how a script tile should behave.

With this I control the behavior of the Tile
Code:

#dynamic 0x800000
#org @start

applymovement 0xFF 0x03
waitmovement 0x0

lock

compare 0x4014 0x0
if 0x1 call 0x8037CD' This is the Offset for the according script I want to debug
compare 0x4014 0x1
if 0x1 goto @1' ignore this
compare 0x4014 0x2
if 0x1 goto @2' ignore either
compare 0x4014 0x3
if 0x1 goto @3'same here


I set the variable 0x4014 to 0 so the Tile should call this next Script accordingly

Code:

#dynamic 0x800000
#org @start
msgbox @intro 0x6
applymovement 0x7F @camera
setvar 0x4011 0
setvar 0x4012 0
goto @setflags

#org @setflags
settrainerflag 0x00A
settrainerflag 0x00B
settrainerflag 0x00C
settrainerflag 0x00D
settrainerflag 0x00E
goto @checkcounter

#org @1
checktrainerflag 0x00A
if 0x1 goto @Battle
showsprite 0x14
applymovement 0x14 @trainersprite
Trainerbattle 0x2 0x00A 0x0 @Challenge @defeat @addcounter

#org @2
checktrainerflag 0x00B
if 0x1 goto @Battle
showsprite 0x14
applymovement 0x14 @trainersprite
Trainerbattle 0x2 0x00B 0x0 @Challenge @defeat @addcounter

#org @3
checktrainerflag 0x00C
if 0x1 goto @Battle
showsprite 0x14
applymovement 0x14 @trainersprite
Trainerbattle 0x2 0x00C 0x0 @Challenge @defeat @addcounter

#org @4
checktrainerflag 0x00D
if 0x1 goto @Battle
showsprite 0x14
applymovement 0x14 @trainersprite
Trainerbattle 0x2 0x00D 0x0 @Challenge @defeat @addcounter

#org @5
checktrainerflag 0x00E
if 0x1 goto @Battle
showsprite 0x14
applymovement 0x14 @trainersprite
Trainerbattle 0x2 0x00E 0x0 @Challenge @defeat @addcounter

#org @LvlUP
call 0x00000

#org @Battle
call @confirm
random 0x4
compare LASTRESULT 0x4
if 0x1 goto @5
compare LASTRESULT 0x3
if 0x1 goto @4
compare LASTRESULT 0x2
if 0x1 goto @3
compare LASTRESULT 0x1
if 0x1 goto @2
compare LASTRESULT 0x0
if 0x1 goto @1

#org @addcounter
call @hidetrainers
addvar 0x4011 1
addvar 0x4012 1
goto @checkcounter

#org @checkcounter
compare 0x4011 0
if 0x1 goto @starttraining
compare 0x4011 1
if 0x1 goto @Battle
compare 0x4011 2
if 0x1 goto @Battle
compare 0x4011 3
if 0x1 goto @Battle
compare 0x4011 4
if 0x1 goto @LvlUP

#org @confirm
compare 0x4012 0x4013
if 0x2 call @setrecord
buffernumber 1 0x4012
msgbox @streaknumber 0x5
compare LASTRESULT 0x1
if 0x0 goto @end
return

#org @end
call @hidetrainers
applymovement 0x7F @moveaway
waitmovement 0x0
applymovement 0xFF @moveaway
waitmovement 0x0
release
end

#org @hidetrainers
fadescreen 0x1
hidesprite 0x14
hidesprite 0x15
fadescreen 0x0
return

#org @streaknumber
= Your current winning streak is:\n[buffer1]\pDo you want to proceed?

#org @setrecord
copyvar 0x4013 0x4012
return

#org @starttraining
msgbox @train 0x5
compare LASTRESULT 0x1
if 0x1 goto @battle
goto @end

#org @moveaway
#raw 0x12
#raw 0xFE

#org @camera
#raw 0x13
#raw 0xFE

#org @trainersprite
#raw 0x13
#raw 0x13
#raw 0xFE

#org @train
= There are no Tournaments assigned\nat the moment. Do you want to\ltrain against the Trainers around\lhere?
#org @challenge
= Get ready for the next battle!
#org @defeat
= You defeated your opponent!
#org @intro
= Begin train script


This script here is a little masterpiece, pretty complex for beginners so let me explain.

Im using vars 0x4011 and 0x4012 as counters for battles 1-3 and counter for the current winning streak respectively. Also I use Var 0x4013 to set my highest Winning streak Record.

This script checks the counters and Acts accordingly to them.
If Var 0x4011 reaches 4 the script should Level up and start the next Template script just with stronger Trainers

After every battle a MSGbox opens showing me the buffered winningstreak, this doesnt work as well because the TextBox Always Shows me 600, Maybe Im using the script wrong:
Here is the Code again:
Code:

#org @confirm
compare 0x4012 0x4013
if 0x2 call @setrecord
buffernumber 1 0x4012
msgbox @streaknumber 0x5
compare LASTRESULT 0x1
if 0x0 goto @end
return

#org @streaknumber
= Your current winning streak is:\n[buffer1]\pDo you want to proceed?


At the beginning of this script I want a Textbox to open for debug purposes, but when I step on the script tile the game just freezes, not even starting the script.

I have tried using Var 0x4016 and Var 0x4050 as valid Vars in Advance map and I have set the script tiles Unknown Value to 00 03 as mentioned in many tutorials.

Where is the Error I cant seem to find it.
And with the amount of Work in the second script I dont just wanna scrap it.
Viewing all 64307 articles
Browse latest View live