Help modifying a script
#6
Know what? My bad. The 'self.width-32' is taking the width of the whole window (640 across). The 'h' (or height) should be 32 . And the very last value ( ,2) ) assumes the text is on the right-most area. In essence, it is drawing the threat on the very edge at the right ... if not off the screen. Change the 'self.width-32' into 160, and the very last '2' into a '1'.

Code:
self.contents.draw_text(a.screen_x, 0, 160, 32, @threats[i].to_s, 1)

Draw text commands are like this
( X-position, Y-position, width-area, height-of-area, the text, [optional alignment] )
or
( [defined rectangle value], the text, [optional alignment] )

** The '160' is the width of the screen (or 640) divided by 4 (your party size).
** The '32' is the normal height used in a draw-text line. Set it to 16, and you'd likely just see the top half of the text.
** The '1' is the alignment (0 is left justified by default, 1 is centered, 2 is right justified)

Of course, I'm assuming you made the 'threat window stretch across the whole battlesystem screen for this to fit.
Up is down, left is right and sideways is straight ahead. - Cord "Circle of Iron", 1978 (written by Bruce Lee and James Coburn... really...)

[Image: QrnbKlx.jpg]
[Image: sGz1ErF.png]    [Image: liM4ikn.png]    [Image: fdzKgZA.png]    [Image: sj0H81z.png]
[Image: QL7oRau.png]    [Image: uSqjY09.png]    [Image: GAA3qE9.png]    [Image: 2Hmnx1G.png]    [Image: BwtNdKw.png%5B]
  Above are clickable links
Reply }


Messages In This Thread
Help modifying a script - by Keeroh - 06-07-2017, 07:56 PM
RE: Help modifying a script - by DerVVulfman - 06-09-2017, 04:10 PM
RE: Help modifying a script - by Keeroh - 06-10-2017, 02:35 AM
RE: Help modifying a script - by DerVVulfman - 06-10-2017, 03:41 AM
RE: Help modifying a script - by Keeroh - 06-10-2017, 06:10 PM
RE: Help modifying a script - by DerVVulfman - 06-10-2017, 07:52 PM
RE: Help modifying a script - by Keeroh - 06-11-2017, 05:43 AM
RE: Help modifying a script - by DerVVulfman - 06-11-2017, 04:43 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
   Plugin or Script help with Item menu, SKill menu, and Equip menu JayRay 2 62 Yesterday, 03:09 AM
Last Post: JayRay
   Script compatibility help Lord Vectra 3 4,603 07-25-2021, 11:42 PM
Last Post: DerVVulfman
   Adding face script on Cogwheel's RTAB Battle Status rekkatsu 15 15,839 08-25-2020, 03:09 AM
Last Post: DerVVulfman
   "Wait" in the script Whisper 13 16,159 04-28-2020, 04:06 PM
Last Post: Whisper
   Skill Cooldown script Fenriswolf 11 16,438 12-10-2019, 11:10 AM
Last Post: Fenriswolf
   Help iwth script (RGSS Player crash) Whisper 3 8,530 06-17-2017, 05:03 PM
Last Post: Whisper
Question  Mog Menu script: help me stop the crazy picture movement during transitions Zachariad 4 9,853 05-31-2017, 05:10 AM
Last Post: Zachariad
   Permanently modifying move speed Keeroh 5 9,607 05-24-2017, 05:47 AM
Last Post: DerVVulfman
   Actor names in Quest Script jreagan406 5 8,637 03-07-2017, 08:06 AM
Last Post: JayRay
   Bizarre issue with Lanzer counter script. Steel Beast 6Beets 2 7,247 10-04-2016, 11:46 AM
Last Post: Steel Beast 6Beets



Users browsing this thread: 2 Guest(s)