William Garrison
Member
Hey guys and gals,
Im trying to figure out how to possibly get two different fonts in the same string with a script. Below is the script I set up to try and accomplish this. But obviously doesnt work. How can I make this a thing? Why do I want to do this? Well I wanted whomever is talking (i.e.-name) to be the games title font and the body font to be more legible and simple.
ADDITIONALLY... Is it possible to get it to where (when the script is called) you wouldnt have to type the --> "" <-- quotation marks?
So instead of having to say...
script(0, "Name", "Body text that I want to say");
Being instead able to just say...
script(0, Name, Body text that I want to say);
Im trying to figure out how to possibly get two different fonts in the same string with a script. Below is the script I set up to try and accomplish this. But obviously doesnt work. How can I make this a thing? Why do I want to do this? Well I wanted whomever is talking (i.e.-name) to be the games title font and the body font to be more legible and simple.
GML:
/// @desc sc_cs_dialog(stringNumber, Name, Body);
/// @arg stringNumber
/// @arg Name
/// @arg Body
draw_set_font(f_dialog_name);
var name = argument1;
draw_set_font(f_dialog_body);
strings[argument0] = name + ": " + argument2;
So instead of having to say...
script(0, "Name", "Body text that I want to say");
Being instead able to just say...
script(0, Name, Body text that I want to say);