Trying to write my own function that will display text for character cards in my game. Given the size and how often i'll probably be using the code for seperate things I'd like to know how get the text working in a function.
Primarily it consists of this:
Code: Select all
text "Affection: " style "ultd":
xanchor 1.0
xpos 280
ypos 650
text "[Ava_stats.affeection]" style "ultd":
xanchor 0
xpos 290
ypos 650 As usual, tried to google it but so hard to find anything resembling an example.
My test attempt consisted of:
Code: Select all
intit python:
def test_func():
text("something")The best thing I found was print("xx"), and that obviously doesn't do anything.
Help appreciated as always.
