• Just a reminder that providing specifics on, sharing links to, or naming websites where ROMs can be accessed is against the rules. If your post has any of this information it will be removed.
  • Ever thought it'd be cool to have your art, writing, or challenge runs featured on PokéCommunity? Click here for info - we'd love to spotlight your work!
  • Welcome to PokéCommunity! Register now and join one of the best fan communities on the 'net to talk Pokémon and more! We are not affiliated with The Pokémon Company or Nintendo.

[Scripting Question] Custom Ability Help

Hi all,
I want making a custom ability for my fangame but I don't know what the right code for this abilities
Here a list :

» Touch dead
Touch dead ability like rough skin, but a different. This ability if enemy making contacts moves to user, total damage for user this ability is 8 floor hp and for enemy if use contact move to user deals with total damage 1 floor hp..

» Soul Steal
Soulsteal : every user making contact moves with target, user can recover 1/10 hp floor every attack the target using contact moves like pound, scratch, mach punch etc..

» Dealer
This ability can working if enemy failed to attack user 5 times, target fainted instantly...

» Mage Curse
If this ability on, can disable target to use any contact moves to user..

That's all...
Thank's for helping :)
 
CTRL-F "Rough Skin" with the script editor open to see the code for Rough Skin, and if you want it to deal a fixed percentage of damage on contact, CTRL-F "Rocky Helmet" for the code that item uses for contact damage. Copypaste the relevant code into an entry for a new ability, and add it to the Abilities.PBS file.

Soul Steal's the same except see the "Leftovers" item for healing code.

"Dealer" would require incrementing a custom variable by 1 at the end of every turn (No idea how) and then setting it to 0 if you were hit that turn (See Dynamicpunch's code) and then instakilling the foe (see Sheercold/Fissure) if the variable's above 5. Are you sure about an ability like this? It'd either be total overpowered cheese or a gimmick too situational to ever see play. What would you do, use Taunt on a Pokemon without any damaging moves? Use Encore on a Pokemon that used a non-damaging move recently, then when he finally breaks out of Encore, use Fly or Protect? Would it really be worth it when Toxic followed by Infestation will kill faster?

Mage Curse? See Rough Skin's "On contact" code plus the code for the move "Disabled".
 
CTRL-F "Rough Skin" with the script editor open to see the code for Rough Skin, and if you want it to deal a fixed percentage of damage on contact, CTRL-F "Rocky Helmet" for the code that item uses for contact damage. Copypaste the relevant code into an entry for a new ability, and add it to the Abilities.PBS file.

Soul Steal's the same except see the "Leftovers" item for healing code.

"Dealer" would require incrementing a custom variable by 1 at the end of every turn (No idea how) and then setting it to 0 if you were hit that turn (See Dynamicpunch's code) and then instakilling the foe (see Sheercold/Fissure) if the variable's above 5. Are you sure about an ability like this? It'd either be total overpowered cheese or a gimmick too situational to ever see play. What would you do, use Taunt on a Pokemon without any damaging moves? Use Encore on a Pokemon that used a non-damaging move recently, then when he finally breaks out of Encore, use Fly or Protect? Would it really be worth it when Toxic followed by Infestation will kill faster?

Mage Curse? See Rough Skin's "On contact" code plus the code for the move "Disabled".

Thank you...
I'll try it
 
What if Dealer checked whether you've attacked the foe this turn, and then reduced the foe's HP by a fifth if you did? It'd match the "5 cards dealt and you're out" theme while encouraging the opponent to avoid the Dealer pokemon's attacks or knock him/her out ASAP.
 
Back
Top