XAS Action Rpg System (Secret Of Mana Styled)

can XAS already "summon" allies and stuff?
Hey everyone, go check out this post: viewtopic.php?f=48&t=67938

@Eriol Clowphengire - The PDF (see link above) explains all there is to know about XAS and how you can go about customising it :)

Gameface is currently working on a change actor script of his own which is looking very promising! 😀
gameface101 wrote:
Quote:
Your reply is confuzzling me!

confused + puzzled = I was confuzzled by your reply too,
(I'm so going to use that)and yes Calvin624 is the XAS tutorial man!
You have made yourself much more clearer
but let's recap your configuration request.

Incognitus Config:
[Caps][A][S] = A & S-(quick menu)
[^Shift][Z][X] = Shift-(Shield) Z-(weapon 1) X-(weapon 2)

XAS has four slots to equip TOOLS.
(weapons,shields,items,skills = per database)
in your configuration you only mention three.
one more slot still remains...
other than changing the assigned input triggers (keyboard controls)
it's going to require customizing new tools if you intend to use
two weapons (such as two swords, for example)
so whatever slot you're going to substitute to be your second weapon (items?/skills?)
is where you need to configure your custom TOOLS. (secondary weapons)
and for every TOOL you must:

Create an event on the TOOL map
Create a script in the Script Database (F11)
Edit the ITEM or SKILLS script (both if its a weapon that uses ammo)
and configure under the necessary tabs in the Database (F9)

hope this is less confuzzling, if so let me know... ^,^

now to clarify my reply ~
I have made all types of custom TOOLS for ITEMS and SKILLS
from a combat knife, chainsaw to grenades...
where the chainsaw is equipped like a sword.
and for the shield I just changed the graphics
so that the hero blocks with the chainsaw
the grenades are equipped like potions.
and the combat knife is equipped like a spell
that doesn't require any SP.
(a weapons master... weapons only)
I was just wondering if that was what you were aiming for...

~(G|F


Significantly less confuzzling! Thank-you :kiss: !


(I'll be back in a minute when the programme blows up in my face...)
uhm is there a way to turn off the attack command for like when im in a house or something?
Turn switch 6 ("Disable Command") ON

Download my PDF for more hints and tips (click the banner below)
how do i make it so that if i defeat a certain amount of monsters something happens like i warp to another map?
Here you go: http://xasabs.wordpress.com/2009/10/03/ ... iable-999/

Not an exact tutorial for what you want but easily adapted to be :)
thanks but i cant adapt it 2 fit what i need it to do.
Can you put it in terms that specify what im trying to do?
Well it's exactly the same as mentioned in that tutorial except instead of the Chest event you want to create this:

WARP EVENT

Make a new event -

Check variable and select DEFEATED set this to X (where X is the amount of Enemies in this room).

Under options tick: Move Animation and Through

Trigger: Parallel Process

In the event window put the transfer line of code followed by erase event or self switch (depending on whether you want the same to happen each time you enter that room or not)

Hope this helps :)
uhm that helped a little but im still not gettng it,do you think you can simplify it a little more

(hope im not being a nag)
Ok you'll need two events on the page you want your hero to warp from.

The first event is an autorun - you'll want to set the DEFEATED variable to zero (this option is on the first page of the event commands and is called "control variables" - you'll need to change the maximum to 999 and then select 999, once you've done that you'll need to set it to zero.

Click OK and then "erase event" (also on the first page of the event commands).

First event done!

The second event is a parallel process - under conditions on the left hand side you'll want to select variable 999 again and set the number below it to however many enemies are on that map to defeat.

In the event window you'll want to put the transfer player code which can be found on the second page of the event commands. Under this you'll want to either put another erase event (this'll mean everytime you enter this map you'll be warped to the same place upon defeating these enemies) or turn a self switch on and add a new blank page - this'll prevent you from warping in the future if you come back to this map.

Second event done!
@maadogg: Hey, this is completely different form what calvin624's idea was, but take a look at this http://www.mediafire.com/?myhnyzihtyc
A quick tutorial just for you, but I was lazy, and just copied all of the XAS files over, sorry.

@Anyone Whos Interested
By going through the script and editing the battle formula, I have come up with some really good skill effects. In my game that I am working on, I changed AGI to be a completly defensive stat, and DEX to be a piercing stat, and In my game, when you hit an enemy, it will NEVER say 'miss'. So I had no reason to your Dex_f, or Agi_f in my skills, nor eva_f, or hit rate, so I changed eva_f into lifesteal %, hit rate into critical %, agi_f into [% of missing life converted into damage], and dex_f into critical damage. Also I made a more effiencient way of making weapons by including the weapon's element into the attack, WITHOUT having to make another tool.
See how powerful XAS can be with just a little extra grade 1 scripting?

Oh and btw, ever remember the old XAS Hero Addition v2.0?
Look how much this little puppy has grown.
@Bullet Darkness - Yeah I did the same before I discovered that variable 999 does it automatically, but either method is as valid as the next.

http://xasabs.wordpress.com/2009/10/03/ ... iable-999/

This method comes in handy if throughout the game you want to maybe make something happen when you kill 100 of a specific monster.

I'm intrigued about your edited formula - if you want to share you can put together a tutorial and I'll gladly put it up on the site :)

I agree we've came a long way since version 2.0 - and I have a feeling Moghunter will never seize to amaze us with his additions to the system.
Yea, I know about the Defeat Enemy Variable, but the thing is, if you want to see how many enemies you've killed throughout the whole game and still use it, you have to do alot of more work. So instead, i rather do it this way.

Okay about the edited formula, in XAS-System at about line 5620, you will find all of the damage formula. Its actually quite simple what you can edit in there.
Make sure you notice that there is the attack effect section and the skill effect section, attack effect is only for enemies with the attack_on command, skill effect is the rest.
To add your weapon's element effects to any skill that has atk_f greater than 0, you find the line of script that says this
  1.          self.damage *= elements_correct(skill.element_set)
  2.           self.damage /= 100
Expand to see the code.

Then with this, you change it to look like this:
  1.        if (skill.atk_f > 0)        
  2.           self.damage *= (elements_correct(skill.element_set) + elements_correct(user.element_set))
  3.           self.damage /= 200
  4.         else
  5.           self.damage *= elements_correct(skill.element_set)
  6.           self.damage /= 100
  7.         end
Expand to see the code.

But since in my game, Intelligence also increases your element damage if it is super effective, I also put this in.
  1.      if (elements_correct(skill.element_set) > 100)
  2.         if (skill.atk_f > 0)        
  3.           self.damage *= (elements_correct(skill.element_set) + elements_correct(user.element_set)) * (user.int + 20) / 20
  4.           self.damage /= 200
  5.         else
  6.           self.damage *= elements_correct(skill.element_set) * (user.int + 20) / 20
  7.           self.damage /= 100
  8.         end
  9.       else
  10.         if (skill.atk_f > 0)        
  11.           self.damage *= (elements_correct(skill.element_set) + elements_correct(user.element_set))
  12.           self.damage /= 200
  13.         else
  14.           self.damage *= elements_correct(skill.element_set)
  15.           self.damage /= 100
  16.         end
  17.       end
Expand to see the code.

So that way if it is super effective, intelligence increases your element damage by 5%

Now to do the same with Status Effects go find the line that says this:
  1.      effective |= states_plus(skill.plus_state_set)
Expand to see the code.

Right below that, put this:
  1.      if (skill.atk_f > 0)
  2.         effective |= states_plus(user.plus_state_set)
  3.         effective |= states_minus(user.minus_state_set)
  4.       end
Expand to see the code.

This means if you skill's atk_f is greater than 0, add your weapons status effects to the enemy.
BTW this is Calvin624's translated version, but it should work all the same, I just like the hud and the cool skill menu that was implemented.

I barely know how to script, and i got this done, it is not very hard. Here is my whole formula for my game if you are interested. http://www.mediafire.com/?amodbh1zwzj
With this Battle Formula, these are the effects that happen:
Content Hidden Spoiler
SP Cost: Nothing Changed
Skill Power: Adds one damage
Atk_F: Converts your weapon damage, but is decreased by 1 point because Skill Power can not go below 1.
Eva_F: Converts a % of the total amount of damage done into life.
Str_F: % of strength used in the skill.
Dex_F: Since I havnt come up with a cool enough special effect yet, all it does in covert a % of the enemies current hp into damage.
Con_F: Converts % of the missing enemy health into damage.
Int_F: % of intelligence used in a spell.
Hit Rate: Bonus critical chance.
PDEF_F: % of Physical Defence used in the skill.
MDEF_F: % of Magical Defence used in the skill.
Variance: Same as always. I use 0 for all my skills currently.
HP: Your life
MP: Your mana
ATK: Your base damage that you will do to a target.
PDEF: Blocks a point of damage for every point of PDEF
MDEF: Blocks a point of magical damage for every point of MDEF. (In my game it is also going to help remove status effects)
STR: Increases physical damage done by 1 point. (or in other words, the skills that have STR_F)
DEX: Decreases the amount of damage the PDEF blocks by 1 point, increases critical damage by 1, and increases chance to critical by 2%.
AGI: Decreases all damage done by 1. (In my game it is also going to help remove status effects)
INT: Increases magical damage done by 1 point, and increases super effective element damage. (or in other words, the skills that have INT_F) (In my game, its also increases mana regeneration.)
EVA: Decreases the chance that you will be hit by a critical by 1.

In my battle formula, you ALWAYS hit, and the is no random number of damage for normal attacks.
Hi guys been away from the scene for a few months. Basic jist I lost my right eye and have been in and out of hospital since. Anyway I'm wanting to get back to my game making so just a few questions.

!. wheres the original site to get XAS?
2. My link to the cool tutorial page (used to be on myspace) no longer works, is there a new site?
3. Any new XAS version/scripts out?

It would be a big help if any of the above can be answered. I'd really like to get this game complete before my sight totally goes.
Hey Hourglass,

My site has moved, it's now hosted on wordpress which means you can leave comments and the like ...

XAS Tutorials: http://xasabs.wordpress.com/

Moghunter's site: http://www.atelier-rgss.com/

Since you've been gone I've also compiled a PDF that outlines the system for everyone.

PDF download: http://www.filefront.com/14713937/XAS-M ... -v0.1.rar/

Glad to hear you feel well enough to get back into it, you had great potential from what I remember of your game.

My good friend Gameface is producing some great scripts and features, go sign up to his site - http://gameface101.playogame.com/

Hope to see you on both of these sites real soon 😀
Thanks Calvin thats a BIG BIG help. it's quite hard getting back in the game after so long.
Few more questions (saves me scowering the forum which isnt easy at the mo with my current sight), Did Fenwick ever get that hookshot script up and running?
Also has there been any advancements with XAS and mode 7 compatability?
Brillaint PDF (and its OCR so my reading software can read it, which is an added bonus.)
Hourglass wrote:
Thanks Calvin thats a BIG BIG help. it's quite hard getting back in the game after so long.
Few more questions (saves me scowering the forum which isnt easy at the mo with my current sight), Did Fenwick ever get that hookshot script up and running?
Also has there been any advancements with XAS and mode 7 compatability?



Version: 1.6 is currently on Calvin's Site I believe...

I've just been a silent viewer as of late, work has taken hold of me probably until next year around April. I will then be continuing develeopment of the Hook Shot Tool and pushing to get it into Full Script format.

Fenwick Lorecarver
Hourglass wrote:
Brillaint PDF (and its OCR so my reading software can read it, which is an added bonus.)


That's good to hear, makes things a little easier.

Yeah Fenwick's Hookshot is up on the site - miles better than the hook tool that comes with XAS. We all look forward to the day we get Fenwick back haha :)

http://www.megaupload.com/?d=XM78PFLD

There's the direct link to the download. Have a look under the Downloads listed under categories - might be some more stuff you like.

Enjoy!
Weird, why no one knows that Calvin has been translating this for a long time now?

BTW, good job Cal. After I stopped RM-ing for few months, XAS has been getting better. The 'World Map' system is great too. I'm waiting paitiently for Future : Bloodline. Good luck on it! :thumb:
wow! I've been "tired busy" but I gotta make time for this...

@acrox999 - that's right, hang tight cause there's going to be a Star Map :thumb:

@fenwick - looking forward to your script!

@calvin - man we are good friends, you ROCK
thanks a lot for the shout out too.

@hourglass - glad you're back in action.

@Bullet_Darkness -
Quote:
I barely know how to script
you got skills, well done

CHANGING FACE HUD (by the button)
if you have been following this thread, I've been looking for a
way to make the face graphic change when block, attack, etc...
I was unable to find such a script....so I started to make one.
I finally got my changing face HUD working not too long ago.
thought I'd share it here for that holiday cheer ^,^
right now it's set up to switch the graphic by button press/trigger
the later versions will be based on action/dash/item/skill/hit/etc...

enjoy~

Content Hidden Spoiler
  1. ################################################################################
  2. #                            CHANGING FACE HUD v 0.4
  3. #                                 for XAS ABS v 3.6
  4. #                              by (G/A/M/E/F/A(C/E 101
  5. #                                    10-03-2009
  6. #
  7. #
  8. #  v0.4 = Hud now includes actor name.
  9. #  v0.3 = Hud fades just as the 3.6 hud
  10. #  v0.2 = face graphic by actor name + suffix of graphic name.
  11. #  v0.1 = face graphic by button press.
  12. #
  13. ################################################################################
  14. module GF
  15. # Fade Position must match super position
  16. GFC_X = 154
  17. # Fade Position must match super position
  18. GFC_Y = 386
  19. # Allow HUD opaque if the hero is on top of the HUD.
  20. GFC_FADE = true
  21. end
  22. ##################################################################[WINDOW CLASS]
  23. class Window_Gameface_HUD < Window_Base#-----------------------=[in game window]
  24.   def initialize#-------------------------------------------------=[define load]
  25.   super (154, 386, 254, 104)#-------------=[x,y window position x,y window size]
  26.     self.contents = Bitmap.new(width - 32, height - 32)#-----------------=[keep]
  27.     refresh#---------------------------------------------=[call refresh command]
  28.     self.opacity = 0#------------------------------------=[window skin opacity]
  29.       end#-----------------------------------------------------=[end definition]
  30. ########################################################################[UPDATE]
  31.   def update#---------------------------------------------------=[define update]
  32.       super#------------------------------------------=[update the super window]
  33.       if GF::GFC_FADE == true
  34.     x = ($game_player.real_x - $game_map.display_x) / 4
  35.     y = ($game_player.real_y - $game_map.display_y) / 4
  36.     hud_size_x = 80
  37.     hud_size_y = 100
  38.     oc_range_x = hud_size_x + GF::GFC_X
  39.     oc_range_y = hud_size_y + GF::GFC_Y
  40.       if x < oc_range_x and x > GF::GFC_X - 5 and
  41.         y > GF::GFC_Y - 15 and y < oc_range_y
  42.       self.contents_opacity -= 10 if  self.contents_opacity > 120
  43.       else
  44.       self.contents_opacity += 10 if  self.contents_opacity < 255
  45.       end
  46.     end
  47.     refresh#---------------------------------------------=[call refresh command]
  48.   end#---------------------------------------------------------=[end definition]
  49. #######################################################################[REFRESH]
  50.   def refresh#-------------------------------------------------=[define refresh]
  51.     self.contents.clear#-----------------------------------------=[clear bitmap]
  52. #    draw_charactor#--------------------------------------=[call to draw_sprite]
  53.   draw_gameface#-------------------------------------------=[call to draw_face]
  54.   face_frame
  55.   hero_name
  56. end#-----------------------------------------------------------=[end definition]
  57. ###################################################################[CHAR-ACTOR]
  58. #  def draw_charactor#--------------------------------------=[define draw_heart]
  59. #    x = 10 #----------------------------------------------=[draw x coordinates]
  60. #    y = 40#-----------------------------------------------=[draw y coordinates]
  61. #    bitmap = RPG::Cache.character("001-Fighter01",0)
  62. #    bitmap = RPG::Cache.picture(actor.character_name) rescue return
  63. #===============================================================[complete heart]
  64. # src_rect = Rect.new(0, 0, bitmap.width, bitmap.height)#----------=[edit v 0.4]
  65. # self.contents.blt(x, y, bitmap, src_rect)#-----------------------=[edit v 0.4]
  66. #===============================================================================
  67. ####################################################################[HERO NAME]
  68.   def hero_name
  69.   self.contents.font.name = "Impact"#---------------------------=[FONT TYPE]
  70.   self.contents.font.size = 24#---------------------------------=[FONT SIZE]
  71.   self.contents.font.color.set(0, 0, 0)
  72.   self.contents.draw_text(30 - 1, 48 - 1, 160, 32, $game_party.actors[0].name, 0)
  73.   self.contents.draw_text(30 - 1, 48 + 1, 160, 32, $game_party.actors[0].name, 0)
  74.   self.contents.draw_text(30 + 1, 48 - 1, 160, 32, $game_party.actors[0].name, 0)
  75.   self.contents.draw_text(30 + 1, 48 + 1, 160, 32, $game_party.actors[0].name, 0)
  76.   self.contents.font.color = normal_color
  77.   self.contents.draw_text(30, 48, 160, 32, $game_party.actors[0].name, 0)
  78.   end
  79. ###################################################################[FACE FRAME]
  80.   def face_frame#--------------------------------------=[define draw_heart]
  81.    
  82.     x = 0 #----------------------------------------------=[draw x coordinates]
  83.     y = 0#-----------------------------------------------=[draw y coordinates]
  84.     bitmap = RPG::Cache.picture("FACE FRAME")
  85. #  bitmap = RPG::Cache.picture(actor.character_name) rescue return
  86. #===============================================================[complete heart]
  87.  src_rect = Rect.new(0, 0, bitmap.width, bitmap.height)#----------=[edit v 0.4]
  88.  self.contents.blt(x, y, bitmap, src_rect)#-----------------------=[edit v 0.4]
  89.  self.z = 1#-------------------------------------=[place in front
  90. #===============================================================================
  91. end
  92. ################################################################################
  93. #def noface
  94. #face = RPG::Cache.picture("")
  95. #end
  96.  
  97. def draw_gameface
  98.   self.z = 9999#-------------------------------------=[place in front
  99.   actor = $game_party.actors[0]
  100.     x = 16
  101.     y = 16
  102.     if actor == nil
  103.     face = RPG::Cache.picture("")
  104. #[SHOW "ACTION" GRAPHIC WHEN PLAYER ACTS]=--------------------------------------
  105.     elsif Input.press?(Input::C)
  106.     face = RPG::Cache.picture(actor.name + "_face_act")#
  107.     src_rect = Rect.new(0, 0, face.width, face.height)
  108.     self.contents.blt(x , y, face, src_rect)
  109. #[SHOW "DEFEND" GRAPHIC WHEN PLAYER DEFEND]=--------------------------------------  
  110.   elsif Input.press?(Input::A)# and "(shield is eqipped???)"
  111.     face = RPG::Cache.picture(actor.name + "_face_defend")
  112.     src_rect = Rect.new(0, 0, face.width, face.height)
  113.     self.contents.blt(x , y, face, src_rect)
  114.    
  115.     elsif Input.press?(Input::X)
  116.     face = RPG::Cache.picture(actor.name + "_face_dash")
  117.     src_rect = Rect.new(0, 0, face.width, face.height)
  118.     self.contents.blt(x , y, face, src_rect)
  119.  
  120.     elsif Input.press?(Input::Y)
  121.     face = RPG::Cache.picture(actor.name + "_face_item")
  122.     src_rect = Rect.new(0, 0, face.width, face.height)
  123.     self.contents.blt(x , y, face, src_rect)
  124.    
  125.     elsif Input.press?(Input::Z)
  126.     face = RPG::Cache.picture(actor.name + "_face_skill")
  127.     src_rect = Rect.new(0, 0, face.width, face.height)
  128.     self.contents.blt(x , y, face, src_rect)
  129.    
  130.     else
  131.     face = RPG::Cache.picture(actor.name + "_face")
  132.     src_rect = Rect.new(0, 0, face.width, face.height)
  133.     self.contents.blt(x , y, face, src_rect)
  134.     end
  135.     end
  136.     end
  137.  
  138. ###############################################################[SCENE_MAP ALIAS]
  139. class Scene_Map#----------------------------------------=[Map Screen Processing]
  140.   alias gf101_charact_hud_main main#---------------------------=[alias gface101]
  141.   def main#-----------------------------------------------=[define main process]
  142.     @hud_window1 = Window_Gameface_HUD.new#-------------------=[call hud window]
  143.     @hud_window1.visible = $game_switches[401]#----------------=[display switch]
  144.     gf101_charact_hud_main#-----------------------------------=[call with alias]
  145.     @hud_window1.dispose#------------------------------=[gets rid of the window]
  146.   end#---------------------------------------------------------=[end definition]
  147.   alias gf101_charact_hud_update update#------------------------[aliased update]
  148.   def update#---------------------------------------------------=[define update]
  149.     @hud_window1.update#------------------------------------------=[call update]
  150.     @hud_window1.visible = $game_switches[401]#----------------=[display switch]
  151.     gf101_charact_hud_update#---------------------------------=[call with alias]
  152.   end#---------------------------------------------------------=[end definition]
  153. end#---------------------------------------------------------------=[end it all]
Expand to see the code.



edit: just in case you need resources...

http://fayforest.sakura.ne.jp/sozai/index
( click on the columns to the left )
So that means, it's not far that we'll be able to play as other heroes?
@Eriol - you mean like a "Switch Leader" Script??

if so, I have one that's a work in progress!
you can go here => http://gameface101.playogame.com/play-w ... ipt-t6.htm
yeah!

and oh, i'm working on my template that will be flexible for XAS & GTBS animations...
VERTICAL OVERDRIVE + dual button config script

for those who don't know ....
in XAS, Overdrive is a power level that you charge when
you successfully hit an enemy.

Image

by default you have to press the ALT key to activate
but with this script you can simply
hold attack (C) then press dash (A)
to unleash the awesome power
(works like a charm with a controller)

you will have to rotate the default graphics as so...
to make the vertical orientation work with the script.

Image

*note: name, percentage, and the fraction for level
has been commented to not display

this will be one of many new features calvin624 and I will
introduce in our free and open project, our tribute to
our favorite battle system, XAS Future : Bloodlines
(which is only weeks away for the world to download!)

enjoy the script and stay tuned where you know how to find us ^,^
Content Hidden Spoiler
  1.  
  2. ###########################################
  3. #
  4. # MOG_XAS_OVERDRIVE 2.3cg
  5. # modified by gameface101
  6. # > two button configuration (hold Action "C" then press Dash "X"
  7. # > vertical orientation for Future Editions
  8. # http://gameface101.com
  9. #
  10. # translated and vertical concept by calvin624
  11. # http://www.xasabs.wordpress.com
  12. #
  13. # original script by moghunter
  14. # http://www.atelier-rgss.com
  15. ###########################################
  16. #---------------------------------------------------------------------------
  17. # System skills (tools) that can only
  18. # be activated when the Overdrive bar is
  19. # complete in 100% or above level 1, you can set
  20. # infinite levels of Overdrive.
  21. # Create an attribute with the name "OVD" and assign
  22. # a skill that matches the ID of the tool.
  23. #_______________________________________________________________________________
  24. # Images necessary.
  25. # - XOVD_Gauge_Back + Sufixo
  26. # - XOVD_Gauge + Sufixo
  27. #_______________________________________________________________________________
  28. # Set the level proportional to the numerical suffix of overdrive.
  29. # EXP
  30. # Overdrive Level 2
  31. #  XOVD_Gauge_Back2.png
  32. #  XOVD_Gauge2.png
  33. #
  34. # Overdrive Level Level maximo.
  35. #
  36. #  XOVD_Gauge_Back_Max.png
  37. #  XOVD_Gauge_Max.png
  38. #_______________________________________________________________________________
  39. module MOG
  40. # Definition of the variable that defines the maximum level of Ovedrive.
  41. # That is, through an event set the value of the overdrive
  42. # changing the value of the variable that matches the level
  43. # of overdrive.
  44. OVD_MAX_LEVEL_VAR_ID = 11
  45. # Definition of skill which will be activated in a
  46. # level of the Overdrive.
  47. OVD_LEVEL = {
  48. 1=> 44, #Overdrive LV 1 (SKill ID)
  49. 2=> 45, #Overdrive LV 2 (SKill ID)
  50. 3=> 46, #Overdrive LV 3 (SKill ID)
  51. 4=> 47  #Overdrive LV 4 (SKill ID)
  52.             }
  53. # Definition specifies the amount of gain in the meter
  54. # overdrive.
  55. # A => B
  56. #
  57. # A = The ID of the tool (Skill ID = ID Tool).
  58. # B = value of gain overdrive.
  59. OVD_GAIN = {
  60. 1=>3,    #Skill ID 1 (Gain 3pt)
  61. 2=>3,    #Skill ID 2 (Gain 5pt)
  62. 3=>3,    #Skill ID 2 (Gain 5pt)
  63. 4=>4,    #Skill ID 4 (Gain 6pt)
  64. 5=>5,    #Skill ID 5 (Gain 4pt)
  65. 6=>3,    #Skill ID 6 (Gain 3pt)
  66. 104=>1,  #Skill ID 104 (Gain 1pt)
  67. 105=>0,
  68. 140=>4   #
  69. }
  70. # Setting the default gain of the Overdrive if not specified.
  71. OVD_DEFAULT_GAIN = 2
  72. # Definition of the button to activate Overdrive
  73. #OVD_BUTTON = Input:: ALT
  74. # Animation to be enabled to achieve 100% of Overdrive.
  75. OVDANI = 1
  76. # Text that will appear when you reach 100% of Ovedrive.
  77. OVDTEXT = "Overdrive!"
  78. # Sound when the Overdrive is OFF.
  79. OVDSEOFF = "003-System03"
  80. # Text that will appear when the Ovedriver is OFF.
  81. OVDOFF_TEXT = ""
  82. # ID of the switch that disables the Overdrive.
  83. XAS_OVDVIS = 5
  84. # Position the meter horizontally.
  85. OVD_X = 373
  86. # Upright position of the meter.
  87. OVD_Y = -62
  88. # Display the percentage meter.
  89. OVD_PERCENTAGE = false
  90. # Allow HUD opaque if the hero is on top of the HUD.
  91. OVD_FADE = true
  92. end
  93. #_________________________________________________
  94. $mog_rgss_xas_overdrive = true
  95. ################################################################################
  96. # Game_System #
  97. ###############
  98. class Game_System
  99. attr_accessor :xasovd_gauge  
  100. attr_accessor :xasovd_ani
  101. attr_accessor :xasovd_lv
  102. alias mog_xasovd_initialize initialize
  103. def initialize
  104. mog_xasovd_initialize
  105. @xasovd_gauge = 0
  106. @xasovd_lv = 0
  107. @xasovd_ani = true
  108. end
  109. def xasovd_lv
  110. return @xasovd_lv
  111. end
  112. def xasovd_gauge
  113. if @xasovd_gauge > 100
  114. @xasovd_gauge = 100
  115. elsif @xasovd_gauge < 0
  116. @xasovd_gauge = 0
  117. end
  118. return @xasovd_gauge
  119. end
  120. def xasovd_ani
  121. return @xasovd_ani
  122. end
  123. end
  124. ################################################################################
  125. # Game_Battler #
  126. ################
  127. class Game_Battler
  128. include MOG
  129. alias mog_xasovd_skill_effect skill_effect
  130. def skill_effect(user, skill)
  131. mog_xasovd_skill_effect(user, skill)
  132. if skill.element_set.include?($data_system.elements.index("OVD")) and self.damage.is_a?(Numeric) and
  133.   user.is_a?(Game_Actor) and self.is_a?(Game_Enemy) and not XAS_BA_ENEMY::ITEM_ENEMY.include?(self.id) and
  134.   $game_switches[MOG::XAS_OVDVIS] == false  
  135.   xas_ovd_gain = MOG::OVD_GAIN[skill.id]
  136. ovdmaxlevel = $game_variables[OVD_MAX_LEVEL_VAR_ID]
  137. if xas_ovd_gain != nil and $game_system.xasovd_lv < ovdmaxlevel
  138. $game_system.xasovd_gauge += xas_ovd_gain
  139. else
  140. $game_system.xasovd_gauge += MOG::OVD_DEFAULT_GAIN if $game_system.xasovd_lv < ovdmaxlevel
  141. end
  142. if $game_system.xasovd_gauge >= 100 and $game_system.xasovd_lv < ovdmaxlevel
  143. $game_system.xasovd_lv += 1
  144. $game_system.xasovd_gauge = 0
  145. $game_player.animation_id = MOG::OVDANI
  146. $game_player.battler.damage = MOG::OVDTEXT
  147. $game_player.battler.damage_pop = true
  148.       if $mog_rgss_ifw != nil
  149.       if $game_system.xasovd_lv == ovdmaxlevel
  150.       text = " MAX"
  151.       else
  152.       text = $game_system.xasovd_lv
  153.       end
  154.       $game_temp.ifw_text = "OVERDRIVE LVUP - L" +  text.to_s
  155.       $game_temp.ifw_active = true        
  156.       end
  157. end
  158. $ovdref = true
  159. end
  160. end
  161. end
  162. ################################################################################
  163. # Window_Base #
  164. ###############
  165. class Window_Base < Window #=-------------------------------------==[Ruby class]
  166. def draw_xasovd(x,y)#=-----------------------------------------=[define message]
  167. ovdmaxlevel = $game_variables[MOG::OVD_MAX_LEVEL_VAR_ID]#--=[variable for level]
  168. #------------------------------------------------------=[overdrive back graphic]
  169. ovdback = RPG::Cache.picture("XOVD_Gauge_Back" + $game_system.xasovd_lv.to_s.to_s)  
  170. cw = ovdback.width
  171. ch = ovdback.height
  172. #src_rect = Rect.new(0, 0, cw, ch)
  173. src_rect = Rect.new(-9, 0, 50, 200) #vertical
  174. #self.contents.blt(x + 15, y - ch, ovdback, src_rect)
  175. self.contents.blt(x + 0, y + 0, ovdback, src_rect)#vertical
  176. ######################################################################[if maxed]
  177. if $game_system.xasovd_lv == ovdmaxlevel
  178. ovdgauge = RPG::Cache.picture("XOVD_Gauge_Max")
  179. else ############################################################[or next guage]
  180. ovdgauge = RPG::Cache.picture("XOVD_Gauge" + $game_system.xasovd_lv.to_s.to_s)
  181. end
  182. #################################################################[ test
  183. if $game_system.xasovd_lv < ovdmaxlevel #--------[if level is less than MAX]
  184. #cw = ovdgauge.width *  $game_system.xasovd_gauge / 100 #width =
  185. ch = ovdgauge.height *  $game_system.xasovd_gauge / 100 #change orientation
  186. else
  187. if ovdmaxlevel == 0
  188. #cw = 1
  189. ch = 1 #=--------------------------------------------------------------vertical
  190. else
  191. #cw = ovdgauge.width
  192. ch = ovdgauge.height#=-------------------------------------------------vertical
  193. end
  194. end
  195. #ch = ovdgauge.height
  196. cw = ovdgauge.width #=-------------------------------------------------vertical
  197. #src_rect = Rect.new(0, 0, cw, ch)
  198. src_rect = Rect.new(0, -55, 50, 200)#keep?
  199. #self.contents.blt(x + 15, y - ch, ovdgauge, src_rect)#location of meter
  200. self.contents.blt(x + cw, y - ch , ovdgauge, src_rect)#=---------------vertical
  201. ##########################################################[ for text diplay ]
  202.  
  203. self.contents.font.name = ""
  204. self.contents.font.size = 14
  205. #self.contents.font.bold = true
  206. if MOG::OVD_PERCENTAGE == true
  207. unless $game_system.xasovd_lv == ovdmaxlevel
  208. if $game_system.xasovd_lv < ovdmaxlevel
  209. self.contents.draw_hemming_text(x + 0, y - 25, 80, 32, $game_system.xasovd_gauge.to_s + " %",1)
  210. else
  211. if ovdmaxlevel == 0
  212. self.contents.draw_hemming_text(x + 0, y - 25, 80, 32, "0 %",1)  
  213. else
  214. self.contents.draw_hemming_text(x + 0, y - 25, 80, 32, "100 %",1)
  215. end
  216. end
  217. end
  218. end
  219. self.contents.font.color = Color.new(255,255,255,255)
  220. self.contents.draw_hemming_text(x, y - 39, 110, 32, "OVERDRIVE",0)
  221. self.contents.font.color = Color.new(55,255,155,255)
  222. self.contents.draw_hemming_text(x - 10, y - 15, 110, 32, "LV " + $game_system.xasovd_lv.to_s + "/" + ovdmaxlevel.to_s ,1)
  223. end
  224. end
  225. ################################################################################
  226. # Winxasovd #
  227. #############
  228. class Winxasovd < Window_Base
  229. def initialize
  230. super(0, 0, 50, 142)#window size and position
  231. self.contents = Bitmap.new(width - 32, height - 32)
  232. self.opacity = 0 #=-------------------------------------=[window skin for super]
  233. @old_ovd_level = $game_system.xasovd_lv
  234. @old_ovd = $game_system.xasovd_gauge
  235. refresh
  236. end
  237. def refresh
  238. self.contents.clear
  239. draw_xasovd(0, 55)#
  240. @old_ovd_level = $game_system.xasovd_lv
  241. @old_ovd = $game_system.xasovd_gauge
  242. end
  243. def update
  244.     if MOG::OVD_FADE == true
  245.     x = ($game_player.real_x - $game_map.display_x) / 4
  246.     y = ($game_player.real_y - $game_map.display_y) / 4
  247.     hud_size_x = 9
  248.     hud_size_y = 55
  249.     oc_range_x = hud_size_x + MOG::OVD_X
  250.     oc_range_y = hud_size_y + MOG::OVD_Y
  251.       if x < oc_range_x and x > MOG::OVD_X - 5 and
  252.         y > MOG::OVD_Y - 15 and y < oc_range_y
  253.       self.contents_opacity -= 10 if  self.contents_opacity > 120
  254.       else
  255.       self.contents_opacity += 10 if  self.contents_opacity < 255
  256.       end
  257.     end  
  258.  
  259. if @old_ovd_level != $game_system.xasovd_lv or
  260.   @old_ovd != $game_system.xasovd_gauge
  261.   refresh
  262. end
  263. end
  264. end
  265. ################################################################################
  266. # Scene_Map #
  267. #############
  268. class Scene_Map
  269. include MOG
  270. alias mog_xasovd_main main
  271. def main
  272. @actor = $game_party.actors[0]
  273. @Winxasovd = Winxasovd.new
  274. @Winxasovd.x = OVD_X
  275. @Winxasovd.y = OVD_Y
  276. if @actor == nil or
  277.   $game_switches[MOG::XAS_OVDVIS] == true
  278. @Winxasovd.visible = false
  279. elsif  $game_switches[MOG::XAS_OVDVIS] == false
  280. @Winxasovd.visible = true
  281. end
  282. mog_xasovd_main
  283. @Winxasovd.dispose
  284. end
  285. alias mog_xasovd_update update
  286. def update
  287. mog_xasovd_update
  288. if @actor == nil or
  289.   $game_switches[MOG::XAS_OVDVIS] == true
  290. @Winxasovd.visible = false
  291. elsif  $game_switches[MOG::XAS_OVDVIS] == false
  292. @Winxasovd.visible = true
  293. end
  294. @Winxasovd.update
  295. end
  296. end
  297. ################################################################################
  298. # Game_Player #
  299. ###############
  300. class Game_Player < Game_Character
  301. include MOG
  302. alias mog_xasovd_update update
  303. def update
  304. mog_xasovd_update
  305. actor = $game_party.actors[0]
  306. return if actor == nil
  307. if Input.press?(Input::C) and Input.trigger?(Input::X)and $game_system.xasovd_lv != 0 and
  308. #if Input.trigger?(MOG::OVD_BUTTON) and $game_system.xasovd_lv != 0 and
  309.             $game_switches[XAS_COMMAND::COMMAND_DISABLE_SWITCH] == false and
  310.             $game_switches[MOG::XAS_OVDVIS] == false and not
  311.             $game_temp.cast_time > 0
  312. unless self.action != nil or $game_system.map_interpreter.running? or
  313. $game_temp.message_window_showing or $game_map.starting? or
  314. self.knockbacking?
  315. unless actor.states.include?(XAS::BERSERK_ID) or
  316.       actor.states.include?(XAS::MUTE_ID)
  317.       if $game_system.xasovd_lv > 0
  318. ovd_level = MOG::OVD_LEVEL[$game_system.xasovd_lv]
  319. if ovd_level != nil
  320. action_id = ovd_level
  321. character_real_name
  322. self.shoot(action_id) if action_id != nil
  323. end
  324. $game_system.xasovd_gauge = 0
  325. $game_system.xasovd_lv = 0
  326. $game_system.xasovd_ani = true
  327. else
  328. Audio.se_play("Audio/SE/" + OVDSEOFF)
  329. $game_player.battler.damage = OVDOFF_TEXT
  330. $game_player.battler.damage_pop = true
  331. end
  332. else
  333. $game_player.battler.damage = XAS::SEALED_TEXT
  334. $game_player.battler.damage_pop = true
  335. $game_system.se_play(XAS::SEALED_SE)
  336. end
  337. end
  338. end
  339. end
  340. end
Expand to see the code.
I know about the overdrive. For a long time now. Just when I want to make the game in full screen(ALT+ENTER), then it do the overdrive. Might need this script anytime soon.
@acrox999 - I know exactly what you mean...another reason to switch up the overdrive button config.

but if you want your game to start in full screen, just replace the main script with this one...

Content Hidden Spoiler
  1. #==============================================================================
  2. # ** Main
  3. #------------------------------------------------------------------------------
  4. #  After defining each class, actual processing begins here.
  5. #==============================================================================
  6. begin
  7.   # Prepare for transition
  8.   Graphics.freeze
  9.   $defaultfonttype = $fontface = $fontname = Font.default_name = "Calibri"
  10.   $defaultfontsize = $fontsize = Font.default_size = 24
  11.   # Make scene object (title screen)
  12.   original = $scene = Scene_Title.new
  13.   $showm = Win32API.new 'user32', 'keybd_event', %w(l l l l), ' ' # Recognizes keyboard input
  14.   $showm.call(18,0,0,0) # ALT down
  15.   $showm.call(13,0,0,0) # ENTER down
  16.   $showm.call(13,0,2,0) # ENTER up
  17.   $showm.call(18,0,2,0) # ALT up
  18.   # Call main method as long as $scene is effective
  19.   while $scene != nil
  20.     $scene.main
  21.   end
  22.   # Fade out
  23.   Graphics.transition(20)
  24. rescue Errno::ENOENT
  25.   # Supplement Errno::ENOENT exception
  26.   # If unable to open file, display message and end
  27.   filename = $!.message.sub("No such file or directory - ", "")
  28.   print("Unable to find file #{filename}.")
  29. end
Expand to see the code.
edit: nevermind, i figured it out!

Original thread: https://www.hbgames.org/forums/viewtopic.php?t=36855