[XP] Blizz-ABS

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

Previous topic - Next topic

wolfspirit

Quote from: Blizzard on January 01, 2010, 08:18:26 am
Sure.

@Sacred Nym: Turn off the caterpillar and use normal events. That's the most convenient way.

Ok, thanks! :)

Blizzard

January 01, 2010, 03:09:28 pm #2881 Last Edit: January 01, 2010, 03:10:40 pm by Blizzard
Actually it can be done even simpler that editing Game_Battler#attack_effect.

class Game_Actor
 alias base_atk_barehanded_later base_atk
 def base_atk
   result = base_atk_barehanded_later
   return (result == 0 ? 100 : result)
 end
end


Change the 100 to any value you want. This will be the attack power value when having no weapon or having a weapon that has attack power equal to 0.
Check out Daygames and our games:

King of Booze 2      King of Booze: Never Ever
Drinking Game for Android      Never have I ever for Android
Drinking Game for iOS      Never have I ever for iOS


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.

SRS Siege

January 02, 2010, 01:34:59 am #2882 Last Edit: January 02, 2010, 02:04:39 am by SRS Siege
Quote1. Corpses behave like normal events in that matter. You'll need a script edit for that.

How do I edit the script to fix it? (Theres nothing in the Blizz config that effects whether or not corpses are on top or not and I'm not good with manually editing scripts)

Also, is there anyway to put an event aside for a set amount of time? Like the wait... option but not pausing the game, just waiting the certain amount of time until the event is continued to be executed.

Aqua

Wait doesn't pause the game...
It does exactly what you want...
Waits a certain amount of time (frames) before doing something else...

SRS Siege

January 02, 2010, 02:17:16 am #2884 Last Edit: January 02, 2010, 02:30:15 am by SRS Siege
But you cannot move, attack, etc. while the event is waiting for set amount of frames. I'm looking for something like what the summon skill does, where it does an action (summons a monsters) and the game continues like normal for a set amount of time and once the time is up another action is taken (erasing the monster).

I dont know if it would help to know specifically what I'm trying to do or not but...
What I'm trying to do is add shapeshifting to my game, not summoning.  When the player uses the skill a common event removes the actor (saving exp in a variable first) and then adding the monster actor (then adding the exp variable to exp to keep level).  This just replaces the actor with the monster that they shapeshifted into, changing the stats, skills, and appearance.  What I want is to have the player change back into the original appearance after a set amount of time but still be able to play as the monster like normal while waiting.

wolfspirit

Quote from: Blizzard on January 01, 2010, 03:09:28 pm
Actually it can be done even simpler that editing Game_Battler#attack_effect.

class Game_Actor
 alias base_atk_barehanded_later base_atk
 def base_atk
   result = base_atk_barehanded_later
   return (result == 0 ? 100 : result)
 end
end


Change the 100 to any value you want. This will be the attack power value when having no weapon or having a weapon that has attack power equal to 0.

Great, so where do I put the (piece of the) script?

Blizzard

Quote from: SRS Siege on January 02, 2010, 01:34:59 am
Quote1. Corpses behave like normal events in that matter. You'll need a script edit for that.

How do I edit the script to fix it? (Theres nothing in the Blizz config that effects whether or not corpses are on top or not and I'm not good with manually editing scripts)


You need a script that applies the same Z order of the sprites to specific events like events with tile graphics rather than using the normal way to determine the Z order. As I said, it's a script edit which means you can't configure it using Blizz-ABS config. It's not an option of the system.

Quote from: SRS Siege on January 02, 2010, 02:17:16 am
What I'm trying to do is add shapeshifting to my game


*points to Chaos Rage Limit System (CRLS) and the Blizz-ABS plugin that makes CRLS work with Blizz-ABS*

Quote from: wolfspirit on January 02, 2010, 08:19:59 am
Great, so where do I put the (piece of the) script?


Right under the default scripts and if you use it, under SDK.
Check out Daygames and our games:

King of Booze 2      King of Booze: Never Ever
Drinking Game for Android      Never have I ever for Android
Drinking Game for iOS      Never have I ever for iOS


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.

SRS Siege

Quote*points to Chaos Rage Limit System (CRLS) and the Blizz-ABS plugin that makes CRLS work with Blizz-ABS*

Ok... I've got CRLS to work with my game finally, but I dont understand how it helps me.  I searched the forum on it and found that in order to do shapeshifting or transforming I have to do something with states?  I could use states but after the actor transforms back how am I to add the experience that was gained during transformation back to the actors original experience without using a common event and when I use a common event I run into the same problem of trying to make it so that it waits a certain amount of time (while the actor is transformed) before continuing the common event.

I think someone else ran into a problem like this in the CRLS forum and you told them that something this specific would have to be done through editing the scripts myself (like for the corpses not being on top) but I have no idea how to edit scripts. I dont have a problem trying to learn though, is there any website you recommend for teaching someone how to script?

Aqua

Are you using parallel process or autorun for your events...?

Parallel process is the one you want for this.

Blizzard

January 02, 2010, 03:27:54 pm #2889 Last Edit: January 02, 2010, 03:30:18 pm by Blizzard
Quote from: SRS Siege on January 02, 2010, 02:24:48 pm
Quote*points to Chaos Rage Limit System (CRLS) and the Blizz-ABS plugin that makes CRLS work with Blizz-ABS*

Ok... I've got CRLS to work with my game finally, but I dont understand how it helps me.  I searched the forum on it and found that in order to do shapeshifting or transforming I have to do something with states?  I could use states but after the actor transforms back how am I to add the experience that was gained during transformation back to the actors original experience without using a common event and when I use a common event I run into the same problem of trying to make it so that it waits a certain amount of time (while the actor is transformed) before continuing the common event.


That's simple.

Code: Event pseudocode

if some_actor has Chaos state
 variable = transformed actor's EXP
 switch = on
else
 if switch == on
   variable = transformed actor's EXP - variable
   some_actor EXP += variable
   switch == off
 end
end


You need a switch and variable for each actor that can transform.
As for the transformation, all you need to do is to set the state ID in the script and that's it. The script does the rest.

Quote from: SRS Siege on January 02, 2010, 02:24:48 pm
I think someone else ran into a problem like this in the CRLS forum and you told them that something this specific would have to be done through editing the scripts myself (like for the corpses not being on top) but I have no idea how to edit scripts. I dont have a problem trying to learn though, is there any website you recommend for teaching someone how to script?


There's a stickied topic with links in the main scripts section. But you don't need to learn scripting just for this. Here you go:

class Game_Character
 alias screen_z_tile_mod_later screen_z
 def screen_z(height = 0)
   result = screen_z_tile_mod_later(height)
   result -= 31 if self.dropped? && height > 32
   return result
 end
end


Put it below Blizz-ABS and it will make all corpses act like they have tile event graphics.
Check out Daygames and our games:

King of Booze 2      King of Booze: Never Ever
Drinking Game for Android      Never have I ever for Android
Drinking Game for iOS      Never have I ever for iOS


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.

SRS Siege

January 02, 2010, 03:40:11 pm #2890 Last Edit: January 02, 2010, 05:15:49 pm by SRS Siege
 :D Thank you so much

To edit the variables / switches do i just put _ followed by the number? (ie. replace "variable" with "variable_14" if it was variable 14 that represented the exp)

EDIT: Ooooooooooooooohhh... I thought it was a script that I had to imput  :stupid:

Blizzard

January 02, 2010, 04:12:23 pm #2891 Last Edit: January 02, 2010, 04:13:36 pm by Blizzard
No, that's event code.



EDIT: Eh, should be "if Basil is [Chaos] inflicted". Generally I assume that Basil is the Chaos Drive into which Arshes turns into.
Check out Daygames and our games:

King of Booze 2      King of Booze: Never Ever
Drinking Game for Android      Never have I ever for Android
Drinking Game for iOS      Never have I ever for iOS


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.

coy13

Does Blizz-ABS support a mouse script to create games similar to Diablo and other computer action rpgs?

Blizzard

January 02, 2010, 04:52:39 pm #2893 Last Edit: January 02, 2010, 04:54:02 pm by Blizzard
Not yet. I'm going to make my Mouse Controller work with Blizz-ABS during this month sometime. It's fairly simple. All I have to do is "if clicked there, walk there. If there's also an enemy, attack."
Check out Daygames and our games:

King of Booze 2      King of Booze: Never Ever
Drinking Game for Android      Never have I ever for Android
Drinking Game for iOS      Never have I ever for iOS


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.

coy13


SRS Siege

Ok I'm still a little lost...(on how to make the transformation itself with CRLS)
What do I do if say:
Player= Actor_001
Thing I want to change into= Actor_002
Choas State= State_001
Skill used to transform= Skill_001

If I had all this what would I change in the CRLS script to make it work? (I read all the comments in the CRLS script but... :???: )
And how is the experience save common event you showed me linked to the transformation? (Does the skill run the common event or is it throught the CRLS script?)

Blizzard

It's all in the script instructions. If you have trouble, I recommende that you try out the demo for CRLS. It's a demo with the default battle system, but the same configuration applies if you use it with Blizz-ABS.
Common events run on the map. I made the common event a parallel process so it's constantly running in the background during the map scene.
Check out Daygames and our games:

King of Booze 2      King of Booze: Never Ever
Drinking Game for Android      Never have I ever for Android
Drinking Game for iOS      Never have I ever for iOS


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.

Aqua

SRS, do you know the difference between "Parallel Process" and "Auto-Run?"
If you don't, I suggest you'll learn it since it could make all the difference XD

SRS Siege

January 02, 2010, 07:09:09 pm #2898 Last Edit: January 02, 2010, 07:18:53 pm by SRS Siege
Yeah I have that demo downloaded without Blizz-ABS and I'm trying to understand what it shows, kind of hard to understand when there are multiple skills, weapons, armors, states, etc. that have nothing to do with it.

QuoteSRS, do you know the difference between "Parallel Process" and "Auto-Run?"
If you don't, I suggest you'll learn it since it could make all the difference XD

I'm not exactly sure but if I had to guess I'd say that they both are run/checked all of the time, but autorun stops the game and parallel process waits for a condition until the event is run? I've always stayed away from parallel process, I always try to find ways to use autorun...

EDIT: Hahahaha!  :D It works!
I was trying to connect a regular skill to the transformation I overlooked the:
#   To add a new Chaos Drive to a characer use the "Call Script" event command
#   and use following syntax:
#
#     $game_actors[ID].learn_cd(CD)

Sacred Nym

Quote from: SRS Siege on January 02, 2010, 07:09:09 pm
I'm not exactly sure but if I had to guess I'd say that they both are run/checked all of the time, but autorun stops the game and parallel process waits for a condition until the event is run? I've always stayed away from parallel process, I always try to find ways to use autorun...


Parallel Process means the event runs in the background. It's called mostly similar (identical?) to Auto-Run, but the player can still do other things, rather than having the event freeze the action.
Quote昨日の自分に「さようなら」
Say "Goodbye" to who you were yesterday.