Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 "Wait" in the script
#14
(04-28-2020, 03:14 AM)DerVVulfman Wrote: Now I gotta find my project (somewhere.....  over the rainbowwwww♫♪♫   )

Hm.  73Meg.   I should point out that I am still the DIALUP AOL king around here.  That will take me ages.  Laughing    ... without going to the library anyway.

EDIT:  I kinda got .... something... but....
Let's assume the code you added to the Window_Message was this (copied from your first post):
Code:
if @od_text
 $game_player.animation_id = 5
 @oo_box = Window_MessageOoBox.new(x, y - 16, "   Given  ")
 @oo_box.back.opacity = 0 if $game_system.message_frame == 1
 @oo_box.z = self.z
 @od_text = nil
end
Mind you, this begins execution when you start the message dialog...   And I see you had it in the script, and with an extra $game_switches condition, so I'll use that in my edit...

Now let's assume I did some minor edits like...
Code:
if @od_text
 if $game_switches[1703] == false
   $game_player.animation_id = 5
   @meebie_wait = 20
 end
 @oo_box = Window_MessageOoBox.new(x, y - 16, "   Oddano  ")
 @oo_box.back.opacity = 0 if $game_system.message_frame == 1
 @oo_box.z = self.z
 @od_text = nil
 $game_switches[1703] = false
end


And let's assume I added a bit MORE to the Window_Message class that you edited...
In the below code, made as a standalone... to paste below your "Scrolling MS EXX" script:

Code:
class Window_Message < Window_Selectable
 alias oooanimdelay_update update
 #--------------------------------------------------------------------------
 # * Frame Update
 #--------------------------------------------------------------------------
 def update
   # Only perform if we do have a wait
   unless @meebie_wait.nil?
     # If the wait is greater than 0
     if @meebie_wait > 0
       # Reduce the count
       @meebie_wait -= 1
       # Update the graphics count
       Graphics.update
       # Exit and don't do any more message content until count is done
       return
     end
   end
   # Perform the original call
   oooanimdelay_update
 end
end

Now it DOES create a delay of sorts.

FIRST THING that does happen is that your message window is created.  The shape and size is positioned, and the "Oddano" or "Given" box does appear centered along the top.  The message itself is not present, but the message window itself is there.   This should be expected as the command is created within the message window, and thus the window IS created by the time the animation is triggered.

SECOND THING that happens, is the Animation!!!!!  And the creation of a delay of approximately 20 frames!!!  Yeah, a variable name of @meebie_wait is odd, but it's just me typing stupid letters fast.  BUT... it does create a delay!

THIRD THING that happens is in the UPDATE method I supplied above.  IF there is a valid @meebie_wait value, and IF that value is above 0 (Zero), it runs the graphics update and cycles down until the value reaches 0!  But as long as the @meebie_wait is above 0, it exits and doesn't perform the rest of the message window's update!

FOURTH THING that happens is that WHEN the @meebie_wait value finally reaches 0, it renders the rest of the message!



So yeah, I got the delay functional.  But as long as the command to generate the animation is built into the Message Window, the message window itself will appear when the animation is performed, even though the actual text won't show until the delay is over.

AMAZING! Thank you so much! Very cheery
Reply }


Messages In This Thread
"Wait" in the script - by Whisper - 02-23-2020, 12:29 AM
RE: "Wait" in the script - by kyonides - 02-23-2020, 02:57 AM
RE: "Wait" in the script - by Whisper - 02-24-2020, 12:07 AM
RE: "Wait" in the script - by DerVVulfman - 02-24-2020, 01:10 AM
RE: "Wait" in the script - by Whisper - 02-24-2020, 02:05 AM
RE: "Wait" in the script - by DerVVulfman - 02-24-2020, 05:47 AM
RE: "Wait" in the script - by DerVVulfman - 02-24-2020, 04:10 AM
RE: "Wait" in the script - by kyonides - 02-24-2020, 04:46 AM
RE: "Wait" in the script - by Whisper - 02-24-2020, 05:21 PM
RE: "Wait" in the script - by kyonides - 02-24-2020, 07:32 PM
RE: "Wait" in the script - by DerVVulfman - 03-08-2020, 04:08 AM
RE: "Wait" in the script - by Whisper - 04-28-2020, 02:59 AM
RE: "Wait" in the script - by DerVVulfman - 04-28-2020, 03:14 AM
RE: "Wait" in the script - by Whisper - 04-28-2020, 04:06 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
   Script compatibility help Lord Vectra 3 3,503 07-25-2021, 11:42 PM
Last Post: DerVVulfman
   Adding face script on Cogwheel's RTAB Battle Status rekkatsu 15 12,704 08-25-2020, 03:09 AM
Last Post: DerVVulfman
   Skill Cooldown script Fenriswolf 11 13,945 12-10-2019, 11:10 AM
Last Post: Fenriswolf
   Help iwth script (RGSS Player crash) Whisper 3 6,473 06-17-2017, 05:03 PM
Last Post: Whisper
   Help modifying a script Keeroh 7 8,852 06-11-2017, 04:43 PM
Last Post: DerVVulfman
Question  Mog Menu script: help me stop the crazy picture movement during transitions Zachariad 4 8,526 05-31-2017, 05:10 AM
Last Post: Zachariad
   Actor names in Quest Script jreagan406 5 7,522 03-07-2017, 08:06 AM
Last Post: JayRay
   Bizarre issue with Lanzer counter script. Steel Beast 6Beets 2 6,565 10-04-2016, 11:46 AM
Last Post: Steel Beast 6Beets
   Moonpearl script Animated Battlers help!! x(( Starmage 11 13,704 05-21-2016, 05:34 AM
Last Post: Starmage
   Visual PaperDoll Equipment Script JayRay 0 3,878 02-16-2016, 03:44 AM
Last Post: JayRay



Users browsing this thread: