Quote:
Originally Posted by Shaded
Script freezes the whole game up, its in XSE if you know what is wrong please tell me, and dont just post the revised correct script, tell me why it was wrong.
Thank you!
|
There's no need to split your script in all those parts, you're wasting all those goto. Also, after each applymovement(s) you need to put waitmovement.
After each setweather you need to use doweather, or it won't have any effect. After each msgbox/message you need to put callstd/boxset.
The cry command was wrong as well. Don't forget you must use setflag to hide a person permanently. In the fixed script I used flag 0x1001, don't forget to set the People ID accordingly.
Last, but not the lease... since I suppose it's a trigger script (those green "S" you can walk in), make sure you set the values like this:
Quote:
Originally Posted by lilfabbro
ok i have a script that is supposed to alert someone make them walk to me say somthing then make me follow them then give me a pokemon, i use notepad and pokescript, whenever i put the script in my game all that happens is it puts a ? above hiros head and asks yes or no, either you hit the screen goes pink
WHAT IS WRONG WITH IT:
|
If you want you can use XSE, I'm pretty sure your fixed script will work fine:
Quote:
Originally Posted by KillerSnipe21
Hey I just started scripting and im trying to use a give pokemon script but its messed up when I talk to the guy it says "This tree looks like it can be cut down" heres the script.
Can anyone help me?
|
Why not trying XSE? I fixed and adjusted the script for you:
Quote:
Originally Posted by Raizaiel
Ugh. I am sorry for being such a total noob at this, but I cannot get this damned scripting to work for the life of me. I'm also entirely unsure if I'm using XSE correctly, so allow me to throw myself at your mercy and admit my own lack of competence :(
Okay. So I have this PART of a script I'm working with.
What I'm trying to do exactly is have this character walk into Oak's lab, walk up three spaces and over seven to the left, look up and then talk to him about whatever I choose. Then, select one of the three pokeballs between the two, with that nice little picture popping up and the "DO YOU CHOOSE SO AND SO TO BE YOUR LAWFULLY WEDDED WI--I MEAN POKEMON COMPANION" jazz to go on. However, I can't get the script to work and also, whenever I try to compile it I get two new numbers at the bottom, so I substitute those into the script and then I get two entirely new numbers.
Also, what would you suggest I should use to check for the unused flags? I don't really know what to use to do that.
As I said, I used to know what I was doing and now I do not. I've spent hours examining the scripts in the original game to do so, and I've confused myself into scripted oblivion. Help!
|
Your script is as confused as you, indeed.
See the fixed one, and hopefully you'll learn something new:
Quote:
Originally Posted by Juan
English:
Exists some command that reads the byte ofrom a pointer in the RAM, and put in an variable to be able to use later (compare, addvar, subvar, …)?
I tried loadpointer (0F) and loadbytefrompointer (12) but they had not functioned.
|
No, there isn't. What are you trying to do?
Quote:
Originally Posted by ~element
It resets if the player picks Yes, and freezes if the player pick no, on the first question box.
|
Well, please take a really close look to the fixed script: