Smbx 1.4.5: sysval(param2)

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: 261
Joined: 23 Sep 2017
Location: Perú, Lima
Website

Post #1by NESTED ERNEST » 3 Sep 2020, 8:53

This doesn't seem to work.

In your Scripting Help document you wrote in a table that npc's death event sends some player id to sysval (param2), but only sends the number 1.

Spoiler
ss.png

For the npc power-ups, you can send to that sysval(param2): the player id(the number of the player who touched it, there can also be more than 2 if it was for a cheat like supermario8)

These are the npc power ups, (that sysval(param2) only sends 1)
9,184,14,34,169,170,182,183,249,250,254,264,277,306,320,321,322,323,331 (Well actually it should be all the npc that die when touched by a player)
Last edited by NESTED ERNEST on 28 Sep 2020, 19:44, edited 4 times in total.
Programming NPCs in SMBX-38A is fun:
That is me
Image
Image
Image
Image

ROCKMAN GIF IN SMBX 38A

Image

Victor ManuelMR M
Marquis
Marquis
Avatar
Victor ManuelMR M
Marquis
Marquis
Age: 19
Reputation: 99
Posts: 194
Joined: 7 Feb 2018

Post #2by Victor ManuelMR » 14 Sep 2020, 1:58

Spoiler
NESTED ERNEST wrote:This doesn't seem to work.

In your Scripting Help document you wrote in a table that npc's death event sends some player id to sysval (param2), but only sends the number 1.

Spoiler

For the npc power-ups, you can send to that sysval(param2): the player id(the number of the player who touched it, there can also be more than 2 if it was for a cheat like supermario8)

These are the npc power ups, (that sysval(param2) only sends 1)
9,184,14,34,169,170,182,183,249,250,254,264,277,306,320,321,322,323,331 (Well actually it should be all the npc that die when touched by a player)

If you can't send it to sysval(param2), you can send it to the target property of the npc.

You can find out that NPC was killed through Auto-Event: |NPC - Death| and activating this script:

Code: Select all

val(a) = npc(sysval(param1)).id

I don't know if I helped a lot.
Image
[1.4.5] - Dream Team at The Challenging Portals:
Image

NESTED ERNEST M
Topic author, Count
Count
Avatar
NESTED ERNEST M
Topic author, Count
Count
Reputation: 71
Posts: 261
Joined: 23 Sep 2017
Location: Perú, Lima
Website

Post #3by NESTED ERNEST » 14 Sep 2020, 19:33

It is not auto-event, is event object.

It is the value of sysval(param2) in the Deathevent(from event object(npc)), sysval(param2) doesn't work.
Programming NPCs in SMBX-38A is fun:
That is me
Image
Image
Image
Image

ROCKMAN GIF IN SMBX 38A

Image


Return to “Bug reports”