Help modifying a script
#8
Great! It would probably have been better if I didn't answer questions while at work, away from my RMXP software. Tongue sticking out

Still, I like the little devil dude. That would probably take a little more work to have it first 'determine' who has the highest score (or scores if a tie), and use the bitmap drawing code to splat him over the battler. That would entail loading the bitmap from your project (probably in the pictures folder), setting its location, and pasting it within. Sorta like:
Code:
# Here, we get the graphic of the Threat Devil Dude, and it's coordinates
ddudebmp       RPG::Cache.picture("DevilDude")  # Load the pic
ddude_x       = a.screen_x                      # Using 'a' for the actor
ddude_y       = 0                               # 0 position is top of window
ddude_width   = ddudebmp.width                  # The graphic's width
ddude_height  = ddudebmp.height                 # The Graphic's height

# Here, we make the rectangle drawing area based on the devil dude's dimensions
# Rectangle is defined by ( x, y, width, height) of the area
ddude_rect = Rect.new(0, 0, ddude_width, ddude_height)

# Here, we draw it into the x/y coordinates,
# Blt (or blit) needs: x-position, y-position, the graphic, and rectangle area)
self.contents.blt(ddude_x, ddude_y, ddudebmp, ddude_rect)

But that's the basics, and ya need to deal with sorting WHO gets the hightest threat, and 'IF' it is the highest threat, draw it. Skip if not the highest threat.
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
   Lead Actor Swapper script error Ace_V 25 1,898 09-07-2025, 01:22 PM
Last Post: DerVVulfman
   Plugin or Script help with Item menu, SKill menu, and Equip menu JayRay 3 2,907 11-22-2024, 07:02 PM
Last Post: JayRay
   Script compatibility help Lord Vectra 3 7,188 07-25-2021, 11:42 PM
Last Post: DerVVulfman
   Adding face script on Cogwheel's RTAB Battle Status rekkatsu 15 22,595 08-25-2020, 03:09 AM
Last Post: DerVVulfman
   "Wait" in the script Whisper 13 21,833 04-28-2020, 04:06 PM
Last Post: Whisper
   Skill Cooldown script Fenriswolf 11 21,799 12-10-2019, 11:10 AM
Last Post: Fenriswolf
   Help iwth script (RGSS Player crash) Whisper 3 10,560 06-17-2017, 05:03 PM
Last Post: Whisper
Question  Mog Menu script: help me stop the crazy picture movement during transitions Zachariad 4 12,666 05-31-2017, 05:10 AM
Last Post: Zachariad
   Permanently modifying move speed Keeroh 5 12,254 05-24-2017, 05:47 AM
Last Post: DerVVulfman
   Actor names in Quest Script jreagan406 5 11,476 03-07-2017, 08:06 AM
Last Post: JayRay



Users browsing this thread: 1 Guest(s)