I'm somewhat clueless here ... maybe it's just a something like spelling mistake, that I don't see?
I wrote a script show_text:
Code: Select all
script, show_text, itemid, begin
$200="You created %s!"
string sprintf(200, 200, get item name(itemid))
show textbox (230)
wait for textbox
end

That's the textbox what should show the string variable.
This is the script to call the show_text script:
Code: Select all
script, craft_amulett_of_fire, begin
delete item(item:Stone)
delete item(item:Thread)
delete item(57)
get item(32) #create item no 36
show textbox (232)
wait for textbox
show_text(57)
end

And that's what is shows in the editor
when the script is run. No variable is shown.

Only the text box and textboxtext is displayed if script is started by NPC.
The sting is never displayed in textbox, not even the first part of it.