Scripting a Nameable character in TyranoBuilder? [Solved]
- 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]
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.
- 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?
Shoutout to Alte, who was very kind to help me with this. 
TyranoBuild has some community discussions on this, and this is what I found that worked:
1. Add a TyranoScript with the following.
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:
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]
Who is online
Users browsing this forum: No registered users


