Help...

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

Alvespires M
Topic author, Count
Count
Avatar
Alvespires M
Topic author, Count
Count
Age: 20
Reputation: 17
Posts: 228
Joined: 20 Aug 2016
Location: Koopa Troopa Beach

Post #1by Alvespires » 25 Feb 2017, 0:23

Is there's a way to know if the player is a Fairy?I don't know if there a Char.Status for it.Also,I tried using variables to incresse the value when you turn into it,but then there isn't a way to make the variable go down again when player leave that state.Can somebody help?
Not really up to it.

Zwertll
Close friend
Close friend
Zwertll
Close friend
Close friend
Reputation: 51
Posts: 82
Joined: 6 Dec 2016

Post #2by Zwertll » 25 Feb 2017, 0:42

Fairy is a npc(254) and no a status.

TheCreator520
Close friend
Close friend
Avatar
TheCreator520
Close friend
Close friend
Reputation: 61
Posts: 86
Joined: 21 Feb 2016

Post #3by TheCreator520 » 25 Feb 2017, 1:45

Zwertll wrote:Fairy is a npc(254) and no a status.
In fact , it's char(1).itemslot
npc(245) only provide the graphics for it .
Image

Zwertll
Close friend
Close friend
Zwertll
Close friend
Close friend
Reputation: 51
Posts: 82
Joined: 6 Dec 2016

Post #4by Zwertll » 25 Feb 2017, 1:54

TheCreator520 wrote:
Zwertll wrote:Fairy is a npc(254) and no a status.
In fact , it's char(1).itemslot
npc(245) only provide the graphics for it .
My apologies. I thought I knew about this.

TheCreator520
Close friend
Close friend
Avatar
TheCreator520
Close friend
Close friend
Reputation: 61
Posts: 86
Joined: 21 Feb 2016

Post #5by TheCreator520 » 25 Feb 2017, 2:02

Zwertll wrote:
TheCreator520 wrote:
Zwertll wrote:Fairy is a npc(254) and no a status.
In fact , it's char(1).itemslot
npc(245) only provide the graphics for it .
My apologies. I thought I knew about this.
umm ... why should you apology ? It's not even a thing to apology ...
Image

Alvespires M
Topic author, Count
Count
Avatar
Alvespires M
Topic author, Count
Count
Age: 20
Reputation: 17
Posts: 228
Joined: 20 Aug 2016
Location: Koopa Troopa Beach

Post #6by Alvespires » 25 Feb 2017, 14:35

...So,is there a way to know if the player is on that State?
Not really up to it.

Yoshi021 M
Moderator
Moderator
Avatar
Yoshi021 M
Moderator
Moderator
Age: 20
Reputation: 156
Posts: 689
Joined: 15 Feb 2016
Location: Yoshi's Island

Post #7by Yoshi021 » 25 Feb 2017, 18:20

When the player is in fairy state, char(1).itemslot returns -150

Code: Select all

if char(1) = -150 then
  'code
end if
Links
ImageImageImage
Image
Image
"Going to University is FUN!" :pardon:


Return to “TeaScript”

Who is online (over the past 5 minutes)

Users browsing this forum: 2 guests