Author Topic: (no subject)  (Read 1847 times)

Ichigatsu

  • Member
  • *
  • Posts: 27
    • View Profile
(no subject)
« on: December 26, 2005, 10:51:27 AM »
I was woundering if womeone has the code to create reflect like from Final fantasy or something.
« Last Edit: December 31, 1969, 06:00:00 PM by Ichigatsu »
\"Von eve das ou la gyumi. Ihyudor, Laj zhisk ah traubem brriaal, von das ou ttach gyumi klruger ba set\".

(and yes, it\'s a made up language)

Ichigatsu

  • Member
  • *
  • Posts: 27
    • View Profile
(no subject)
« Reply #1 on: December 26, 2005, 10:56:10 AM »
I forgot, for the people who don't play FF. It's when an enemy cast a spell and the damaged is reflected back to the enemy.
« Last Edit: December 31, 1969, 06:00:00 PM by Ichigatsu »
\"Von eve das ou la gyumi. Ihyudor, Laj zhisk ah traubem brriaal, von das ou ttach gyumi klruger ba set\".

(and yes, it\'s a made up language)

Xorlak

  • Administrator
  • Member
  • *****
  • Posts: 2225
    • View Profile
    • http://darkagegames.net
(no subject)
« Reply #2 on: December 26, 2005, 02:56:34 PM »
Sounds like you'd need every spell to check whether the target has the reflect status.  Don't think you can do that with the default battle system.
« Last Edit: December 31, 1969, 06:00:00 PM by Xorlak »

RPG Domination

  • Member
  • *
  • Posts: 21
    • View Profile
    • http://xthost.info/BGames/Main.htm
(no subject)
« Reply #3 on: December 26, 2005, 06:24:45 PM »
You CAN do it with the default battle system but it would take a while. Like Xorlak said you would need to check if the character has reflect. Instead of doing damage to the target it will do damage to the source.
« Last Edit: December 31, 1969, 06:00:00 PM by RPG Domination »
Below is a link to my site hosted by XT Host.
<a href=\'http://xthost.info/BGames/Main.htm\' target=\'_blank\'>The Quest of The Century</a>

Dude Man

  • Member
  • *
  • Posts: 6393
    • View Profile
    • http://dmdgames.mysticsoftware.net//
(no subject)
« Reply #4 on: December 26, 2005, 09:24:19 PM »
Oh it could be done. I'd just involve a bunch of #ifs and such in every special move.

I'd probably be something like this...

Code: [Select]
if reflect!==1
(
givehp(-50, source)
)

if reflect!==0
(
givehp(-50, target)
)

I didn't test that, and I haven't touched RPG Code in months, but it think it?d work like that, unless they went and changed it on us.
« Last Edit: December 26, 2005, 09:24:51 PM by Dude Man »
~Welcome back mysticsoftware.net??
The Black Walkway

Trent

  • Member
  • *
  • Posts: 908
    • View Profile
(no subject)
« Reply #5 on: January 04, 2006, 06:50:19 PM »
No, no. Just reflect! won't work.

This is the program that will run when the status effect is set...

Code: [Select]
Reflect[SourceHandle()]! = 1
Really quite simple. As you may imagine, when the status effect goes away, this'll have to be set to zero, or killed with Kill(). Every reflectable special move would need to have this code in it, and not do any damage as far as what you see in the special editor is concerned:

Code: [Select]
Switch(Reflect[TargetHandle()]!)
{
   Case(0)
   {
      GiveHP(-100, target)
   }
   Case(1)
   {
      Wav("reflect.wav")
      GiveHP(-100, source)
   }
}

The wave file is just something I thought would be nice. A reflecting sound may be a good idea.

I do believe this code is correct, for the most part. I'll come back if it's not, or if I missed something.

This code is assuming you're using TK3. Are you using TK2? I can post alternate progs if you are.
« Last Edit: January 04, 2006, 06:52:48 PM by Trent »
--- Trent McPheron, Twilight in Zero

Avatar by Sophia Y. Hsu.

Ichigatsu

  • Member
  • *
  • Posts: 27
    • View Profile
(no subject)
« Reply #6 on: January 06, 2006, 09:43:57 PM »
Yes, I'm using TK3. Thanks everyone for the codes on reflect. I'm going to try them out after I'm done with all my homework.  ^__^V
« Last Edit: December 31, 1969, 06:00:00 PM by Ichigatsu »
\"Von eve das ou la gyumi. Ihyudor, Laj zhisk ah traubem brriaal, von das ou ttach gyumi klruger ba set\".

(and yes, it\'s a made up language)