ShowMessage & related

Sorrontis · 1115

Sorrontis

  • Community Guild
  • *****
    • Posts: 2065
  • CW4! CW4! CW4! CW4! CW4!
on: August 07, 2017, 01:46:12 pm
Hmm, anyone know how these work? And how they appear in game?

http://knucklecracker.com/wiki/doku.php?id=prpl:showmessage

"If you want others to be happy, practice compassion. If you want to be happy, practice compassion."


Stickman

  • Community Guild
  • *****
    • Posts: 136
Reply #1 on: August 07, 2017, 04:10:00 pm
message x y showmessage

This one is weird, it shows only for one frame, so if you want a continuous message, you must call it every frame. (i.e. don't put it in once-endonce)
x and y are in screen pixels from upper-left corner, special number is -1, which is the center of the screen

Source of information - mission 6 scripts, you get the message shown when you collect one of the amp gems.

Minimal viable script:
"Test" -1 -1 showmessage

=====> This is a moderately pointy stick. You need to poke me with it once in three days if you need PRPL from me


Sorrontis

  • Community Guild
  • *****
    • Posts: 2065
  • CW4! CW4! CW4! CW4! CW4!
Reply #2 on: August 07, 2017, 06:48:13 pm
Ha, that's my problem, I had "X Y Message" ... doh!

Thanks!

"If you want others to be happy, practice compassion. If you want to be happy, practice compassion."


Sorrontis

  • Community Guild
  • *****
    • Posts: 2065
  • CW4! CW4! CW4! CW4! CW4!
Reply #3 on: August 08, 2017, 12:02:04 am
Note to self, only one message at a time :( sigh.

"If you want others to be happy, practice compassion. If you want to be happy, practice compassion."