Sysval for Itembox ?

Description: Internal scripting system of SMBX-38A Engine based on the simple VB-like language
Moderators: Yoshi021, Lx Xzit, 5438A38A, Semi-moderatos, Moderators

Catskart M
Topic author, Count
Count
Avatar
Catskart M
Topic author, Count
Count
Age: 20
Reputation: 144
Posts: 260
Joined: 29 Nov 2015
Location: France

Post #1by Catskart » 20 Feb 2016, 21:01

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...)

5438A38A
Developer
Developer
5438A38A
Developer
Developer
Reputation: 38
Posts: 13
Joined: 25 Jan 2016

Post #2by 5438A38A » 21 Feb 2016, 11:16

use 'itemrsrv'
example:
char(1).itemrsrv = 9
val(a) = char(1).itemrsrv

Catskart M
Topic author, Count
Count
Avatar
Catskart M
Topic author, Count
Count
Age: 20
Reputation: 144
Posts: 260
Joined: 29 Nov 2015
Location: France

Post #3by Catskart » 21 Feb 2016, 12:53

Ah thank you very much !
I didn't know this 'itemrsrv" exist, thank you !

Catskart M
Topic author, Count
Count
Avatar
Catskart M
Topic author, Count
Count
Age: 20
Reputation: 144
Posts: 260
Joined: 29 Nov 2015
Location: France

Post #4by Catskart » 4 Mar 2016, 20:41

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 ?

Super Mario Player M
Duke
Duke
Avatar
Super Mario Player M
Duke
Duke
Age: 18
Reputation: 25
Posts: 138
Joined: 23 Jun 2016
Location: The sewers (fixing teh pipes bro)
Tencent QQ

Post #5by Super Mario Player » 4 Jul 2016, 23:01

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.
Last edited by Super Mario Player on 8 Jul 2016, 19:12, edited 1 time in total.
My current project:
Spoiler
The Legend of Zelda: The Curse of the Wise Men
Image

The Tower of Challenges

Languages I speak (if you want to PM me):
Spoiler
Image Image Image

Click to see my YouTube channel
Image

Catskart M
Topic author, Count
Count
Avatar
Catskart M
Topic author, Count
Count
Age: 20
Reputation: 144
Posts: 260
Joined: 29 Nov 2015
Location: France

Post #6by Catskart » 4 Jul 2016, 23:16

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 ?

Super Mario Player M
Duke
Duke
Avatar
Super Mario Player M
Duke
Duke
Age: 18
Reputation: 25
Posts: 138
Joined: 23 Jun 2016
Location: The sewers (fixing teh pipes bro)
Tencent QQ

Post #7by Super Mario Player » 8 Jul 2016, 19:31

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.
My current project:
Spoiler
The Legend of Zelda: The Curse of the Wise Men
Image

The Tower of Challenges

Languages I speak (if you want to PM me):
Spoiler
Image Image Image

Click to see my YouTube channel
Image


Return to “TeaScript”

Who is online (over the past 5 minutes)

Users browsing this forum: 22 guests