Smbx 1.4.5: Spevent

Description: Report bugs of SMBX-38A here.
Forum rules: https://wohlsoft.ru/forum/viewtopic.php?f=64&t=1069
Moderators: Lx Xzit, Yoshi021, 5438A38A, Semi-moderatos, Moderators

NESTED ERNEST M
Topic author, Count
Count
Avatar
NESTED ERNEST M
Topic author, Count
Count
Reputation: 71
Posts: 268
Joined: 23 Sep 2017
Location: Perú, Lima
Youtube channel URL

Post #1by NESTED ERNEST » 20 Sep 2020, 22:47

I know that some special events have their "own name" by script but:

1) The spevent(1141) has name: Player.Itembox.Clear but it does nothing, this spevent should run: char(1).itemrsrv=0 and char(2).itemrsrv=0

2) When a player touches the npc 293: the player gets char(x).invtime=800(or 799), but the player gets it by the spevent(1115) the player has char(x).invtime=1000(or 999) (this must be the same number)

3)
I thought I found a way to call a player's immunity by running this script:

'for the first player
char(1).itemslot=-14
call spevent(5)

'for the second player
char(2).itemslot=-14
call spevent(6)

And this DOES run that immunity, but if the player is already in that state, I can't do it correctly, and this doesn't restart(like when I call spevent(1115) it DOES restart) and this would fail, not counting the effect of the mask that I cannot take it off.(undesirable side effect)

Not to mention that if the player has an itemslot different from zero it could fail.

Could you put a special event?:
[1001] PlayerImmunity(id=1) and [1002] PlayerImmunity(id=2) to execute that effect.
Programming NPCs in SMBX-38A is fun:
That is me
Image
Image
Image
Image

Special image
  • yt-image-banner: https://yt3.ggpht.com/M_O1AzQEOJogSq5OJESIaA5kFLdbwdDNMihDOJkJgPiH7cOx-LWK41TU9GWzExmkmpn3EWYbJg=w1060-fcrop64=1,00005a57ffffa5a8-k-c0xffffffff-no-nd-rj
  • image-to-up: https://3.bp.blogspot.com/-Y-LrpIS2rqw/UCBTtk7k-pI/AAAAAAAABBs/qZuI0sCStkc/s1600/jean-baptiste+beaudelle+girafe++escargot.jpg
  • image-to-left: https://us.123rf.com/450wm/trassnick/trassnick2007/trassnick200700002/152919781-el-marl%C3%ADn-negro-grande-salta-del-mar-pesca-extrema-del-pez-espada-negro-en-alta-mar-vacaciones-en-lo.jpg
  • image-last-w: 1


ROCKMAN GIF IN SMBX 38A

Image

Return to “SMBX-38A Bug reports”

Who is online (over the past 5 minutes)

Users browsing this forum: 1 guest