Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 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
   Script compatibility help Lord Vectra 3 3,555 07-25-2021, 11:42 PM
Last Post: DerVVulfman
   Adding face script on Cogwheel's RTAB Battle Status rekkatsu 15 12,810 08-25-2020, 03:09 AM
Last Post: DerVVulfman
   "Wait" in the script Whisper 13 13,656 04-28-2020, 04:06 PM
Last Post: Whisper
   Skill Cooldown script Fenriswolf 11 14,066 12-10-2019, 11:10 AM
Last Post: Fenriswolf
   Help iwth script (RGSS Player crash) Whisper 3 6,514 06-17-2017, 05:03 PM
Last Post: Whisper
Question  Mog Menu script: help me stop the crazy picture movement during transitions Zachariad 4 8,602 05-31-2017, 05:10 AM
Last Post: Zachariad
   Permanently modifying move speed Keeroh 5 8,501 05-24-2017, 05:47 AM
Last Post: DerVVulfman
   Actor names in Quest Script jreagan406 5 7,577 03-07-2017, 08:06 AM
Last Post: JayRay
   Bizarre issue with Lanzer counter script. Steel Beast 6Beets 2 6,595 10-04-2016, 11:46 AM
Last Post: Steel Beast 6Beets
   Moonpearl script Animated Battlers help!! x(( Starmage 11 13,777 05-21-2016, 05:34 AM
Last Post: Starmage



Users browsing this thread: