The Gaming Maxford Posted November 19, 2019 Share Posted November 19, 2019 hello guys I want to print the text along with the value of a local or global variable example [email protected] = 1 print "level [email protected]" 100 but in ingame it shows as level [email protected] shows of instead of the value 1, Link to comment Share on other sites More sharing options...
The Gaming Maxford Posted November 22, 2019 Author Share Posted November 22, 2019 Someone help pls Link to comment Share on other sites More sharing options...
OrionSR Posted November 22, 2019 Share Posted November 22, 2019 This example is used in-game. There are several other opcodes that perform a similar print function, but the same basic strategy is used. 045A: draw_text_1number 320.0 224.0 GXT 'GR_LVL' number [email protected] // LEVEL ~1~ 'GR_LVL' is the "key" to the text string "LEVEL ~1~" ~1~ is the placeholder for the value supplied by [email protected] You will probably need to load the 'LD_GRAV' dictionary before this gxt can be used. Or you can define your custom gxt using the GXThook or Cleo4 opcodes. Tips: Read some tutorials. Look for examples that do what you want in game by decompiling main.scm. The Gaming Maxford 1 Link to comment Share on other sites More sharing options...
007Ripper Posted November 23, 2019 Share Posted November 23, 2019 On 11/19/2019 at 4:07 PM, The Gaming Maxford said: hello guys I want to print the text along with the value of a local or global variable example [email protected] = 1 print "level [email protected]" 100 but in ingame it shows as level [email protected] shows of instead of the value 1, Thats wrong, try this : [email protected] = "im handsome" Print [email protected] 100 19 hours ago, OrionSR said: This example is used in-game. There are several other opcodes that perform a similar print function, but the same basic strategy is used. 045A: draw_text_1number 320.0 224.0 GXT 'GR_LVL' number [email protected] // LEVEL ~1~ 'GR_LVL' is the "key" to the text string "LEVEL ~1~" ~1~ is the placeholder for the value supplied by [email protected] You will probably need to load the 'LD_GRAV' dictionary before this gxt can be used. Or you can define your custom gxt using the GXThook or Cleo4 opcodes. Tips: Read some tutorials. Look for examples that do what you want in game by decompiling main.scm. You can use this to. The Gaming Maxford 1 Link to comment Share on other sites More sharing options...