- User Lists
Showing Visitor Messages 1 to 7 of 7
June 14th, 2012 03:45 AMMagic FoxSo you would have this, basically:
Person Event Number and Person ID can both be found in A-Map, when you click on the event.
If this is for your first Pokémon it's a good idea to use the flag 0x828 - that way you also activate the Pokémon menu as well and kill two birds with one stone!
June 13th, 2012 11:31 AMMagic FoxFlags are areas of the ROM which store yes/no kind of information - they are either set, or clear.
In scripting you use the commands: setflag 0xFLAG, clearflag 0xFLAG and checkflag 0xFLAG (where flag is a unique number, normally 400-1000).
Some flags have special properties when set, and activate menus, badges, etc.
Quote:Originally Posted by FireRed flags0x820 – Activates First Badge
0x821 - Activates Second Badge
0x822 - Activates Third Badge
0x823 - Activates Fourth Badge
0x824 - Activates Fifth Badge
0x825 - Activates Sixth Badge
0x826 - Activates Seventh Badge
0x827 - Activates Eighth Badge
0x828 - Activates Pokemon Menu
0x829 - Activates Pokedex Menu
0x82F - Activates Running Shoes
For simplicity imagine that 'setflag' changes the value from 0 -> 1. 'clearflag' changes the value from 1 -> 0.
Here is a script to demonstrate flag use in changing what happens:
The line under 'checkflag 0x500' is important, it means that when 0x500 is set (value = 1) then the script shoulg to to @FlagIsSet rather than carry on. This script should therefore alternate between the two messages every time you talk to the person event.
I hope that made flags clearer!
June 13th, 2012 02:37 AMMagic FoxAh that's a problem that crops up a lot, the issue is that 'hidesprite' is only temporary, to make it permanent you need to also set a flag, somewhere in the script (there might be one already), then you use that as the event's "Person ID" in Advancemap.
Person ID: 800
June 12th, 2012 03:26 PMMagic FoxHi Nova! I see you need a hand with scripting, hopefully I can help! Unfortunately I don't use skype, however I am often on VMs/PMs quite often here (GMT timezone).
How much do you know about scripting so far? I can link you to some tutorials to get you started or help you with specific things if you've tried them and gotten stuck