Jump to content


Photo

Draw Magic


  • Please log in to reply
13 replies to this topic

#1 Tsukihime

Tsukihime

    Advanced Member

  • Member
  • 7120 posts
  • LocationToronto
  • RM Skill - Coder

Awards Bar:

Users Awards

Posted 28 May 2012 - 07:59 PM

Draw Magic
Author: Tsukihime

Posted Image

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

Spoiler

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, 28 May 2012 - 08:18 PM.

All of my work can be found on my website:

banner200x40.png

You can follow me on any of these platforms:

logo_facebook40x40.pnglogo_twitter40x40.pnglogo_youtube40x40.pnglogo_patreon40x40.pnglogo_instagram40x40.png

Go here for Bugs and Requests.
 
Want to become a beta tester for my plugins before they are released to the public?

#2 Seiryuki

Seiryuki

    Advanced Member

  • Member
  • 103 posts
  • LocationTrinidad & Tobago
  • RM Skill - Jack of All Trades

Posted 29 May 2012 - 07:02 AM

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.

#3 Tsukihime

Tsukihime

    Advanced Member

  • Member
  • 7120 posts
  • LocationToronto
  • RM Skill - Coder

Awards Bar:

Users Awards

Posted 29 May 2012 - 10:25 AM

Yes, I think after writing up the magic units script it makes a lot of things from FF8 pretty simple to do lol
All of my work can be found on my website:

banner200x40.png

You can follow me on any of these platforms:

logo_facebook40x40.pnglogo_twitter40x40.pnglogo_youtube40x40.pnglogo_patreon40x40.pnglogo_instagram40x40.png

Go here for Bugs and Requests.
 
Want to become a beta tester for my plugins before they are released to the public?

#4 SirCumferance

SirCumferance

    Advanced Member

  • Member
  • 325 posts
  • LocationLakewood, Washington
  • RM Skill - Jack of All Trades

Posted 30 May 2012 - 11:16 AM

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.

#5 ∑-sigma-

∑-sigma-

    Advanced Member

  • Member
  • 200 posts
  • LocationAustralia.
  • RM Skill - Writer

Posted 01 July 2012 - 01:05 AM

Posted Image
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.
Posted Image

#6 Tammsyn

Tammsyn

    Advanced Member

  • Member
  • 173 posts

Posted 01 July 2012 - 02:48 AM

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

#7 Tsukihime

Tsukihime

    Advanced Member

  • Member
  • 7120 posts
  • LocationToronto
  • RM Skill - Coder

Awards Bar:

Users Awards

Posted 01 July 2012 - 10:32 AM

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, 01 July 2012 - 10:32 AM.

All of my work can be found on my website:

banner200x40.png

You can follow me on any of these platforms:

logo_facebook40x40.pnglogo_twitter40x40.pnglogo_youtube40x40.pnglogo_patreon40x40.pnglogo_instagram40x40.png

Go here for Bugs and Requests.
 
Want to become a beta tester for my plugins before they are released to the public?

#8 ∑-sigma-

∑-sigma-

    Advanced Member

  • Member
  • 200 posts
  • LocationAustralia.
  • RM Skill - Writer

Posted 01 July 2012 - 08:53 PM

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-, 01 July 2012 - 08:53 PM.

Posted Image

#9 Tsukihime

Tsukihime

    Advanced Member

  • Member
  • 7120 posts
  • LocationToronto
  • RM Skill - Coder

Awards Bar:

Users Awards

Posted 01 July 2012 - 09:49 PM

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, 01 July 2012 - 09:50 PM.

All of my work can be found on my website:

banner200x40.png

You can follow me on any of these platforms:

logo_facebook40x40.pnglogo_twitter40x40.pnglogo_youtube40x40.pnglogo_patreon40x40.pnglogo_instagram40x40.png

Go here for Bugs and Requests.
 
Want to become a beta tester for my plugins before they are released to the public?

#10 Tammsyn

Tammsyn

    Advanced Member

  • Member
  • 173 posts

Posted 21 August 2012 - 05:11 PM

Okay I've got 2 minor errors with this script while using alongside yami's new battlesystem
http://yamiworld.wor...s/#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)

#11 Tammsyn

Tammsyn

    Advanced Member

  • Member
  • 173 posts

Posted 07 September 2012 - 03:34 PM

well issue with yamis script seams to be fixed but if used along with forma 0153's atb script
http://cobbtocs.co.uk/wp/?p=73

then the actor uses draw but does not receive any magic units any help?

#12 Tammsyn

Tammsyn

    Advanced Member

  • Member
  • 173 posts

Posted 14 October 2012 - 03:35 AM

ok i got same error as sigma when using victor sants animated battle system
http://victorscripts...nimated-battle/
any idea on fix?

#13 silver-silvera

silver-silvera

    Newbie

  • Member
  • 2 posts

Posted 28 May 2014 - 01:01 PM

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...dit?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.



#14 silver-silvera

silver-silvera

    Newbie

  • Member
  • 2 posts

Posted 14 June 2014 - 10:22 PM

I would to say that I figured out the problem I was having. Beginner's mistake: I gave the actor the skill type but not the actual skill.






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users