Tsukihime

Draw Magic

14 posts in this topic

Draw Magic

Author: Tsukihime

 

92mUM.jpg

 

Overview

 

This script allows you to designate skills that should be treated as "draw skills". Draw skills allow you to steal magic units from the enemy. It is functionally the same as the draw command in FF8

 

Features

  • Set-up magic units for enemies
  • Designate skills to be "draw" skills
  • Draw magic from enemies for your own use
  • Enemies can also draw from your party

Usage

 

In the configuration, just type in the skill ID's that should be draw skills.

Tag enemies that should have magic units with the desired skill ID's

 

<draws: 1,2,3,4, ... >

 

Note that they must be magic unit skill types.

 

Screenshots

 

 

 

h9ZCa.jpg

 

When you use the draw skill, you will be asked to select an enemy and any magic they have

 

Then the skill will be used as normal

 

XOemQ.jpg

 

once you have the magic, you can use it freely

 

o3fzx.jpg

 

 

Download

 

Script: http://db.tt/MvesW5KN

Required: Magic Units

 

Compatibility and add-ons

 

Command Setup - directly designate the draw skill as a command. Command Setup must be placed above this script for the add-on to be applied.

Edited by Tsukihime
Wren likes this

Share this post


Link to post
Share on other sites

This is nice. Do you plan on doing a Junction system with the Magic Units as well? The Junction system, from Final Fantasy VIII, allows the player to junction (attach) magic to parameter slots such as ATK, SPI, Mag-ATK, etc. altering the value of the parameter based on the affinity level of the magic to that parameter.

Share this post


Link to post
Share on other sites

Nice sir, I was going to ask about having an attack with a weapon Draw...but custom attacks can handle that. I am impressed and I am pretty sure I will use this. Many thanks for the awesome scripts.

Share this post


Link to post
Share on other sites

drawscripterror.jpg

I got this error when I tried to draw magic from an enemy. :(

   def draw_magic(user, item)
  skill_id = user.actions[0].draw_id
  return if skill_id == 0
  avail = get_magic_units(skill_id)
  drawn = calculate_draw_amount(user, self)
  amount = [[drawn, avail].min, 0].max
  if amount > 0
    user.add_magic_units(skill_id, amount)
    lose_magic_units(skill_id, amount)
    @result.draw_amount = amount
    @result.draw_magic_name = $data_skills[skill_id].name
    @result.success = true
  end
   end

That's the chunk that begins at 132, saves you the time with having to look for it yourself. :/

 

Also, I was wondering, is there ways of drawing things other than the magic from enemies? Or is that all you can do, because in FFVIII you could also draw summons, "Guardian Forces", from enemies as well.

Share this post


Link to post
Share on other sites

I got this error when I tried to draw magic from an enemy. :(

 

Describe how you've setup the project and how you drew the magic.

 

Basically, when you choose which magic you want to draw, that ID is stored with your action, which should be set when you choose a skill with draw effect.

 

Did you use some sort of force action? That might get around it and you end up with no draw_id set.

 

Of course, it may just be case of poor design, but I couldn't think of where else to store the magic that you want to draw.

 

 

Also, I was wondering, is there ways of drawing things other than the magic from enemies? Or is that all you can do, because in FFVIII you could also draw summons, "Guardian Forces", from enemies as well.

 

Unfortunately the current design only really allows you to draw skills.

Which means you can always assign a skill to be one of the summons, and when one of your actors "has" that "summon", you would remove that skill and add the summon to your party, which could be an actor.

 

could an option of stocking and casting like in ff8 be added?

 

I'd have to bypass the default skill-use checks, which might get ugly.

Edited by Tsukihime

Share this post


Link to post
Share on other sites

I've set it up so that draw is a command skill, using your other script. I've added the draw ability to the main character.

http://img651.images...4770/enemyy.png

http://img515.images...5/916/drawq.png

Not really sure where I went wrong, I'm sure you'll spot it though.

 

Also, thanks for being incredibly helpful, I'm probably being a real pain in the hide. ;~;

Edited by -sigma-

Share this post


Link to post
Share on other sites

lol actually I'm not sure where the issue is coming from, since it looks like an issue with the Action itself.

Edited by Tsukihime

Share this post


Link to post
Share on other sites

Okay I've got 2 minor errors with this script while using alongside yami's new battlesystem

http://yamiworld.wordpress.com/2012/08/01/battle-symphony-8d-battlers/#comment-1560

the issues are if you cancel the draw command then it crashes with this error

 

script 'window_skilllist' line 81: nomethoderror occurred.

undefined method 'last_skill' for nil:nilclass

 

also when actually using the draw skill the failed message appears although you was successful I'm gaining the desired skill (I'm also using your battlecommand script)

Share this post


Link to post
Share on other sites

I can get a draw point to work, but I can't seem to draw anything from enemies.
Here is my file: https://drive.google.com/file/d/0B449SExj1XuCU1RkQ3g5MDlhN2s/edit?usp=sharing
The right event is a draw point, the top and left events are battles with monsters who should be able to have skill 4 "magic" drawn from them. When I use draw on the monsters a blank menu shows up.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.