[XP] Blizz-ABS

Started by Blizzard, January 09, 2008, 08:21:56 am

Previous topic - Next topic

Skwig

Spoiler: ShowHide

Here is the picture of everything that could be related..
The ability setup seems pretty " default" but that is because i want the character to swirl around itself in the range of the sword and deal damage...

KK20

Copied your windows, still works for me. I'm doing these tests on a clean BABS project (no other scripts but BABS).

From the sounds of it, you want something similar to Link's Spin Attack in Zelda games. I remember using events to do something like that, but that was a long time ago.

Other Projects
RPG Maker XP Ace  Upgrade RMXP to RMVXA performance!
XPA Tilemap  Tilemap rewrite with many features, including custom resolution!

Nintendo Switch Friend Code: 8310-1917-5318
Discord: KK20 Tyler#8901

Join the CP Discord Server!

Stray

I still have the problem with touching an event.
Once I touch it, I can't touch it again.
I'm very grateful to you all for your great help.

KK20

March 25, 2012, 12:26:30 am #4683 Last Edit: March 25, 2012, 02:51:35 am by KK20
@Skwig
Assuming you want the Link Spin Attack:
Copy this script and paste below BABS.
Coding Part: ShowHide
#==============================================================================
# K K 2 0     S C R I P T     E D I T S
#==============================================================================
#==============================================================================
# Script calls of switch changes now behaves as if using evented switch changes
#==============================================================================
class Game_Switches
  def []=(switch_id, value)
    if switch_id <= 5000
      @data[switch_id] = value
    end
    $game_map.need_refresh = true
  end
end
#==============================================================================
# Faulty handling of the evented "Script" call
#==============================================================================
class Interpreter
  def command_355
    old_index = @index
    # Set first line to script
    script = @list[@index].parameters[0] + "\n"
    # Loop
    loop do
      # If next event command is second line of script or after
      if @list[@index+1].code == 655
        # Add second line or after to script
        script += @list[@index+1].parameters[0] + "\n"
      # If event command is not second line or after
      else
        # Abort loop
        break
      end
      # Advance index
      @index += 1
    end
    # Evaluation
    result = eval(script)
    # If return value is false
    if result == false and old_index != @index
      # End
      return false
    end
    # Continue
    return true
  end
end
#==============================================================================
# For sake of making this easier to call
#==============================================================================
class Map_Battler < Game_Character
  alias call_babs_orig_use_skill use_skill
  def use_skill(skill, forced = false)
    if skill.is_a?(RPG::Skill)
      call_babs_orig_use_skill(skill, forced)
    else
      call_babs_orig_use_skill($data_skills[skill], forced)
    end
  end
end


Now recreate something like this:
Eventing Part: ShowHide


@Stray
Reading back, I noticed that you tried removing the line "raise @trigger.to_s". I tried doing that in a new BABS game and it worked for me. As for the "Once I touch it, I can't touch it again", I have no idea what could be causing that. I could not get that error in my project. Could be a different script causing the problem. Try to explain your problem more.

Other Projects
RPG Maker XP Ace  Upgrade RMXP to RMVXA performance!
XPA Tilemap  Tilemap rewrite with many features, including custom resolution!

Nintendo Switch Friend Code: 8310-1917-5318
Discord: KK20 Tyler#8901

Join the CP Discord Server!

Skwig

@KK20: I messed around with the spell itself and it suddently started working.. now the issue is that i have to pick the enemy to target, even tho it's to all enemies in range
any idea how to remove that?
If not, I'll just do the thing you posted :3

KK20

I think there's a script around here that removes the whole selection process. Smart/Auto-targetting or something like that.

Other Projects
RPG Maker XP Ace  Upgrade RMXP to RMVXA performance!
XPA Tilemap  Tilemap rewrite with many features, including custom resolution!

Nintendo Switch Friend Code: 8310-1917-5318
Discord: KK20 Tyler#8901

Join the CP Discord Server!

Skwig

@KK20 - thanks, helped a lot.

Another random question for everyone: Is there a way to make enemies slower when they have a certain state applied on them?
If that's not possible, this is a general RMXP question: Is there a way to make weapons and abilities have a CHANCE to apply a certain state, so it won't be a 100% chance like it is now?
An example in the spoiler
Spoiler: ShowHide
I am making frost magic, so it either slows enemies down, or stuns it (100% stun is overpowered)

Thanks

Stray

As example: A simple event which is activated by touching:
Spoiler: ShowHide

Once I touched it, it doesn't work anymore. The sound is not played again. Then, after 20-30 seconds, I can touch it again and the sound is played.
But there are everytime these 20-30 seconds. This shouldn't be.
I'm very grateful to you all for your great help.

KK20

Quote from: Blizz ABS User Manual2.2.5. Event Execution Lock
This option allows you to specify the time that needs to pass before events can be triggered again. This is necessary due to repeated execution on touch when using Pixel Movement.

In the script, you must set the option EVENT_LOCK to the number of seconds that you want.

You can find it under the "Basic Configuration" tab. If that's not the problem, then one of your other scripts is causing the issue.

Other Projects
RPG Maker XP Ace  Upgrade RMXP to RMVXA performance!
XPA Tilemap  Tilemap rewrite with many features, including custom resolution!

Nintendo Switch Friend Code: 8310-1917-5318
Discord: KK20 Tyler#8901

Join the CP Discord Server!

Boba Fett Link

Is that event by chance an enemy? If so then you need to add a comment that says the follow at the top of the event's code:

Trigger:PlayerTouch
This post will self-destruct in 30 seconds.

Stray

March 28, 2012, 08:37:55 am #4690 Last Edit: April 06, 2012, 03:30:12 pm by Stray
You were right. The execution Lock was the issue.

EDIT:
Next problem:
I use the "Hermes script" for the messages.
Explanation: ShowHide

The first time the window appears above the hero. That's how it should be.
But after the first message command, when I use the same message again,
it doesn't work one more time just like before. The game shuts down and this confusing error emerges.

"\p" - "...the containing message will be opened as a speech-bubble-esque pop-up over a defined character"
[ 0 ] means it will appear above the hero.

This issue exists only with the ABS in the script database. That's why I post it here.
I'm very grateful to you all for your great help.

Skwig

Hello, I was just wondering if I could make a spell that will shoot a projectile in every direction... Tried to make it with combos
>Turn UP
>Use ability X
>Turn left
>Use ability X
and so on.. but it won't do anything so i am looking for a way to make that happen
Thanks

ShadowPierce

Maybe you need to put "Wait: 1 frame"s in between... I also suggest using "Turn 90 degrees" instead of "Turn DIRECTION", it just feels better and makes it look easier... :P

Spoiler: ShowHide
Quote from: Blizzard on February 16, 2011, 03:44:48 pmThere you go. It's the proof that SDK is crap. It's incompatible with itself.
3DS Friend Code: ShowHide
1161-0627-9890

Boba Fett Link

Quote from: Skwig on April 02, 2012, 11:38:01 am
Hello, I was just wondering if I could make a spell that will shoot a projectile in every direction... Tried to make it with combos
>Turn UP
>Use ability X
>Turn left
>Use ability X
and so on.. but it won't do anything so i am looking for a way to make that happen
Thanks


I know Winkio did something like that in this example game:
http://forum.chaos-project.com/index.php/topic,8792.0.html
This post will self-destruct in 30 seconds.

Skwig

Quote from: Boba Fett Link on April 02, 2012, 02:15:05 pm
Quote from: Skwig on April 02, 2012, 11:38:01 am
Hello, I was just wondering if I could make a spell that will shoot a projectile in every direction... Tried to make it with combos
>Turn UP
>Use ability X
>Turn left
>Use ability X
and so on.. but it won't do anything so i am looking for a way to make that happen
Thanks


I know Winkio did something like that in this example game:
http://forum.chaos-project.com/index.php/topic,8792.0.html

not really.. i downloaded the game, checked out the spells-> nothing, checked the combos -> none

winkio

It's setup in an event.  You probably need to use force action script calls to get it to ignore the penalty of each use.

Skwig

Quote from: winkio on April 03, 2012, 01:11:03 pm
It's setup in an event.  You probably need to use force action script calls to get it to ignore the penalty of each use.

I'm either stupid or blind or both because I can't seem to find the event.. Not in common events, not on maps, not anywhere..

Boba Fett Link

Its the ice boss...look at his move route.
This post will self-destruct in 30 seconds.

Skwig

Last problem thing..
I copied it, studied, adapted it
So I came out with a spell that triggers a common event that will make me spin and cast those spells, but the problem is this
$BlizzABS.actor_force_action(1, ENEMIES, 0, SKILL, 4) won't just work
It doesnt give an error, makes me spin but no spells come out.. i think the way i wrote it is wrong
The spell ID is 4 and the ID of player is 1, it should shoot at enemies
Thanks.
(I'm still making the 4 projectile thing)

winkio

What do you mean by "the ID of the player is 1?"  try:

$BlizzABS.actor_force_action(0, ENEMIES, 0, SKILL, 4)