Lock Warps with Mathematical Expression

Description: Have any suggestions or new ideas for SMBX-38A? This is a place for you. Good suggestions may appear in future versions of SMBX-38A.
Moderators: Lx Xzit, Yoshi021, 5438A38A, Semi-moderatos, Moderators

Pace
Topic author, Citizen
Citizen
Avatar
Pace
Topic author, Citizen
Citizen
Reputation: 4
Posts: 5
Joined: 29 Aug 2017

Post #1by Pace » 25 Sep 2020, 20:13

You can already lock warps with a needed amount of stars.

But it would be even better, if you could lock a warp with any mathematical expression to either use different variables (for exmaple: sysval(starcoincount), or sysval(score) ) or combine them (for exmaple: sysval(coincount) + sysval(playerhealth) or sysval(starcount) * val(abc) ).

You could then rename it from "Stars Needed" to "Value Needed" and maybe set the star count as a possible selection for beginners.
So something like:

Value Needed | Disable <-> Stars <-> Mathematical Expression

And below that you should be able to type in the number the expression should be compared with.

Some examples:

Default:
Spoiler
value needed default.jpg
value needed default.jpg (11.19 KiB) Viewed 367 times

Set to Mathematical Expression:
Spoiler
value needed me.jpeg
value needed me.jpeg (11.83 KiB) Viewed 367 times

This would be such a strong tool and I need this for my project badly.

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

Post #2by NESTED ERNEST » 26 Sep 2020, 7:21

What if I want to use an iterator as a condition.
What if this would be like a visual basic event that when you condition with its e.handled to continue with the execution (or not) of the event (in this case, when you press the button to enter the warp)

At the moment you can put your warp on a layer, hide it put a liquid(Covering the warp) that executes a script when you touch that liquid, the script would be:

Code: Select all

if sysval(cointcount)>= 50 then
call lset ("layer_with_hidden_warp",1,1)
end if
Programming NPCs in SMBX-38A is fun:
That is me
Image
Image
Image
Image

ROCKMAN GIF IN SMBX 38A

Image

Pace
Topic author, Citizen
Citizen
Avatar
Pace
Topic author, Citizen
Citizen
Reputation: 4
Posts: 5
Joined: 29 Aug 2017

Post #3by Pace » 2 Oct 2020, 7:01

Oh yeah, that's true. Thanks for the hint. I think I go for it for now.

But if I want to have a textbox telling me, what I need to have/do and have like 100 doors with different conditions and they are spread out over several levels, then it just gets very tedious to do this.
I think, it's still better to implement it as I said. Making things easier for the user is always better.


Return to “Ideas & Suggestions”

Who is online (over the past 5 minutes)

Users browsing this forum: 1 guest