Jump to content

Need help with a small Script in Mt.Coronet


Recommended Posts

Hello im here to post this because i am having some difficulties with editing scripts using PPRE on Pokemon Platinum what i am trying to do is edit the palkia/dialga script so that i can rebattle them again because i have lost them both and i really dont want to start a new game here i will post the script to see if anyone that has experience can help thankyou all that will try to help

Thanks

===scr_1

Goto func_0

End

===scr_0

PlaySound 0x5dc

Lockall

If 0x40c5 0x1

COMPARELASTRESULT 0x4 func_1

Checkflag 0xd1

COMPARELASTRESULT 0x1 func_1

Message 0x0

Yesnobox 0x800c

If 0x800c 0x1

COMPARELASTRESULT 0x1 func_2

Cryfr 0x1e4 0x0

Message 0x1

Waitcry

Closemsgonkeypress

Wildbattle2 0x1e4 0x46 0xec 0x800c

If 0x800c 0x0

COMPARELASTRESULT 0x1 func_3

Setvar 0x40c5 0x1

CheckWildBattle2 0x800c

If 0x800c 0x0

COMPARELASTRESULT1 0x1 func_4

Releaseall

End

==func_0

0166 0x4000

If 0x4000 0x0

COMPARELASTRESULT 0x1 func_5

022D 0x2 0x4000

If 0x4000 0x0

COMPARELASTRESULT 0x1 func_5

Checkitem 0x1c7 0x1 0x4000

If 0x4000 0x0

COMPARELASTRESULT 0x1 func_5

028B 0x2 0x4000

If 0x4000 0x0

COMPARELASTRESULT 0x1 func_5

Checkflag 0x11e

COMPARELASTRESULT 0x1 func_5

Setvar 0x4118 0x1

Jump func_5

==func_5

Killscript

==func_3

LostGoPc

Releaseall

End

==func_4

Clearflag 0xd1

Killscript

==func_1

Message 0x2

Waitbutton

Jump func_2

==func_2

Closemsgonkeypress

Releaseall

End

Link to comment
Share on other sites

This is my map replacements for PPRE b07 at map 584:

===scr_1

Goto func_0

End

===scr_0

PlaySound 0x5dc

Lockall

Message 0x0

Yesnobox 0x800c

If 0x800c 0x1

COMPARELASTRESULT 0x1 func_2

Cryfr 0x1e3 0x0

Message 0x1

Waitcry

Closemsgonkeypress

Wildbattle2 0x1e3 0x46 0xec 0x800c

If 0x800c 0x0

COMPARELASTRESULT 0x1 func_3

Setvar 0x40c4 0x1

CheckWildBattle2 0x800c

If 0x800c 0x0

COMPARELASTRESULT1 0x1 func_4

Releaseall

End

==func_0

0166 0x4000

If 0x4000 0x0

COMPARELASTRESULT 0x1 func_5

022D 0x2 0x4000

If 0x4000 0x0

COMPARELASTRESULT 0x1 func_5

Checkitem 0x1c7 0x1 0x4000

If 0x4000 0x0

COMPARELASTRESULT 0x1 func_5

028B 0x2 0x4000

If 0x4000 0x0

COMPARELASTRESULT 0x1 func_5

Checkflag 0x11e

COMPARELASTRESULT 0x1 func_5

Setvar 0x4118 0x1

Jump func_5

==func_5

Killscript

==func_3

LostGoPc

Releaseall

End

==func_4

Clearflag 0xd0

Killscript

==func_1

Message 0x2

Waitbutton

Jump func_2

==func_2

Closemsgonkeypress

Releaseall

End

And this is map 585:

===scr_1

Goto func_0

End

===scr_0

PlaySound 0x5dc

Lockall

Message 0x0

Yesnobox 0x800c

If 0x800c 0x1

COMPARELASTRESULT 0x1 func_2

Cryfr 0x1e4 0x0

Message 0x1

Waitcry

Closemsgonkeypress

Wildbattle2 0x1e4 0x46 0xec 0x800c

If 0x800c 0x0

COMPARELASTRESULT 0x1 func_3

Setvar 0x40c5 0x1

CheckWildBattle2 0x800c

If 0x800c 0x0

COMPARELASTRESULT1 0x1 func_4

Releaseall

End

==func_0

0166 0x4000

If 0x4000 0x0

COMPARELASTRESULT 0x1 func_5

022D 0x2 0x4000

If 0x4000 0x0

COMPARELASTRESULT 0x1 func_5

Checkitem 0x1c7 0x1 0x4000

If 0x4000 0x0

COMPARELASTRESULT 0x1 func_5

028B 0x2 0x4000

If 0x4000 0x0

COMPARELASTRESULT 0x1 func_5

Checkflag 0x11e

COMPARELASTRESULT 0x1 func_5

Setvar 0x4118 0x1

Jump func_5

==func_5

Killscript

==func_3

LostGoPc

Releaseall

End

==func_4

Clearflag 0xd1

Killscript

==func_1

Message 0x2

Waitbutton

Jump func_2

==func_2

Closemsgonkeypress

Releaseall

End

Map 215:

===scr_0

Setvar 0x40a4 0x0

Checkflag 0x132

COMPARELASTRESULT 0x1 func_0

Checkflag 0x132

COMPARELASTRESULT 0x0 func_1

End

===scr_1

Setvar 0x40a4 0x0

Goto func_2

Checkflag 0x132

COMPARELASTRESULT 0x1 func_0

Checkflag 0x132

COMPARELASTRESULT 0x0 func_1

End

===scr_2

Setvar 0x40a4 0x1

Goto func_9

End

===scr_3

Setvar 0x40a4 0x1

Goto func_10

End

==func_0

SetDoorPassable 0x2 0x7 0x5

End

==func_1

If 0x40aa 0x2

COMPARELASTRESULT 0x4 func_3

Jump func_4

==func_4

SetDoorPassable 0x1 0x7 0x5

End

==func_3

Checkflag 0x145

COMPARELASTRESULT 0x0 func_4

Checkflag 0xd0

COMPARELASTRESULT 0x1 func_5

If 0x40c4 0x1

COMPARELASTRESULT 0x4 func_5

Checkitem 0x87 0x1 0x4001

If 0x4001 0x1

COMPARELASTRESULT 0x1 func_6

032F 0x87 0x4001

If 0x4001 0x1

COMPARELASTRESULT 0x1 func_6

Jump func_5

==func_5

Checkflag 0xd1

COMPARELASTRESULT 0x1 func_4

If 0x40c5 0x1

COMPARELASTRESULT 0x4 func_4

Checkitem 0x88 0x1 0x4001

If 0x4001 0x1

COMPARELASTRESULT 0x1 func_8

032F 0x88 0x4001

If 0x4001 0x1

COMPARELASTRESULT 0x1 func_8

Jump func_4

==func_6

SetDoorPassable 0x3 0x7 0x5

End

==func_8

SetDoorPassable 0x4 0x7 0x5

End

==func_2

SetDoorPassable 0x1 0x1 0x5

SetDoorPassable 0x2 0x1 0x5

SetDoorPassable 0x3 0x1 0x5

SetDoorPassable 0x4 0x1 0x5

Killscript

==func_7

Killscript

==func_9

Warp 0x248 0x0 0x1f 0x35 0x0

End

==func_10

Warp 0x249 0x0 0x1f 0x35 0x0

End

And lastly add these triggers in map 215 (requires PPRE b07)

Add triggers by going to Events -> Triggers and toggling the number box to 2

Events -> Triggers -> 0

Insert this data from top to bottom:

3, 6, 6, 1, 1, 0, 0, 16548

Events -> Triggers -> 1

4, 8, 6, 1, 1, 0, 0, 16548

Note: All three scripts and triggers need to be modified

To use:

Climb Mount Coronet. When you get to the door before you normally exit out onto the top. Take a left to battle Dialga and a right to battle Palkia.

Edited by Alpha
Fixed
Link to comment
Share on other sites

Thanks a lot Alpha works perfectly and DDD no u cant uncheck the events because Mt.coronet has been created 5 times for example you go and trigger the event for giratina wen u re-enter that place it will be a diffirent mt coronet map if it was the same it would trigger the giratina event over again and its exacly the same with Palkia/Dialga thats why you have to leave once you capture 1 and re-enter to get the other

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...