Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 Moonpearl script Animated Battlers help!! x((
#10
I have been stretching my coding time between Sil's DDR and Cassie's CMS system.

With the CMS and other demos he uses, he has a Scene_Base package. Funny enough, the Scene_Battle script in his Scene_Base package has an untouched/unchanged 'def update_phase4_step2' method which was the actual method aliased in the animated battler script. Because he made no changes to update_phase4_step2, there was no need for him to include it in his Scene_Base package... totally a waste. Tongue sticking out



Oh, alias is a way to attach new code to an existing method. It's might be easy to look at it like this:
Code:
alias new_update  update
def update
  new_update
  new_code
end
First an alias statement that links the two names. It'll assume that running 'new_update' will execute your original code.
Then 'def' (or define method) of the revised update method
Then we call 'new_update' which is the new name to the 'original' update method... ala alias. So we're running the original update.
THEN we run 'new_code' ... whatever that may be.
Then we end the method... done
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
RE: Moonpearl script Animated Battlers help!! x(( - by DerVVulfman - 05-20-2016, 11:36 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
   Script compatibility help Lord Vectra 3 3,632 07-25-2021, 11:42 PM
Last Post: DerVVulfman
   Adding face script on Cogwheel's RTAB Battle Status rekkatsu 15 13,095 08-25-2020, 03:09 AM
Last Post: DerVVulfman
   "Wait" in the script Whisper 13 13,871 04-28-2020, 04:06 PM
Last Post: Whisper
   Skill Cooldown script Fenriswolf 11 14,256 12-10-2019, 11:10 AM
Last Post: Fenriswolf
   Help iwth script (RGSS Player crash) Whisper 3 7,691 06-17-2017, 05:03 PM
Last Post: Whisper
   Help modifying a script Keeroh 7 9,042 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,720 05-31-2017, 05:10 AM
Last Post: Zachariad
   Actor names in Quest Script jreagan406 5 7,674 03-07-2017, 08:06 AM
Last Post: JayRay
   Bizarre issue with Lanzer counter script. Steel Beast 6Beets 2 6,653 10-04-2016, 11:46 AM
Last Post: Steel Beast 6Beets
   Visual PaperDoll Equipment Script JayRay 0 3,930 02-16-2016, 03:44 AM
Last Post: JayRay



Users browsing this thread: