Author Topic: Make an FC command!  (Read 10096 times)

Lenophis

  • Forum Overlord
  • *
  • Posts: 1,680
  • Gender: Male
  • I sad
    • View Profile
    • Slick Productions
Make an FC command!
« on: May 07, 2010, 09:54:54 PM »
Hooray interaction. This is your opportunity to make a conditional/counter attack for Pandora's Box. The premise is simple, provide some parameters to check for or against, and tell us what is a successful test. For example:

If current song is x, counter

If your suggestion is good enough, and if we don't already have it, we'll consider adding it. :happy: If you have questions or concerns, feel free to ask.

119 bugs fixed and counting.

Odbarc

  • Hell's Rider
  • *
  • Posts: 423
  • Gender: Male
  • FF6 obsessed
    • View Profile
    • Newage3.com, a text based web game RPG I Admin.
Re: Make an FC command!
« Reply #1 on: May 08, 2010, 12:32:48 PM »
If parties total damage suffered is greater than 39994; Cast Reflect on all party members, cast Ultima.

:P

JCE3000GT

  • Master of FF4
  • *
  • Posts: 1,425
  • Gender: Male
  • Vladof
    • View Profile
    • BlitzKrieg Innovations
Re: Make an FC command!
« Reply #2 on: May 08, 2010, 06:23:34 PM »
if [HERO] is [KO] 5 times in one battle cast [Life 3] on [all Party members]

or

If Fire + Ice + Bolt is cast by one person in succession 3 rounds in a row without the use of X-Magic, [Economizer] or any other MP reducing equipment cast the next stage up of those elements at once, or if it is the last stage [3] cast Meteor + Grand Train

or

If all party members cast Cure 3 on all party members in a row without enemy interruption have the game cast Regen + Safe + Shell + Float on the party



I could go on...

Lenophis

  • Forum Overlord
  • *
  • Posts: 1,680
  • Gender: Male
  • I sad
    • View Profile
    • Slick Productions
Re: Make an FC command!
« Reply #3 on: May 08, 2010, 06:49:41 PM »
I can see I wasn't clear enough. We don't need AI, we want input on AI commands. FC is a command, and FC is a reactionary command. When stuff does stuff, stuff reacts. We want input on what stuff would react to.

119 bugs fixed and counting.

JCE3000GT

  • Master of FF4
  • *
  • Posts: 1,425
  • Gender: Male
  • Vladof
    • View Profile
    • BlitzKrieg Innovations
Re: Make an FC command!
« Reply #4 on: May 08, 2010, 08:16:22 PM »
Ah I see, kind of like the Reflex bit on FF4?  If Holy cast on target react with Storm.  Is that what you mean? 

CurlyLover

  • Wing Raptor
  • *
  • Posts: 9
    • View Profile
Re: Make an FC command!
« Reply #5 on: May 08, 2010, 10:34:24 PM »
1 - If Monster #3 Item (rare) has been stolen
  • Set normal attack look --> unarmed (if it's a weapon)
  • Set att. power
  • Set defense (if it's a piece of armor), etc.

To reflect the loss of the item

So FC XX YY ZZ, XX is the number of the command, obviously. YY is the item stolen, 0 for common, anything else for rare. ZZ are the targets.

2 - If formation pack zoning is 54 then
  • Set Monster #4, #6 level to 22
  • Set Monster #4, #6 hidden status: Safe etc.


In order to reflect that certains areas have certains effects on monsters, eg. near Kefka's Tower, monsters are more powerful and use stronger magic or monsters sometimes attack themselves when they are near the Magic Tower (because the power of the tower makes you become crazy)...

3 - If current background is Grass Wob then

Can be used by "geomancers" enemies (like evil moogles).

4 - If Terra has command Summon available then
5 - If monster #5 is controlled then
6 - If esper Bahamut has been gotten then
7 - If game time hour is 58 then
8 - If 2 players are playing then
9 - If party contains 3 characters then
10 - If battle is in back row attack then  :edit:
11 - If ally #1 ATB is full then
12 - If allies are all in "ready" stance (everybody selected a command and is waiting to attack) then
13 - If Edgar is using Def Command then
14 - If ally #2, #4 is/are trying to run away then
15 - If Relm has Cat Hood equipped then
16 - If Gogo is in the sky, waiting to jump then

That's all I can think of! I think everything can fit into 3 or 4 bytes. Oh, and hi everybody by the way!

And, it's not an FC command but, may you please have Undead protected from Death has immunity against Phoenix Down, Elixir and Revivify?
« Last Edit: May 09, 2010, 09:32:36 AM by CurlyLover »

Imzogelmo

  • Ogopogo Aficianado
  • *
  • Posts: 241
  • Gender: Male
  • Ask me about my other job.
    • View Profile
    • NEPROMR
Re: Make an FC command!
« Reply #6 on: May 08, 2010, 11:01:19 PM »
Dude, you win a  :cookie:

And welcome to the forum!
5/31/16 - I have an assembly of the battle portion of C2, relocated to the F0 bank, which has both vanilla and patch code in my dropbox. I'll be updating it with additional patches as I have time. I will *not* be releasing it publicly, but ask me for the link and I'll share.

Lenophis

  • Forum Overlord
  • *
  • Posts: 1,680
  • Gender: Male
  • I sad
    • View Profile
    • Slick Productions
Re: Make an FC command!
« Reply #7 on: May 09, 2010, 04:48:38 AM »
Double :cookie:

Some of those are really good. :happy:

119 bugs fixed and counting.

CurlyLover

  • Wing Raptor
  • *
  • Posts: 9
    • View Profile
Re: Make an FC command!
« Reply #8 on: May 09, 2010, 09:46:19 AM »
Ummmm... It's :cookie: time!

I'm currently working (in my spare time, which is next to no time at all) on a optimization of the battle scripts. Up to date, I freed 536 bytes. It goes fast with all these "If these monsters are dead /Nothing/ End if". Plus, it fixes the "Flan stays for too long" bug.
« Last Edit: May 09, 2010, 04:31:11 PM by CurlyLover »

assassin

  • Bane of Retards
  • *
  • Posts: 1,019
  • space bears are not gentle!
    • View Profile
    • My Barren Webpage
Re: Make an FC command!
« Reply #9 on: May 10, 2010, 12:04:42 AM »
Quote
It goes fast with all these "If these monsters are dead /Nothing/ End if"

i think they put those above general counters, so that the general counters won't be executed when the monster took a fatal hit.  so i wouldn't remove those blocks in such circumstances.  any examples of which scripts you're performing this optimization on?

Lenophis

  • Forum Overlord
  • *
  • Posts: 1,680
  • Gender: Male
  • I sad
    • View Profile
    • Slick Productions
Re: Make an FC command!
« Reply #10 on: May 10, 2010, 04:48:59 AM »
Most, if not all of those could have used a check with FC 11 00 00, couldn't they?

119 bugs fixed and counting.

assassin

  • Bane of Retards
  • *
  • Posts: 1,019
  • space bears are not gentle!
    • View Profile
    • My Barren Webpage
Re: Make an FC command!
« Reply #11 on: May 10, 2010, 08:43:20 AM »
nope.  FC 05 is "Counter if damaged", while FC 11 is "Counter if target alive".  so the latter will counter non-damaging things like Cure spells.  the former will not (at least until after the enemy's been damaged; then, due to a bug, it will start to.  Master ZED has a fix for this silliness: http://masterzed.cavesofnarshe.com/ff3.html).  anyway, with or without the FC 05 bug, you'll still get at least some differing behavior between:

FC 12
do nothing
End if
FC 05
do counter
End if

and

FC 11
do counter
end if

Lenophis

  • Forum Overlord
  • *
  • Posts: 1,680
  • Gender: Male
  • I sad
    • View Profile
    • Slick Productions
Re: Make an FC command!
« Reply #12 on: May 10, 2010, 03:15:00 PM »
I never intended to replace the FC 05 00 00 command, but merely to add an FC 11 00 00 after FC 05 00 00. My apologies for not being clear.

119 bugs fixed and counting.

assassin

  • Bane of Retards
  • *
  • Posts: 1,019
  • space bears are not gentle!
    • View Profile
    • My Barren Webpage
Re: Make an FC command!
« Reply #13 on: May 10, 2010, 05:46:08 PM »
gar, my apologies for being dense.  :blush:  offhand, i think that should work, yes.

CurlyLover

  • Wing Raptor
  • *
  • Posts: 9
    • View Profile
Re: Make an FC command!
« Reply #14 on: May 12, 2010, 01:56:35 PM »
Ok, so I'll restart my optimization as soon as I have some time. (I work two full-time jobs). But, nonetheless adding FC 11 after FC 05 instead of having "FC 12, Nothing, then End if" still save one byte.

I started another topic in game modification station since it's more appropriate to discuss about that subject. Any news on the FC commands you want to create?
« Last Edit: May 12, 2010, 02:01:52 PM by CurlyLover »