[XP] Blizz-ABS

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

Previous topic - Next topic

Blizzard

Quote from: Lethal-Yarn on September 08, 2009, 04:08:12 pm
Okay, I amped up the enemy's line of sight and it works now.  But it kinda seem silly that I need to do a parallel process for every enemy (in maps where you can shoot from across the screen) just for the enemy to realize "oh hey, I'm hurt, I should try to kill that guy before he kills me".

If I don't set the parallel event (where if hp < max.hp, enemy is given a force attack command), the enemy just stands there like an idiot as I give him a ranged beatdown.


There's a way by using scripting to have only one single parallel process common event which does it all for every map. But it's a bit complicated.

Quote from: Lethal-Yarn on September 08, 2009, 04:08:12 pm
Also, can I change projectile speeds?


I didn't add that yet, but it's a planned feature for a future version.

@G_G: Just change Game_Actor#skill_can_use?. Your condition would pretty much be "If skill ID is X and conjuration skill less than Y, return false".
Check out our game brands:

Daygames
Game Night Games
Chugnar Games

Quote from: winkioI do not speak to bricks, either as individuals or in wall form.

Quote from: Barney StinsonWhen I get sad, I stop being sad and be awesome instead. True story.

G_G

September 09, 2009, 09:52:17 am #2441 Last Edit: September 09, 2009, 09:57:37 am by game_guy
@lethal: Yea I know I could take that way but than I'd have to make an event for every summon. Thats why.

@blizz: completely forgot about that xD

EDIT: That worked but I still need it to add very small amount of points to conjuration stat every time I use it. I dont want to event this so I figure I would edit the summon code.

Subsonic_Noise

Quote from: Blizzard on September 09, 2009, 07:29:22 am
Quote from: Lethal-Yarn on September 08, 2009, 04:08:12 pm
Also, can I change projectile speeds?


I didn't add that yet, but it's a planned feature for a future version.

*cough* The one from Star G works with the newest BlizzABS *cough*

Blizzard

Quote from: game_guy on September 09, 2009, 09:52:17 am
EDIT: That worked but I still need it to add very small amount of points to conjuration stat every time I use it. I dont want to event this so I figure I would edit the summon code.


Game_Battler#skill_effect
Check out our game brands:

Daygames
Game Night Games
Chugnar Games

Quote from: winkioI do not speak to bricks, either as individuals or in wall form.

Quote from: Barney StinsonWhen I get sad, I stop being sad and be awesome instead. True story.

richard6891

i couldnt find how to remove the ai behavor and ai trigger in the forum, but just went into the blizz-abs script part two and removed the options for behavor, trigger, and cancle.  i game tested it and had no problem

Spoiler: ShowHide
 CommandsAIBehavior = ['Behavior', 'Next', 'Previous', 'Exit']
   CommandsAITrigger = ['Triggers', 'Next', 'Previous', 'Exit']
   CommandsTrigger = ['Edit', 'Add new', 'Delete', 'Copy', 'Move up',
       'Move down', 'Exit']
   CommandsPreMenu = ['Menu', 'Hotkeys', 'AI Behavior', 'AI Triggers', 'Cancel']
   CommandsEdit = ['Activator', 'Condition', 'Comparison', 'Value',
       'Action Type', 'Action', 'Target Type', 'Done', 'Cancel']
       
   WORDAll = 'All'
   WORDState = 'State'
   WORDTarget = 'Target'
   WORDNormalState = 'Normal'
   WORDLocation = 'Location'
   WORDAggressive = 'Aggressive'
   WORDPassive = 'Passive'
   WORDOffensive = 'Offensive'
   WORDDefensive = 'Defensive'
   
   TRGActivators = ['Leader', 'Ally', 'Self', 'Enemy', 'Probability']
   TRGTargets = ['Default', 'Activator']
   TRGComparators = ['==', '!=', '>', '>=', '<', '<=']
   TRGLocations = ['Closest', 'Farthest']
   

i removed all but    CommandsPreMenu = ['Menu', 'Hotkeys']

do you know of any problems this may cause that i may have over looked?

Blizzard

You need to edit the Scene_Menu part of Blizz-ABS. It's the part with the case-when branching. You pretty much just need to delete the part that calls the AI Trigger scene and decrease the indices in the case branches below.
Check out our game brands:

Daygames
Game Night Games
Chugnar Games

Quote from: winkioI do not speak to bricks, either as individuals or in wall form.

Quote from: Barney StinsonWhen I get sad, I stop being sad and be awesome instead. True story.

G_G

Quote from: Blizzard on September 09, 2009, 12:20:43 pm
Quote from: game_guy on September 09, 2009, 09:52:17 am
EDIT: That worked but I still need it to add very small amount of points to conjuration stat every time I use it. I dont want to event this so I figure I would edit the summon code.


Game_Battler#skill_effect


Okay then how do I check to see if its a summon skill?

Blizzard

BlizzABS::Skills.type(skill.id)[0] == BlizzABS::SUMMON
Check out our game brands:

Daygames
Game Night Games
Chugnar Games

Quote from: winkioI do not speak to bricks, either as individuals or in wall form.

Quote from: Barney StinsonWhen I get sad, I stop being sad and be awesome instead. True story.

G_G

this is what I have.
class Game_Battler
  alias gg_skill_effect skill_effect
  def skill_effect(user, skill)
    if BlizzABS::Skills.type(skill.id)[0] == BlizzABS::SUMMON
      user.summon += 1
    end
    gg_skill_effect(user, skill)
  end
end


And its not adding to the summon at all. I have the summon showing in the status screen and it just shows 1 which was the default you start with.

Blizzard

Rrrrrrright, it's a summon skill. It needs to go into Map_Battler instead. Also, your code could cause bugs beyond comprehension because you're not returning the result value properly.

class Map_Battler
  alias skill_effect_summon_later skill_effect
  def skill_effect(character, _battler, skill)
    result = skill_effect_summon_later(character, _battler, skill)
    if result
      if BlizzABS::Skills.type(skill.id)[0] == BlizzABS::SUMMON
        user.summon += 1
      end
    end
    return result
  end
end

Check out our game brands:

Daygames
Game Night Games
Chugnar Games

Quote from: winkioI do not speak to bricks, either as individuals or in wall form.

Quote from: Barney StinsonWhen I get sad, I stop being sad and be awesome instead. True story.

G_G

September 09, 2009, 05:45:39 pm #2450 Last Edit: September 09, 2009, 05:46:58 pm by game_guy
thanks blizzy works like a charm :) *lv's up*

and is it possible for summons to summon summons?
Like I summon a Queen Spider and it can summon Spiderlings. I summoned a summon with only summon skills and all it would do is attack.

EDIT: Nevermind it doesnt work still. It still says Summon is 1 and it wont change.

winkio

change user to something else, I think it should be character.  If you change parameter names, change them all the way through.

Blizzard

September 10, 2009, 03:36:35 am #2452 Last Edit: September 10, 2009, 03:43:06 am by Blizzard
Yeah, it should be _battler. I'm actually surprised that it didn't crash since user isn't defined. Are you sure that the skill is executed properly? It seems to me that skill_effect doesn't return true.

And yes, summons can summon.
Check out our game brands:

Daygames
Game Night Games
Chugnar Games

Quote from: winkioI do not speak to bricks, either as individuals or in wall form.

Quote from: Barney StinsonWhen I get sad, I stop being sad and be awesome instead. True story.

OracleGames

Hey blizz did you erased or modified a part from your script (part3) in last updates called "hud-class"..
i made a little addition to make hud dissapear in some parts of the game using call script so you could see a nice intro whitout noticing your characters level,HP and SP but now im not able to find that part of the script... :O.o:
my scripting knowledge is limited so i need some help.

Blizzard

Not that I know. :O.o: Press CTRL+SHIFT+F and type in "class Hud". Or you could simply turn off the HUD with a script call.
Check out our game brands:

Daygames
Game Night Games
Chugnar Games

Quote from: winkioI do not speak to bricks, either as individuals or in wall form.

Quote from: Barney StinsonWhen I get sad, I stop being sad and be awesome instead. True story.

Holyrapid

I´m not sure, but it would seem like STCMS is doing something with BABS, since the pre-menu or mini-menu won´t appear...
How do i fix this?

Blizzard

Check out our game brands:

Daygames
Game Night Games
Chugnar Games

Quote from: winkioI do not speak to bricks, either as individuals or in wall form.

Quote from: Barney StinsonWhen I get sad, I stop being sad and be awesome instead. True story.

G_G

Quote from: Blizzard on September 10, 2009, 03:36:35 am
Yeah, it should be _battler. I'm actually surprised that it didn't crash since user isn't defined. Are you sure that the skill is executed properly? It seems to me that skill_effect doesn't return true.

And yes, summons can summon.

I changed it to _battler and character still nothing. The skills working fine because it is summoning the rat.

Blizzard

Quote from: Blizzard on September 10, 2009, 03:36:35 am
It seems to me that skill_effect doesn't return true.


So find out why.
Check out our game brands:

Daygames
Game Night Games
Chugnar Games

Quote from: winkioI do not speak to bricks, either as individuals or in wall form.

Quote from: Barney StinsonWhen I get sad, I stop being sad and be awesome instead. True story.

Makasu

Okay now I'm not to sure if this is a problem on my behalf but I can't possibly figure out what I'm doing wrong but whenever I try to use a timed item and I have it set to explode I get the following error:

'Script Blizz ABS pt 3' line 3895: NoMethodError occured.
undefined method 'util' for #<BlizzABS::Processor:0x7ed18>


which in term takes me to line 3895 where the code is:

consider_all = $BlizzABS.util.get_scope_data(object.scope)[2]
    end


Again I'm not to sure if its something I'm not doing right or whatever. I think it might be because I don't have the scope set to target one enemy or all or whatever the case may be. I'll play around for a bit and see if I can work around it but any assistance would be and is greatly appreciated.
Dead on Arrival is the name of my project. Topic thread coming sooner or later.

Me on deviantart.com
My talents: ShowHide

  • Spriting
  • drawing
  • html coding
  • website design
  • skating
             PM now for a personal quote!
[[Will draw character art for you for $$$ or scripts!]]