Advertisement
ZoriaRPG

Fake Room Guy FFC for 2.50

Dec 9th, 2018
186
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 1.04 KB | None | 0 0
  1. //////////////////////////
  2. /// Fake Room Guy FFC  ///
  3. /// v0.1               ///
  4. /// 9th December, 2018 ///
  5. /// By: ZoriaRPG       ///
  6. //////////////////////////
  7.  
  8. // Instructions
  9. //Put a solid combo down where you want the fake guy,
  10. //then add an ffc to the screen.
  11. //Set the FFC combo to the combo of a guy.
  12. //Set its script to fakeroomguy, then as the script args:
  13.  
  14. // D0: The Screen Message to show. This is mandatory.
  15. // D1: Override the X position of the string. This is optional.
  16. // D2: Override the Y position of the string. This is optional.
  17. // D3: Override the default (white in Classic) string colour.
  18. // D4: Override the default Z1 font.
  19.  
  20. ffc script fakeroomguy
  21. {
  22.     void run(int zqstring, int mx, int my, int mcolour, int mfont)
  23.     {
  24.         if ( !mx ) mx = 24;
  25.         if ( !my ) my = 32;
  26.         if ( !mcolour ) mcolour = 0x01;
  27.         if ( !mfont ) mfont = FONT_Z1;
  28.         int buffer[100];
  29.         Game->GetMessage(zqstring, buffer);
  30.         while(1)
  31.         {
  32.            
  33.             Screen->DrawString(1, mx, my, mfont, mcolour, -1, 0, buffer, 128);
  34.             Waitframe();
  35.         }
  36.     }
  37. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement