I made it worked, then I read revfan's tutorial and I made that :
CODE
COMPAREV linkmp,32
GOTOMORE EXE
GOTOLESS END
EXE SUBV linkmp,2
ADDV linkhp,1
END WAITFRAME
GOTOMORE EXE
GOTOLESS END
EXE SUBV linkmp,2
ADDV linkhp,1
END WAITFRAME
or :
if link's magic > or = 32
magic - 2
heart + 1
I didn't set up the condition to avoid linkhp > link max hp yet
but here is my problem :
the condition is respected but the number of magic/heart lost/gained is not the same as in my code
link will lose all his magic and gain for exemple about 5 heart....
steange, isn't it?
I used beta 254 to make the scrpit work
but it's also very strange, the first time I created a qst file with the original script inside, I could load it as a custom quest, but now with the current modified script, it won't load anymore to create a new file (I have the message "Not a custom quest"). Maybe it's something wrong with my script?
I'm looking forward your help
Dorian