collapse

Author Topic: Add 2 Assists  (Read 342 times)

0 Members and 1 Guest are viewing this topic.

Offline junkerde

  • Initiate
  • **
  • Posts: 18
  • Last Login:January 25, 2012, 01:45:10 AM
    • Email
Add 2 Assists
« on: August 25, 2011, 02:40:19 PM »
I am using the mvc project tag plugin and i wanted to add a second assist state with using the buttons A and Y for an aerial assist for my characters, im thinking about adding a 3rd (i got this idea from MVC2 where you can choose your assist type). ive added a new state for a 2nd assist, but whenever i trigger it, it still performs the same assist as the 1st assist even though i have changed the assist attack on the 2nd one. heres my code, idk whats wrong or what to do:
in Tag_system.cns:
Code: [Select]
; Entering the screen for assist move
[Statedef 4721]
type = S
movetype = I
physics = S
anim = 100 ; <- You can use the standard running animation or put another one
sprpriority = 2
ctrl = 0

[State 4721, 1]
type = ChangeAnim
trigger1 = Partner, Life <= 0
trigger1 = Anim != 4721
value = 4721

[State 4721, position]
type = PosSet
trigger1 = time = 0
x = -243*facing
y = 0

[State 4721, velocity]
type = VelSet
trigger1 = Anim != 4721
x = 10

[State 4721, velocity2]
type = VelSet
trigger1 = Anim = 4721

trigger1 = AnimElem = 2, >= 0
x = 8


[State 4721, invincibility] ; the character cannot be hit until he has fully entered on the stage
type = NotHitBy
trigger1 = BackEdgeBodyDist <= 0
value = SCA
time = 2


[State 4721, screen bound] ; Prevents the camera from following the char

type = ScreenBound
trigger1 = 1
value = 0

[State 4721, attack state] ; the character attacks his opponent when :
type = ChangeState
trigger1 = BackEdgeBodyDist >= 20 ; he is on the stage
triggerall = selfanimexist (1420)
value = 1420 ;<--- Assist state
ctrl = 1

[State 4721, end state] ;The partner's assist move doesn't exist so make him jump out of the screen
type = ChangeState
trigger1 = BackEdgeBodyDist >= 25
value = 4713
ctrl = 0

in cmd:
Code: [Select]
[State -1, assist]
type = ChangeState
value = 4720
triggerall = command = "a" && command = "y"
triggerall = (Var(11) = 2) && (partner, life > 0) && (partner, stateno = 4714)
trigger1 = (StateType != A) && (Ctrl = 1)

and then
[State -1, PerformAssist] ;call in partner for an assist? (10%) chance
type = ChangeState
value = 4720
triggerall = (var(12) = 1) && (statetype != A) && (movetype != H) && (statetype != L) && (P2life != 0) && (partner, life > 0) && (partner, stateno = 4714)
trigger1 =  (ctrl = 1) && (partner, life > 100) && (random >= 990)
persistent = 0

in the CNS file:
Code: [Select]
[State -3, assist]
type = ChangeState
triggerall = NumPartner
triggerall = stateno = 4714 ; Player waiting outside the screen

trigger1 = (partner, stateno = 4716) && (Life) ; Partner waiting for assist And you're alive
value = 4717

trigger2 = (partner, stateno = 4720) && (Life) ; Partner waiting for assist And you're alive
value = 4721

not sure where i messed up...??? any help?

Post Merge: August 25, 2011, 02:45:09 PM
ok nvm about the stuff above, i found out i had to rename the 2nd assist to assist 2, but how can i make sure i can press the assist buttons while in midair? is there a trigger for this (or watever its called)? right now if i try assisting while jumping it doesnt work, i have to be on the ground only. answers?



Offline Acey

  • Infinity Administrator
  • *
  • Posts: 9579
  • Country: United States us
  • Last Login:December 05, 2022, 10:43:15 PM
  • "Victory means nothing, the fight is everything."
    • Infinity Wiki - Acey
    • Email
Re: Add 2 Assists
« Reply #1 on: August 26, 2011, 04:49:36 PM »
The code is most likely being inhibited by the code in the CMD file. Check your triggers there that will start this attack in the first place.

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