![]() |
QUESTION: Is there a way to check if a pokemon is holding an item?
Quote:
-When you enter a map, it looks for level scripts -In Oaks Lab, the script your looking for is #2 -If it is a #2 or 4 script, it looks at the Variable Flag (for this, it is 4055) -It checks that this Variable for its Value (set previously, default is 0000) and if it isn't equal to the number given in the Map script, it doesn't activate. But if it is equal, it does activate. (if MAP-VALUE>VAR-VALUE=not activate, if MAP-VALUE<VAR-VALUE=not activate, if MAP-VALUE=VAR-VALUE=activate) In the script tile that we step on in Pallet Town to activate the script, we see this. Quote:
But, why doesn't it activate again? In the Oaks Lab Level script, we observe this Quote:
People kind of act the same way, but with flags. Quote:
|
Quote:
Thanks for explaining that.I looked into it and seen it had something to do with the variable 4055,but i couldnt figure it all out. |
1 Attachment(s)
Hey guys. I have a problem.
Basically I wrote a script so that when the player steps on a certain spot a sprites goes up to him and battles him. It works up until after the battle where it just plain goes sour. Ive attached a small video to show you what happens. This is the script Spoiler:
This is the amap stuff for the sprite http://i450.photobucket.com/albums/qq223/Gamer2020/random/wtf1.png and this is the amap stuff for the script tile. http://i450.photobucket.com/albums/qq223/Gamer2020/random/wtf2.png I think I am just overlooking something so please if you know what I did wrong please tell me. |
Quote:
Im not sure,but you might need a waitmovment in the #org @pre also the number should be 0003 and 4050 on a green script tile. |
Quote:
Quote:
Quote:
|
Im Pretty badly stuck here, could someone please help me...allow me to explain my problem...
I am hacking myself a new pokemon game and have just begun, im using my very basic scriting knowledge and using the latest version of xse. i made the player wake up at the start of the game in a cave just above an old lady but am having a few major problems, the first of which comes in advance map.. when i place a sprite of a person into the room it will not appear in the visual boy or have any action within it, even when a script has been applied, please give me some pointers for a possible fix number 2 comes from xse and advance map i think, i mad a script to stop anyone leaving the room without first choosing 1 of 2 pokemon, you are ment to walk onto the script and be pushed 1 step back, with a message to appear saying , maby i should talk to the old lady first... so i made a script which i will include...but when i attach to the script to a script tile in advance map and play the game, if i walk on the script tile before it has been bypassed by a flag the game freezes, alough the music still plays on a low quality please help and i hope i have not written waaaay to much Spoiler: #Dynamic 0x800000 #org @start checkflag 0x828 if 0x0 goto @hey! if 0x1 goto @end end #org @hey! lock msgbox @icant 0x6 applymovement 0xFF @back waitmovement 0x0 release end #org @icant = Maby I should talk with/nThe old lady first #org @back #raw 0x0D 0xFE #org @end release end Thanks |
Quote:
The problem is just after the battle when the trainer is supossed to walk away. I had it working before but idk what I changed. Quote:
If I do that then the script tile won't do anything. Quote:
|
Quote:
|
Quote:
Im not sure of your first problem but your second problem sound like you forgot to put the unknown numbers in.They're 0003 and 4050.They go in the first two boxes under the people number i think. And If you only want the script to check if you got a pokemon or not, i think the one below is a litlle less complicated.But you need to make sure the numbers are in on the script tile. Also,or you using xse?If not i suggest to switch to it,its very easy to pick up on and theres a great tutorial by diegoisawesome. The script below is for xse. Spoiler:
|
Spoiler:
This all works.. with a couple exceptions. Even without a pokeball, the checkitem doesn't seem to switch to "jerk". It does take a pokeball if you have one but if you don't it still continues without switching. Also hidesprite works, but when you move just one step, the sprite returns. Could someone help me with these? |
Quote:
Quote:
Spoiler:
Quote:
You do something like this: Code:
Before the hidesprite command you need to use a setflag, which value is the Person ID you set. |
I have a question - I just hope I'm asking the right place for this. If not, please tell me where I should go to ask and all.
Anyways, my question is: How do you make a script which makes a person have a Dropdown mutlichoice box list of Pokemon for sale. I have no clue how to script at all, and my friend who can script has no clue how. If you're wondering what I mean..: Person: Oh, hello there! I'm a grass pokemon trainer and I came to this island to train up my pokemon and catch some new ones. However I got swept away and caught too many of the same in the process. Would you like to buy some form me? [Dropdown box here] Sunflora $500 Vileplume $500 Venusaur $1000 ... Etc etc. That's what I'm trying to do. I'm probably asking the wrong place, but it'd be really appreciated if you could help. Thanks in advance. |
Quote:
|
Quote:
ASM would be the only way to my knowledge, but I could be wrong. |
Quote:
|
Quote:
Quote:
|
Quote:
|
Quote:
|
I can't really script on my PC, nor does the scripting programs I have work. And I have no clue either how to search for it x-x.
Yeah, I know. I'm retarded - When it comes to scripting, I'm dumber then a nail. |
givepokemon
i made a givepokemon script and it works, but after i get it and talk to him again, he gives it to me again, and again and i can't get it to work! i want him to say something else after i get it and talk to him again.
Script: Spoiler:
I am using XSE. |
Quote:
|
Quote:
Spoiler:
|
Quote:
|
I'm redesining the script for my first Pokemon in my hack... The problem is when the flag has been set. If the flag is not set, the script works fine, but when the flag is set, it automatically goes to the script in which it was not set.
Is this because the flag was set on a different map? Or something else (yes I set person id to 950)? Ruby Version AXVE Script: Code:
|
I've asked this before but nobody's answered so here it is again,
In this script everything works 100% except that after the trainerbattle, sprite 0x5 on the screen changes colour. Could somebody tell me the proper settings I should give the sprite? Spoiler:
|
| All times are GMT -8. The time now is 2:55 AM. |
![]()
© 2002 - 2018 The PokéCommunity™, pokecommunity.com.
Pokémon characters and images belong to The Pokémon Company International and Nintendo. This website is in no way affiliated with or endorsed by Nintendo, Creatures, GAMEFREAK, The Pokémon Company or The Pokémon Company International. We just love Pokémon.
All forum styles, their images (unless noted otherwise) and site designs are © 2002 - 2016 The PokéCommunity / PokéCommunity.com.
PokéCommunity™ is a trademark of The PokéCommunity. All rights reserved. Sponsor advertisements do not imply our endorsement of that product or service. User generated content remains the property of its creator.
Acknowledgements
Use of PokéCommunity Assets
vB Optimise by DragonByte Technologies Ltd © 2023.