Page 1 of 1

Sysval for Itembox ?

Posted: 20 Feb 2016, 21:01
by Catskart
Hello.
With this topic : viewtopic.php?f=58&t=707
I see there are some sysval which aren't in the script help file.

So, someone has an idea about sysval for Itembox ?
(0 for nothing, 1 for mushroom, etc...)

Posted: 21 Feb 2016, 11:16
by 5438A38A
use 'itemrsrv'
example:
char(1).itemrsrv = 9
val(a) = char(1).itemrsrv

Posted: 21 Feb 2016, 12:53
by Catskart
Ah thank you very much !
I didn't know this 'itemrsrv" exist, thank you !

Posted: 4 Mar 2016, 20:41
by Catskart
Hi again.
So, now I realise that itemrsrv is no linked with the Link's HP, I tried some syntax but smbx don't accept.

So, what is the sysval or Chart(). for Link's HP ?

Posted: 4 Jul 2016, 23:01
by Super Mario Player
Catskart wrote:Hi again.
So, now I realise that itemrsrv is no linked with the Link's HP, I tried some syntax but smbx don't accept.

So, what is the sysval or Chart(). for Link's HP ?
I believe you can use Char(1).Status, which will give you the status of player 1.

Posted: 4 Jul 2016, 23:16
by Catskart
I tried somes months ago.
The HP value isn't linked with Status value.
(To example, you can have Fire link with 1 HP only.)

EDIT :Uh... What can I do with you GCM file ?

Posted: 8 Jul 2016, 19:31
by Super Mario Player
Spoiler
Image
I included the wrong file...
BTW I tried different expressions but there seems to be no sysval for the HP. And indeed, Link can have 1 HP (or even 0, because of a glitch in the game) and be Fire Link.
What you can do however is create a global variable called "Health" which will decrease each time the player gets hit and increase when they get an item like a Heart or a Mushroom, and get back to 1 when they die.