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, Moderators, Semi-moderatos

Shadowblitz16
Topic author, Close friend
Close friend
Shadowblitz16
Topic author, Close friend
Close friend
Reputation: 11
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

Ruther M
Citizen
Citizen
Avatar
Ruther M
Citizen
Citizen
Reputation: 0
Posts: 8
Joined: 23 Sep 2017
Website

Post #2by Ruther » 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?


Return to “TeaScript”

Who is online (over the past 5 minutes)

Users browsing this forum: 1 guest