GameMaker Different Fonts in same string?

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.

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;
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);
 

Roldy

Member
If you want to draw with a font then you have to draw something.

GML:
draw_set_font(f_dialog_name);  // You have to set the font

draw_text(x, y, nameText);    // And then actually draw the text

draw_set_font(f_dialog_body);  // then change the font

draw_text(x, y, bodyText);    // And draw some more text
You have to use quotes to define strings.
 
Top