Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 Combat animations via scripting; How?
#2
Hey, Zerosum. I saw your request and wanted to give you a little heads-up on how to assign the @active_battlers in your code.

First, let's look at how they are defined in the default code. Within both the phase3_next_actor and /b]phase3_prior_actor[/b] methods, , the command of...
@active_battler = $game_party.actors[@actor_index]
... assigns an actor to the @active_battler value. But the method of update_phase4_step1 uses a command of...
@active_battler = @action_battlers.shift
... which uses both actor and enemy values gathered and sorted within in the make_action_orders method.


In otherwords, the @active_battler acts as a place holder for both actors and enemies within the party or the troop. You could actually make a specific battle animation for the 2nd member of your party by merely using...
Code:
$game_party.actors[1].animation_id = 15
$game_party.actors[1].animation_hit = true
... or cycling through every enemy like so...
Code:
for enemy in $game_troop.enemies
     enemy.animation_id = 15
     enemy.animation_hit = true
    end


Does that help? Winking
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

}


Messages In This Thread
RE: Combat animations via scripting; How? - by DerVVulfman - 09-16-2013, 01:14 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
   RGSS scripting dissections and explinations Siletrea 97 92,019 03-18-2019, 06:46 AM
Last Post: Siletrea
   Over 999 Animations? Is it possible/codeable? RASHIDA12 4 6,767 10-09-2016, 10:27 PM
Last Post: Melana
   RMXP SKill animations too bright (overlaying the battle screen) Starmage 4 9,272 06-13-2016, 03:41 AM
Last Post: Starmage
   Scripting in VX vs VX Ace Miharu 5 8,261 02-21-2015, 10:10 AM
Last Post: Taylor
   Scripting I think spazfire 7 9,078 04-12-2010, 03:21 AM
Last Post: DerVVulfman
   Beginner Scripting Tuts? KDawg08 1 3,713 03-31-2010, 11:03 PM
Last Post: Hsia_Nu
   Using animations in a scene (unrelated to battles and maps) PK8 4 8,136 11-17-2009, 10:54 AM
Last Post: PK8
   animations b4 titlescreen maxx070994 1 4,007 08-20-2009, 09:01 PM
Last Post: Miss Lalaba



Users browsing this thread: