| Maglor |
May 7th, 2014 7:05 PM |
Quote:
Originally Posted by Mystery Man
(Post 8236837)
The script looks fine to me. I have dealt with similar problems when the script does not have a var number. Have you read "Flags, Vars, & Script Tiles"? ( click here and go to the Script Tiles part.)
Edit:
This is what I usually make my script tiles look like:
|
So you are suggesting I remove the flag, which is only used due to the @done. And substitute it for a setvar which works, if I have understood it correctly as follows:
Instead of setflag, I put for example
setvar 4050 0x1
for then to set the scripts to var 4050 and value 0.
Quote:
Originally Posted by machomuu
(Post 8236840)
...You're using XSE, right? I'm not sure if some new script editor has come to take the crown in the past couple of years or not.
|
I do indeed, XSE is still the king, atleast to my understanding. I'll try removing callstd 0x5 and rather put msgbox @talk1 0x5. As you said, doubt that is it as its really more of a simpler process rather than a bugcause.
EDIT.
Quote:
Originally Posted by Mystery Man
(Post 8236900)
You could do that for efficiency, though I do not believe it to be necessary. As I said, I do not think anything is wrong with the script; however, I do believe the problem to be the script tile. If the var number of the script tile is 0000, the game freezes. So if it is 0000, change it to a safe var number (i.e. 4050 like in the image).
|
The event now works, I am very grateful, however, it repeats itself whenever I step on the tile. What I did was setting the scripts var to 4011 and value 0. At the end of the script I set var 4050 to 0x1. (when it is compiled it says setvar FAB, no idea why.) Ah yes, so this has solved the freeze, which I am truly happy about, now to solve the repeating script. Unless you immediently see what I have done wrong I guess I can troubleshoot in the tutorial you linked to.
|