Author Topic: [XP] Per-Actor Battle Position  (Read 8231 times)

Offline Fantasist

  • Lexima Warrior
  • *******
  • Posts: 2222
  • LV: 146
  • Gender: Male
    • View Profile
    • Blog
[XP] Per-Actor Battle Position
« on: March 16, 2010, 01:11:47 PM »
Per-Actor Battle Position
Authors: Fantasist
Version: 1.0
Type: Battle Strategy Improvement
Key Term: Actor Add-on

Introduction

This script allows you a finer degree of control over the position during battle (i.e, the "Front", "Middle", "Rear" settings). You normally set positions to actor classes, not the actors themselves. With this script, you can decide the battle positions of individual actors. You can also change positions in-game.
By default, there are only 3 positions: Front, Middle and Rear. With this script, you can add as many positions as you want.

Features

  • Per-actor battle position
  • Changeable in-game
  • Possible to use more than 3 positions

Screenshots

N/A

Demo

N/A

Script

Place this script below "Game_Party".
(click to show/hide)

Instructions

Place this script below "Game_Party".

Optionally, I suggest you configure the battle position in the database anyway, despite using this script. This is because if an actor's position is not configured, this script used the database setting for the actor's class.

To change an actor's position in-game, use the following script call:
Code: [Select]
$game_actors[<ACTOR_ID>].position = <POSITION>
Configuration

  • MAX_POSITION: The number of positions you will be using (Default: 3)
  • Look for:
Code: [Select]
#::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
# * CONFIG START
#::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::

Then add more lines as needed. The format is:
Code: [Select]
when <ACTOR_ID> then <POSITION>
Regarding the value of Position:

POSITION takes the values from 1 to MAX_POSITION (Default: 1, 2 or 3). The larger the number, the farther the position, so 1 is front and MAX_POSITION if rear.
During the config or setting position in-game, if you set it to 0, the database position will be used. Every other out of range value (like -1, -23, 100, 4, 5 for the default) will be corrected.

Compatibility

 - Aliased Game_Actor::setup(actor_id)
 - Rewritten Game_Party::random_target_actor(hp0)

Not tested extensively, but should work with most other scripts.

Credits and Thanks

Credits: Fantasist for making this.
Thanks: Zydragon and MeVII for requesting.

Author's Notes

Maybe a future version will feature a scene where you can set your battle positions without using script calls.

If you have any questions, suggestions or comments, you can find me (Fantasist) in the forums at:

 - www.chaos-project.com

Enjoy ^_^
« Last Edit: March 16, 2010, 01:15:22 PM by Mad Scientist Fantasist »
Do you like ambient/electronic music? Then you should promote a talented artist! Help out here. (I'm serious. Just listen to his work at least!)

The best of freeware reviews: Gizmo's Freeware Reviews



Offline Jragyn

  • Ethereal Devastator
  • ****
  • Posts: 311
  • LV: 20
  • Gender: Male
  • A prodigy... maybe? Hoo hah.
    • View Profile
    • facenbooken.
Re: [XP] Per-Actor Battle Position
« Reply #1 on: March 16, 2010, 09:43:41 PM »
This is like that one KGC Script, but better!
Code: [Select]
http://ytomy.sakura.ne.jp/tkool/rpgtech/php/tech.php?tool=XP&cat=tech_xp/battle_system&tech=rank_concept
Its in english!
It enables more than 3 settings!
Its made by a person with 'mad scientist' in their name!

These three things are what I think makes this script great.
gj.


--JeR
A bright light can either illuminate or blind, but how will you know which until you open your eyes?

Offline Fantasist

  • Lexima Warrior
  • *******
  • Posts: 2222
  • LV: 146
  • Gender: Male
    • View Profile
    • Blog
Re: [XP] Per-Actor Battle Position
« Reply #2 on: March 17, 2010, 05:55:29 PM »
Thank you :)
Hm, how about submitting this to Tons?

Quote
Its made by a person with 'mad scientist' in their name!
<3
Do you like ambient/electronic music? Then you should promote a talented artist! Help out here. (I'm serious. Just listen to his work at least!)

The best of freeware reviews: Gizmo's Freeware Reviews



Offline Sase

  • Transcended Spirit
  • ***
  • Posts: 174
  • LV: 5
  • Gender: Male
    • View Profile
Re: [XP] Per-Actor Battle Position
« Reply #3 on: March 17, 2010, 06:02:58 PM »
Can you test if this works with RTAB? I don't have a clean RTAB install on my pc atm (a project with RTAB+RTP with no edits)

Offline Fantasist

  • Lexima Warrior
  • *******
  • Posts: 2222
  • LV: 146
  • Gender: Male
    • View Profile
    • Blog
Re: [XP] Per-Actor Battle Position
« Reply #4 on: March 17, 2010, 06:09:04 PM »
Sorry mate, neither do I.

PS:
Quote from: My signature
Stopped using RMXP until further notice.
Do you like ambient/electronic music? Then you should promote a talented artist! Help out here. (I'm serious. Just listen to his work at least!)

The best of freeware reviews: Gizmo's Freeware Reviews



Offline Sase

  • Transcended Spirit
  • ***
  • Posts: 174
  • LV: 5
  • Gender: Male
    • View Profile
Re: [XP] Per-Actor Battle Position
« Reply #5 on: March 17, 2010, 06:13:01 PM »
Sorry mate, neither do I.
You scripted this piece without using RMXP at all? :o

Offline Blizzard

  • This sexy
  • Administrator
  • has over 9000 posts
  • *****
  • Posts: 19916
  • LV: 642
  • Gender: Male
  • Magic midgets.
    • View Profile
    • You're already on it. (-_-')
Re: [XP] Per-Actor Battle Position
« Reply #6 on: March 18, 2010, 10:12:45 AM »
It's not like that's a big problem. xD
Check out Daygames and our games:

King of Booze      King of Booze: Never Ever      Pet Bots
Drinking Game for Android      Never have I ever for Android      Pet Bots for Android
Drinking Game for iOS      Never have I ever for iOS      Pet Bots for iOS
Drinking Game on Steam


Quote from: winkio
I do not speak to bricks, either as individuals or in wall form.

Quote from: Barney Stinson
When I get sad, I stop being sad and be awesome instead. True story.

Offline Holyrapid

  • Astral Trancist
  • *****
  • Posts: 749
  • LV: 0
  • Gender: Male
  • Credit to FreshL on Deviantart
    • View Profile
    • My new Youtube channel!
Re: [XP] Per-Actor Battle Position
« Reply #7 on: March 19, 2010, 09:01:03 AM »
This is intersting. If i don´t end up using BABS in my game, i´ll propably use this. Also, nice to see Sase is back here. :)

Offline Fantasist

  • Lexima Warrior
  • *******
  • Posts: 2222
  • LV: 146
  • Gender: Male
    • View Profile
    • Blog
Re: [XP] Per-Actor Battle Position
« Reply #8 on: March 20, 2010, 06:59:48 AM »
@Sase: I meant RTAB! >.< I don't have RTAB to test it out.
Do you like ambient/electronic music? Then you should promote a talented artist! Help out here. (I'm serious. Just listen to his work at least!)

The best of freeware reviews: Gizmo's Freeware Reviews



Offline Sase

  • Transcended Spirit
  • ***
  • Posts: 174
  • LV: 5
  • Gender: Male
    • View Profile
Re: [XP] Per-Actor Battle Position
« Reply #9 on: March 20, 2010, 10:45:02 AM »
Well since you also quoted your signature saying you don't use RPGXP anymore, I just made a quick assumption : p

Offline Fantasist

  • Lexima Warrior
  • *******
  • Posts: 2222
  • LV: 146
  • Gender: Male
    • View Profile
    • Blog
Re: [XP] Per-Actor Battle Position
« Reply #10 on: March 21, 2010, 03:39:51 PM »
I meant that I'm no longer actively interested in RMXP or scripting :)
Do you like ambient/electronic music? Then you should promote a talented artist! Help out here. (I'm serious. Just listen to his work at least!)

The best of freeware reviews: Gizmo's Freeware Reviews