[TeaScript] ASCII + ANSI text for Print/HUD.

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

Erwill M
Topic author, Count
Count
Avatar
Erwill M
Topic author, Count
Count
Age: 24
Reputation: 189
Posts: 295
Joined: 29 Nov 2015

Post #1by Erwill » 8 Jul 2016, 22:25

You know, It exist a command to show a text from a NPC.
I edited the graphic and some configurations, so the text system supporte more letters :
- Accents for French, Italian and Spanich.
- Reversed ! and ? for Spanich.
- SS for German.
- Two attached vowels for French.

See the screenshot : Image

The NPC's graphic.
Spoiler
Image
(Download this picture to have a normal size)

The NPC's txt file :

Code: Select all

frames=1
width=20
height=28
GFXwidth=20
GFXheight=28


And The script line :

Code: Select all

call TxtCreate(ID,X,Y,32,470,0,96,NPC ID USED,1 or 0,"YOUR TEXT")


In my text graphic "`" is equal to "..."
Last edited by Kevsoft on 8 Jul 2016, 22:39, edited 1 time in total.
Reason: Put big image into spoilers

kitkat F
Marquis
Marquis
Avatar
kitkat F
Marquis
Marquis
Age: 18
Reputation: 28
Posts: 191
Joined: 15 May 2016
Location: Mementos

Post #2by kitkat » 2 Aug 2016, 0:29

How to use script correctly? I keep getting errors

Yoshi021 M
Moderator
Moderator
Avatar
Yoshi021 M
Moderator
Moderator
Age: 22
Reputation: 170
Posts: 693
Joined: 15 Feb 2016
Location: Yoshi's Island

Post #3by Yoshi021 » 2 Aug 2016, 0:42

Remember to change the ID and other variables to a number
call TxtCreate(ID,X,Y,32,470,0,96,NPC ID USED,1 or 0,"YOUR TEXT")
Links
ImageImageImage
Image
Image
"Going to University is FUN!" :pardon:


Return to “TeaScript”

Who is online (over the past 5 minutes)

Users browsing this forum: 1 guest