Jump to content
Zebraoracle

Summoning script

Recommended Posts

Hey there, I'm trying to find a script, or at least a way to implement this, that will let my characters summon temporary battle companions that DON'T replace the party and still vanish at the end of battle, like a necromancer animating undead minions.

 

I've only found three or four scripts for this, the one I tried was Tsukihime's now unsupported script that technically did exactly what I wanted but I couldn't figure out why it wasn't setting up properly. Two others replace the party or actor, and I think a fourth was a Victor Script...

 

Any help would be greatly appreciated. :D

 

These are the scripts I've found:

 

Tsukihime's script: http://www.rpgmakervxace.net/topic/3934-battle-summon/

Aeon Party script: http://cobbtocs.co.uk/wp/?p=161

Guardian Summon script: http://forums.rpgmakerweb.com/index.php?/topic/1119-yse-guardian-summon/

Edited by Zebraoracle

Share this post


Link to post
Share on other sites

yami's guardian summon script only replaces actors if aeon party is true and ds/or summon is false

Share this post


Link to post
Share on other sites

Since I have found a script to use, should I make a new topic in the script help section or can I just post my question here?

 

 

Just in case: 

 

I have the script installed (including the required base module) -  http://yamiworld.wordpress.com/guardian-series/guardian-summon/

 

However, the summon skill is grayed out and won't let me use it. I have the actor and skill with the appropriate tags, so I'm not sure what the issue is.

Share this post


Link to post
Share on other sites

Yes I have. I've also set the scope to user and it fails and setting the scope to none just makes it not do anything, it just resets the character back to the start of their turn.

 

Edit: Okay, I've got it to bring up a menu that shows the summon list when I use the skill, but it doesn't actually do anything when I try to use it, it just resets the character back to the beginning of their turn.

Edited by Zebraoracle

Share this post


Link to post
Share on other sites

You can technically do what you want with Fomar's Aeon script, tho it takes a little bit of scripting knowledge. Here's a personalized rewrite of his script, made to be easier to use. It's not perfect yet tho it's close, I'm still trying to think of how to do certain improvements but overall it should be good to go.

 

https://drive.google.com/file/d/0BywhvOtY4_H9ME1QaHdMUlRyVzQ/edit?usp=sharing

Share this post


Link to post
Share on other sites

Selchar, I run into two issues with your script. When I have an open slot in my party and I summon, I get a "failed" message (I'm not sure what the scope of the skill should be so I set it to self, none just resets the character) and it summons the actor but then immediately crashes and gives me this error:

 

Script 'Ace Battle System' line 1628: TypeError occurred.

 

no implicit conversion from nil to integer

 

 

Here's the offending script bit:

  #--------------------------------------------------------------------------
  # alias method: input
  #--------------------------------------------------------------------------
  alias game_actor_input_abe input
  def input
    if @actions.nil?
      make_actions
      @action_input_index = 0
    end
    if @actions[@action_input_index].nil?
      @actions[@action_input_index] = Game_Action.new(self)
    end
    return game_actor_input_abe
  end
 
end # Game_Actor
 

 

 

When I have a full party and use the skill, the error I get is

 

Script 'Symphony Battle System' line 1727: NoMethodError occurred.

 

undefined method '[]' for nil:NilClass

 

 

Offending script is

  def set_default_position
    super
    return if @origin_x && @origin_y
    return unless $game_party.battle_members.include?(self)
    @origin_x = @screen_x = @destination_x = SYMPHONY::View::ACTORS_POSITION[index][0]
    @origin_y = @screen_y = @destination_y = SYMPHONY::View::ACTORS_POSITION[index][1]
    return unless emptyview?
    @origin_x = @screen_x = @destination_x = self.screen_x
    @origin_y = @screen_y = @destination_y = self.screen_y
  end

 

 

I'm guessing if I want to summon while having a full party, I need to bump up the in battle party size?

 

 

Tsukihime I'ma try your script out right now.

Share this post


Link to post
Share on other sites

Tsukihime, I get an error saying

 

Script 'Game_Interpreter' line 1411: NoMethodError occurred.

 

undefined method 'result' for nil:NilClass

 

 

I'm not entirely sure how to set yours up either, so this is probably user error on my part.

 

I have the state tagged with add_actor_summon(19)

That alone did nothing so I made a common event with that tag as well. Using the skill now results in the error.

I have the actual summon skill which adds the summon state and calls the script.

 

 

Sorry, I'm not really good at scripting.

Share this post


Link to post
Share on other sites

I haven't tested with symphony(yet), but would assume you're correct with the 2nd issue with the full party. *adds it in to my test project*

 

The scope of the skill can be anything you want, it runs the original use_item method then adds your summon afterwards, or at least it should...

 

Just tested, can't replicate the 1st issue, the 2nd issue is definitely party size... wait, Ace Battle Engine, must be Yanfly *rechecks* Nope, not getting that 1st error.

 

Edit: I'm only testing with Yanfly's batte engine, Symphony, and my Summon Script in that order.

 

Edit: Getting an error even after increasing the number of party members in symphony, but only when the summon is targeted(I assume), also the actor doesn't seem to appear... I'll have to think and test some more.

 

Edit: Solved with Yanfly's Party System, still haven't run into that 1st problem you mentioned tho.

 

Tested Tsukihime's script, you put add_actor_summon(19) in a scriptcall in a common event, and have your skill call the common event. Make sure a summon state with the ID exists, and don't add it manually. It works for me save for an issue I reported earlier(don't know if it's still there).

Edited by Selchar

Share this post


Link to post
Share on other sites

Tsukihime, I get an error saying

 

Script 'Game_Interpreter' line 1411: NoMethodError occurred.

 

undefined method 'result' for nil:NilClass

You can't add summons if you already have max number of members in the battle party.

I didn't consider that and have added a check for it.

Edited by Tsukihime

Share this post


Link to post
Share on other sites

For Tsukihime's script, I'm still getting the same error when the skill only has a common event call with the script in it, only one person in the party.

 

This is the script that's causing issues:

 

  def command_355
    script = @list[@index].parameters[0] + "\n"
    while next_event_code == 655
      @index += 1
      script += @list[@index].parameters[0] + "\n"
    end
    eval(script)        <
  end
end
 

 

Where the < is.

 

 

EDIT: Did either of y'all update your scripts in the links?

Edited by Zebraoracle

Share this post


Link to post
Share on other sites

I get the same error (and nearly had a heart attack because I thought I overwrote my original file lol).

 

Okay, so my summoned actor had a tag from another summoning script in its note section, I removed it and it worked!... until it crashed a second later for a new reason.

 

Script 'Ace Battle System' line 1628: TypeError occurred.

no implicit conversion from nil to integer

 

Script:

 

  alias game_actor_input_abe input
  def input
    if @actions.nil?
      make_actions
      @action_input_index = 0
    end
    if @actions[@action_input_index].nil?                                   <-- this one
      @actions[@action_input_index] = Game_Action.new(self)
    end
    return game_actor_input_abe
  end
 
end # Game_Actor

 

 

EDIT: I also removed the other summoning scripts in case there were issues and it just results in the same error.

 

EDIT 2: I noticed that the crash/error occurs when the summoned actor's turn comes up. I'm using Yanfly's Classical ATB and Lunatic ATB scripts as well, maybe that has something to do with it?

 

http://dl.dropboxusercontent.com/u/38072264/catb.txt

and... could not find the Lunatic script for some reason...

Edited by Zebraoracle

Share this post


Link to post
Share on other sites

Ah, and ATB, that might explain it. Time to go bug hunting... and finally encountering the bug. Looking into possible fixes... fix one, and 2 more bugs pop up to take it's place... Ok will continue looking into it. Well that was for my script (switches to Tsukihime mode)... and another error... Not sure if I can think of fixes, or in this case compatibility patches for either one. *keeps thinking*

Share this post


Link to post
Share on other sites

Okay, so Selchar, tried your script some more, when I have it set to <summon actor: x> I still get the same first error,

 

Script 'Ace Battle System' line 1628: TypeError occurred.

no implicit conversion from nil to integer

 

But when I set it to <summon aeon: x> I get this error:

 

Script 'ATB Battle System' line 710: TypeError occurred.

no implicit conversion from nil to integer

Share this post


Link to post
Share on other sites

I don't think I'll be able to solve this problem when it comes to Yami's ATB, even tried Fomars. My script and Tsukihime's both work with Victor's ATB, but as far as I know that doesn't work with Yanfly's Battle Engine.

Share this post


Link to post
Share on other sites

You need to create a demo I am not spending time to figure out how to set up all those scripts.

Share this post


Link to post
Share on other sites

Ah, alrighty. Thanks for trying! :D

 

EDIT: Tsukihime, would you prefer me to make a demo or just copy the scripts and send those to you?

Edited by Zebraoracle

Share this post


Link to post
Share on other sites

If you are still looking for a solution, I came up with a rather simple one that works for me. Simply Create skill (user focused) that calls a common event that adds an actor ally (i.e. Fire Elemental ) to the party, Set a Control Switches: Summoned = ON

Create a second common event that runs when Summoned Switch is on, and run as a parallel process that removes the actor.

What will happen is, as long as you have space in your party you can summon the actor (it will give death state to summon, but not kill off the summon till end of battle or if the summon is killed by enemy, but will remove the summon at end of battle). It works with both Yanfly's Battle Engine and Yami's Symphony (you have to set up where the summon is summoned to during battle in the Symphony Script just like all other party members.)

It's not pretty by any means( death state applied when summoned, and failed message pops up which can be fixed by yanfly's anti fail message script. ) , but effective..

Edited by Mojo907

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.

  • Recently Browsing   0 members

    No registered users viewing this page.

×
Top ArrowTop Arrow Highlighted