Set object config via script?

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

Shadowblitz16
Topic author, Close friend
Close friend
Shadowblitz16
Topic author, Close friend
Close friend
Reputation: 12
Posts: 93
Joined: 15 Aug 2016

Post #1by Shadowblitz16 » 8 Oct 2016, 1:15

is it possible to set a objects config with a script?

I'm asking this because I want to make a smb3 break block only breakable by link's sword if my custom variable is equal to 1

I was looking though the documentation and I didn't see anything where you can overwrite properties of blocks, npcs, and backgrounds

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

Post #2by NESTED ERNEST » 5 Oct 2017, 6:22

You can sacrifice an npc, and graph it, the necessary properties to block the player's pass, put all possible resistances and put only the sword hurt.

You can put 2 of life and the sword deals 1 damage

Sacrifice npc script:

with npc (sysval (param1))

if .health <= 1 then
.friendly = 1
call nkill (sysval (param1), 0,0,0,0,0,0,0)
call tcreate (broken block sound event, 0)
FXCreate (30, .x, .y, -4, -4, 132, 4, 0, 0)
FXCreate (30, .x, .y, 4, -4, 132, 4, 0, 0)
FXCreate (30, .x, .y, -2, -4, 132, 4, 0, 0)
FXCreate (30, .x, .y, -2, -4, 132, 4, 0, 0)

end if

end with

so late?
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 “TeaScript”

Who is online (over the past 5 minutes)

Users browsing this forum: 1 guest