![]() |
Code:
|
Quote:
|
Quote:
Code:
Quote:
|
Hi, i'm really new to scripting. Had a quick look through this thread and read a couple of XSE tutorials.
But couldn't find out what i want. I want to know if its possible in firered to make the RIVAL appear from nowhere. So once OAK takes you into the lab and you approach him, the RIVAL appears. any form of help is appreciated. thank you |
Quote:
Setflag 0xrival'sPeopleID Where rival'sPeopleID isthe number you've chosen before. Then, when you want Rival to appear, just deactivate this command: Clearflag 0xrival'sPeopleID |
Dont start
Base: FireRed
Script compiler: XSE Type: Levelscript.. Problem: This script dont start.. Why? Spoiler:
|
omfg sorry i have another script
Code:
any ideas |
Quote:
Anyways, here are some tips: - Your "checkflag" does absolutely nothing - Don't use multiple "msgbox" commands in a row, just make one. - Your current fanfare playing part of the script will be awkward ingame - Your "setvar" variable should probably be "0x7000" not "7000". The way you have it, it will use the decimal 7000 as a variable instead of the hexadecimal value (which is 28672 in decimal format). I'm not really going to explain that either. Google it. All of those won't prevent a script from starting though. Usually when a script fails to activate, something is wrong with the way the script it being used, not the script itself (unless you really screwed something up). I can't really help you much more that that. |
Quote:
|
i looked through all the tutorials and understood th gist of it and was wonder if anyone could help me wit flags. i want to know how to make a flag in your room and then when your about to go down the stairs it says "[player], are you finished packing? [rival] was here an hour ago and left because you were still sleeping." i have the script but when i use the check flag and go to the stairs the game messes up. can somebody help?
|
Quote:
checkflag [flag number]'this check if a certain flag is activated compare LASTRESULT 0x1'this compare the value of previous flag (that is 0=not set, 1=set) if B_TRUE goto @example'this go to @example if previous compare returns TRUE (so, if the flag is set) where [flag number] is a number between 0x0000 and 0xFFFF (but you can use numbers between 0x1000 and 0x1500, that aren't used by the game). To set a flag (so, to make its value = 0x1) you have to use setflag [flag number] To clear a flag (so, to make its value = 0x0) you have to use clearflag [flag number] |
ok thks also what is a go byte to look for for free space? when i try to do a script of any sort the game freezes or the person event i set does nothing. also after i write my script and compile it
i try to open it and it dosent show my script it just says" '----------------------------" #org 0x(offset) anyways i think it might be all related and i need help ps sorry for posting alot! i am finally trying to script! |
heres an event tile script on fire red,with xse
Spoiler:
i step on the tile and the sprite does both movements right away then my sprite freezes. whats wrong with it? |
uggh sorry im suck a bad scripter
Code:
any ideas? |
Ok, so I made a quiz script... and theres several things I've found wrong with it...
>If you get a question wrong, she does not let you retake the quiz (though the setflag should only activate if you get it right) and when you beat the quiz, she repeats the '@winner' message twice and does not give you the prize. Then when you try to talk to her, she says nothing. Anyways, I took out the messages but hopefully it's still fixable :/ I'll be trying to fix it. Thanks for any help! Spoiler:
|
Quote:
Code:
|
Quote:
Quote:
|
I wonder how to change the appearance of a certain sprite in a script? I find a setvar command in the rival's appearance script(in Emerald) may have something to do with this...
|
[solved]
Game: Fire Red Type: Person script Script editor: PKSV (can post the xse script if needed) description: Spoiler:
Spoiler:
|
I have questions regarding scripts in my very first hack
First question placing trainers in my hack; now ive read the tutorial by thethethethe (sorry if i misspelled your username) but I dont understand certain aspects of it: Game: pokemon firered personscript using pokescript Script: trainer script Spoiler:
the #raw 0x68 what happens here? giveitem 0x147 1 I understand a certain item is given here, other than the badge (badge is setflag0x820) my question is where can i find a list which specifies which item is which code. like code 0.01 is item x? Question 2 how do I place items on the ground for the player to pick up? So the player can pick up potions etc. Thanks in advance |
Quote:
#raw 0x68 (closeonkeypress in XSE) let msgbox 4 close when a key is pressed |
Quote:
Just put giveitem with the item number and amount, but put 0x0 as the "message type". :D Oh, you have to put the Person ID in AMap as an unset flag. Also, items can be found in a list in thethethethe's tutorial. It's spoilered. |
thanks for the replies. Well to be honest i dont really get the things with unset flags and ID's. an explanation or example would be most appreciated.
|
i am back once again:/
heres a script for fire red,the green event tile. in xse i dont see a problem but nothing happens when i walk over the tile but the hero freezing. Spoiler:
|
Quote:
In AMap, on the script tile, put "0003" as the top unknown and the "5040" as the thing underneath. |
| 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.