• Our software update is now concluded. You will need to reset your password to log in. In order to do this, you will have to click "Log in" in the top right corner and then "Forgot your password?".
  • 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.

[Other] How to give an item right after a trainer battle

109
Posts
8
Years
    • Seen Apr 2, 2018
    I am trying to make it where you gain a fossil after beating someone, but it won't work. Can anyone tell me an outline or if it isn't possible.
     
    1,682
    Posts
    8
    Years
    • Seen yesterday
    I am trying to make it where you gain a fossil after beating someone, but it won't work. Can anyone tell me an outline or if it isn't possible.

    It should be possible. You just need a trainer battle that continues the script. 0x1 and 0x2 work for single battles.
    Then give the fossil item. I don't remember the hex for those.
     
    109
    Posts
    8
    Years
    • Seen Apr 2, 2018
    It should be possible. You just need a trainer battle that continues the script. 0x1 and 0x2 work for single battles.
    Then give the fossil item. I don't remember the hex for those.

    What what does 0x1 and 0x2 do? I'm afraid I don't understand all of the scripts words x/
     

    HamtaroTumin

    [font=avantgarde-demi][color=#379BBD]#WaitForTheRi
    269
    Posts
    9
    Years
  • Thats a basic thing you will get when scripting, the mixing up scripts. First put your battle script in the start then put the give item script then put hidesprite and atleast the setflag. and end. during testing you would get everything right as you know if you get defeated the script will not reach to the giveitem and you will flee to the PC and after you have won the match he/she will give that item to you and then it will reach to the setflag and after it have reached the setflag the event will no longer happen.
     
    Back
    Top