collapse

Author Topic: Defense boost when up against a certain character..  (Read 712 times)

0 Members and 1 Guest are viewing this topic.

Offline Saohc

  • Initiate
  • **
  • Posts: 65
  • Country: United States us
  • Last Login:August 23, 2014, 11:51:42 AM
    • Email
Defense boost when up against a certain character..
« on: March 15, 2010, 11:44:53 PM »
I'm still working on my full game and I'm trying to make it where if one of my characters(LucasX3(Dark) encounters a certain character,the character(LucasX3(Dark) gets a defense boost..

It's for a full game I'm making, can someone help me?



Offline ATiC3

  • Cryomancer
  • MUGEN Content Architect
  • *****
  • Posts: 4643
  • Country: United States us
  • Last Login:February 04, 2024, 12:00:37 AM
  • "Why not fight for Earthrealm?"
    • My Creations
Re: Defense boost when up against a certain character..
« Reply #1 on: March 16, 2010, 01:50:38 AM »
I know you can make a special taunt for when meeting certain characters... but I don't know about... defense boosts... I think what you would have to do is make a code for when you meet a certain character... your health percentage increases... increasing defense somewhat... Idk the code though...
 

Offline MirageAtoli

  • Infinity Faithful
  • ****
  • Posts: 584
  • Last Login:May 13, 2011, 03:25:23 AM
  • Oh, my Paws and Whiskers!
Re: Defense boost when up against a certain character..
« Reply #2 on: March 16, 2010, 01:55:01 AM »
You could have your attacks deal less damage, depending on who you opponent is. That wont work in simul though.

Another option, is to have every attack send the opponent into a custom state that detects which character he is, and deals himself extra damage accordingly.

Offline Fallen_Angel

  • Global Moderator (out of the office)
  • *****
  • Posts: 1358
  • Last Login:July 04, 2012, 03:11:05 PM
    • Email
Re: Defense boost when up against a certain character..
« Reply #3 on: March 17, 2010, 12:03:50 AM »
What Mirage atoli says is correct, you can simulate having a bigger defense, by reducing the enemy attack....to fix the simul mode error, there is a trigger named enemynear...let me put an example

[State -2, VarSet]   
type = VarSet
trigger1 = enemynear,name ="kfm"
var(15)=1

if you do it like in the example, setting a  variable on statedef -2.....in the hitdef use these

damage =19-Var(15)  ; so you will reduce the damage by 1 (if you change the valjue on the var, the damage will be reduced by that amount)


sig made by shullbocka

Offline MirageAtoli

  • Infinity Faithful
  • ****
  • Posts: 584
  • Last Login:May 13, 2011, 03:25:23 AM
  • Oh, my Paws and Whiskers!
Re: Defense boost when up against a certain character..
« Reply #4 on: March 17, 2010, 04:30:25 PM »
What Mirage atoli says is correct, you can simulate having a bigger defense, by reducing the enemy attack....to fix the simul mode error, there is a trigger named enemynear...let me put an example

[State -2, VarSet]   
type = VarSet
trigger1 = enemynear,name ="kfm"
var(15)=1

if you do it like in the example, setting a  variable on statedef -2.....in the hitdef use these

damage =19-Var(15)  ; so you will reduce the damage by 1 (if you change the valjue on the var, the damage will be reduced by that amount)

I don't think that will work if hitting two enemies simultaneously. In this case if you use an attack that hits multiple players (say a beam) the opponent who shouldn't have damage resistance will take less damage if the other damage-resisting opponent is closer.

It may be better to have every move cause a custom state (that appears to be a regular hitstate) that deals damage.

Offline Fallen_Angel

  • Global Moderator (out of the office)
  • *****
  • Posts: 1358
  • Last Login:July 04, 2012, 03:11:05 PM
    • Email
Re: Defense boost when up against a certain character..
« Reply #5 on: March 18, 2010, 11:36:20 AM »
If you make a custom state for evey attack, its not an efficient code, because, you will have to create atleast 15 custom states, and you will override the defense parameter (because you will be directly manipulate the health of the opponent, so you will make chars that doenst have a standard defense ,not work properly)

If you are going to use a custom state for each move...you could simplify it, with just one custom state....if you create a helper on each hit  statedef (you will only need one, and modify the id for each attack), in the custom state, you can modify every action, relating it to the helper id (using trigerall = enemy,numhelper(id)=1).

I dont know if these could work (In theory it should, but I havent tested it), to solve the damage issue..... you could bind a helper (these helper will be created as soon as the beam is launched, its going to be a child helper) to the enemy that will get the defense boost, and when the beam (parent helper), almost hit the characte, the child helper will change to an attack state (trigger1=parentdist x =1 &&parentdist y=[-2,2] && enemy,stateno !=guardstate) ...these attack state, will send the enemy to a custom state.


But there is still an issue, the hitdef also makes damage when the enemy is in a guardstate....and using customstates, doesnt resolve these issue.....and the enemynear, variable also resolve these part.


sig made by shullbocka

Tags:
 


* IMT Facebook

Help us by Donating!

IMT Discord

Join us at our Discord! Click the image below!

* IMT Shoutbox

Sorry, this shoutbox does not exist.

* Recent Posts

D2TD VS Showcase Thread by D2TD
[May 12, 2024, 10:20:11 AM]


Classic VS : Athena by ELECTRO
[May 10, 2024, 02:44:09 PM]


Ballroom Hallway (1.1 Only/AIGS) by Vegaz by LightFlare
[May 09, 2024, 11:53:48 AM]


Neon Light Force Demo by kyoman
[May 08, 2024, 12:50:05 PM]


Lasombra's IKEMEN Go Interactive Stages' WIP Topic and Releases by Lasombra Demon
[April 21, 2024, 12:09:20 PM]


Ultimate E. Honda + stage by ELECTRO
[April 18, 2024, 09:47:24 PM]


Sunset Beach (1.1 Only/AIGS) by Vegaz by LightFlare
[April 16, 2024, 06:55:00 PM]


Wonder Twins 2.0 by brucewayne74, Shining and Skhsato123 by brucewayne74
[April 05, 2024, 06:07:48 PM]


X-Men Training Room (Bright & Dark) Stage 1.1 & 1.0 by MatreroG
[April 05, 2024, 10:55:29 AM]


[WIP] Pocket Dimensional Clash 2 by O Ilusionista
[April 01, 2024, 11:03:03 PM]

* IMT Calendar

May 2024
Sun Mon Tue Wed Thu Fri Sat
1 2 3 4
5 6 7 8 9 10 11
12 13 [14] 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 31

SimplePortal 2.3.5 © 2008-2012, SimplePortal