collapse

Author Topic: Win pose VS specific character  (Read 878 times)

0 Members and 1 Guest are viewing this topic.

Offline Fou

  • Mage of the sun
  • RMM Contributor
  • ****
  • Posts: 534
  • Last Login:March 01, 2019, 11:22:55 AM
  • I can taste your fear... and IT'S DELICIOUS !
    • Fou-the-mage
    • Email
Win pose VS specific character
« on: December 30, 2011, 07:28:59 PM »
I want to make a win pose when Meta Knight beat Kirby or Galacta Knight.
What is the problem ?

Quote
;---------------------------------------------------------------------------
; Win
[statedef 180]
type = s
ctrl = 0

[State 180, 1]
type = ChangeState
trigger1 = P2Name = "Kirby"
value = 1810

[State 180, 1]
type = ChangeState
trigger1 = P2Name = "GalactaKnight"
value = 18100

[State 180, 1]
type = ChangeState
trigger1 = !time
value = 181 + random%2



(click to show/hide)

Offline Space (DCL)

  • IMT Content Architect
  • *
  • Posts: 1165
  • Country: United States us
  • Last Login:Today at 06:08:15 PM
  • If you see this, I'm alive!
Re: Win pose VS specific character
« Reply #1 on: December 30, 2011, 07:59:08 PM »
heres a few tips:
1. The "P2Name" (or P4Name) refers to the character's actual name. Not the display name. Instead of P2Name or P4Name i use enemy,name="name"
Example:
[State 180, 1]
type = ChangeState
trigger1 = enemy,name = "Kirby"
value = 1810

2. Set specific settings so it will be in either "single" mode or "turns", it wont seem right someway in Simul mode. Also, if you are going for a specific Kirby or Galacta Knight, add the author name too.
Heres a sample:
[State 180, 1]
type = ChangeState
trigger1=(TeamMode=Single)||(TeamMode=Turns)
trigger1=(enemy,TeamMode=Single)||(enemy,TeamMode=Turns)
trigger1 = enemy,name = "Kirby" && enemy,authorname = "author"
value = 1810
(click to show/hide)
zzz...I'm top tier...screw you Doom and Wesker...zzz

Offline shootYr.

  • [Magnum]
  • Contributor
  • ****
  • Posts: 1112
  • Last Login:September 11, 2012, 07:27:16 PM
  • What're you gonna do to me?...
Re: Win pose VS specific character
« Reply #2 on: December 30, 2011, 08:06:01 PM »
I'm guessing this is an issue of which state controller is being checked first. I suggest using ifelse (or boolean algebra) along with enemy or enemynear name instead of P2name.

Quote
[State 180, 1]
type = ChangeState
trigger1 = !time
value = ifelse(enemy,name = "GalactaKnight",18100,ifelse(enemy,name = "Kirby",1810,181+random%2))

Offline Fou

  • Mage of the sun
  • RMM Contributor
  • ****
  • Posts: 534
  • Last Login:March 01, 2019, 11:22:55 AM
  • I can taste your fear... and IT'S DELICIOUS !
    • Fou-the-mage
    • Email
Re: Win pose VS specific character
« Reply #3 on: December 30, 2011, 08:13:41 PM »
Thank a lot ! I got it !  :)

(click to show/hide)

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

* 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