• 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!
  • Our weekly protagonist poll is now up! Vote for your favorite Trading Card Game 2 protagonist in the poll by clicking here.
  • 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.

How to make wild pokemon "drop" items after death + another question

  • 39
    Posts
    14
    Years
    Two questions,

    1) How do you make wild pokemon "drop" items after you make it faint without using Thief?

    2) How do you make a different theme play for a map each time you enter it? For example, A pub will have a 33% chance of playing either Ballad of the Baconsfield Miners by Foo Fighters, A Day in the Life by The Beatles, or A Boy Named Sue by Johnny Cash when you enter.

    I appreciate all help.

    Edit: After the song finishes, how do you make it jump to another track?
     
    1) Will need some knowledge in scripting, using the same script as thief for checking if the Pokémon has an item, will work, but add this part somewhere around making a Pokémon faint, I believe just after the Pokémomnn gains EXP, then add some script to take that Item, with a chance of not finding the item (I suggest making this chance higher than actually gaining the item). Then add the item, then, add a message saying found said item... I have an idea how to do this, but if you have scripting knowledge, I'll let you try this yourself first before I look into it, unless someone knows of the top of their head.

    2) This can be achieved VIA $game_variables, quite easily, as you enter the building, parallel process, set $game_variables[1]=1, conditional branch, if 1 = 1, then play BGM, song, wait = song duration-5, fade out time = 5seconds, set $game_variables[1]== random... This is basically how you would do it, change game variable 1 to another though... This is how I would do this task and works fine for me, especially when it comes to playing chart songs... If you think clever enough, you could use this example to make a CD player ;) and adding items called, band - album, and making a new script section called albums and if item =Katy Perry, play all songs below this line, add a new item called CD player which will have it's own def, add this to PokéGear, more than likely, I don't have that in my game, but it's however you set yours up, in the new machine - CD Player, have choices play, stop, next, previous and exit... In your Albums script, make new def, for all these, and add scripts to do what they say on the tin, simples.
     
    Back
    Top