smbx communityirc.cat.biopge project

happy birthday talkhaus!!!

npcParse.lua (Standardized NPC message parsing!)

The second SMBX collab!
User avatar
Rockythechao
Shapemorph the titlecard into the video, Hoeloe
Posts: 460
Joined: 3 years ago
First name: Michael
Pronouns: he/him/his
Location: Yes

npcParse.lua (Standardized NPC message parsing!)

Postby Rockythechao » 1 year ago

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

npcParse.lua

Image

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.)
I am fairly involved in A2XT's development as a content creator and programmer, but I am not the project lead nor am I responsible for half the things people keep attributing to me lol

Useful posts, discussions & resources for SMBX and A2XT

My art & audio thread
Tumblr, SoundCloud

Image

Return to “A2XT”

Who is online

Users browsing this forum: No registered users and 1 guest

cron