Scripting a Nameable character in TyranoBuilder? [Solved]

For discussion and support of other visual novel engines.
Post Reply
Message
Author
User avatar
Katy133
Miko-Class Veteran
Posts: 704
Joined: Sat Nov 16, 2013 1:21 pm
Completed: Eight Sweets, The Heart of Tales, [redacted] Life, Must Love Jaws, A Tune at the End of the World, Three Guys That Paint, The Journey of Ignorance, Portal 2.5.
Projects: The Butler Detective
Tumblr: katy-133
Deviantart: Katy133
Soundcloud: Katy133
itch: katy133
Location: Canada
Contact:

Scripting a Nameable character in TyranoBuilder? [Solved]

#1 Post by Katy133 » Mon Jul 06, 2015 9:53 pm

Does anyone know how to script a nameable NPC using TyranoBuilder's TyranoScript language? (I'm a newbie when it comes to scripting.)
Last edited by Katy133 on Tue Jul 07, 2015 8:09 pm, edited 1 time in total.
ImageImage

My Website, which lists my visual novels.
Become a patron on my Patreon!

User avatar
Katy133
Miko-Class Veteran
Posts: 704
Joined: Sat Nov 16, 2013 1:21 pm
Completed: Eight Sweets, The Heart of Tales, [redacted] Life, Must Love Jaws, A Tune at the End of the World, Three Guys That Paint, The Journey of Ignorance, Portal 2.5.
Projects: The Butler Detective
Tumblr: katy-133
Deviantart: Katy133
Soundcloud: Katy133
itch: katy133
Location: Canada
Contact:

Re: Scripting a Nameable character in TyranoBuilder?

#2 Post by Katy133 » Tue Jul 07, 2015 8:09 pm

Shoutout to Alte, who was very kind to help me with this. :D

TyranoBuild has some community discussions on this, and this is what I found that worked:

1. Add a TyranoScript with the following.
[eval exp="f.name='String'"]
Please enter your name :
[edit name="f.name" left="350" top="320" maxchars="10"] [locate x=600 y=320 ] [button graphic="continue.png" target=*Begin]

2. Add an image to you TyranoBuilder game project named "continue.png"

3. Add a Label named "Begin"

4. Every time you want to use the name (variable), you just use TyranoScript again and use:
[commit][cm]
#Author
Welcome [emb exp=f.name]!
[p]
ImageImage

My Website, which lists my visual novels.
Become a patron on my Patreon!

Post Reply

Who is online

Users browsing this forum: No registered users