1 (edited by acidfmhq 2017-08-01 16:21:38)

Topic: Got this almost working help needed-Finishing Move/Fatality Toggle

So I have this in my editor now

https://i.imgur.com/EURb7PB.png

If checked this should make the move only work on the winning round of a match.

There is what I got so far inside MovesetScript.cs

   private bool cankill(int winningRound)
    {
        winningRound = UFE.config.roundOptions.totalRounds - 2;
        if (controlsScript.roundsWon < (UFE.config.roundOptions.totalRounds * (winningRound / UFE.config.currentRound))) return false;
        
        return true;
    }

So the issue is the above code by looking at it should only work for player 1 but it also works for player 2. I have tried using
" controlsScript.opControlsScript.roundsWon " but it does the samething. I have also tried using  " controlsScript.playernum == 1 && " at the beginning but if Player 2 wins a match the move is enabled for Player 1. Also tried including this " opControlsScript = opponent.GetComponent<ControlsScript>(); " but it had no effect to obtain Player 2's roundsWon.

So if anyone can point me in the right direction on how to get the roundsWon for Player 1 and 2 I will repost this as a tutorial and/or include it with my Life check gauge condition tutorial.

Terrordrome Reign of the Legends Out now on Steam!!
https://store.steampowered.com/app/1291 … e_Legends/
Terrordrome Project Manager

Re: Got this almost working help needed-Finishing Move/Fatality Toggle

I remember helping with a similar issue in another thread. Will do some research, I'll also send you my skype info in PM to see if we can work together on it?

In short, I think you're checking at the wrong area. I think you should be checking when the opponent is dead if it is the last round, and instead of rolling to the outro or next match it does the "fatality" mode. I believe this code is in the ControlsScript.cs or UFE.cs I forget which off the top of my head.

Share

Thumbs up Thumbs down

3 (edited by acidfmhq 2017-08-01 17:44:47)

Re: Got this almost working help needed-Finishing Move/Fatality Toggle

Well I'm not wanting to make it MK style in the previous game Terrordrome : Rise of the Boogeyman we had finishing moves that worked like how MKX did Brutalities. How we made them was if on the last round and opponent was at low health when you had full special bar you could pull of the finisher.

So just need the variable for roundsWon to work and this will be gold for me. But if you want to make a full MK style finishing move system I'm down to help. I'm sure most of the gore people would have to get creative with their prefabs.

Thing is I'm just learning how to code in UFE with trail and error not really knowledgeable with coding to say.

Terrordrome Reign of the Legends Out now on Steam!!
https://store.steampowered.com/app/1291 … e_Legends/
Terrordrome Project Manager

Re: Got this almost working help needed-Finishing Move/Fatality Toggle

acidfmhq wrote:

Thing is I'm just learning how to code in UFE with trail and error not really knowledgeable with coding to say.

Most of us are. smile

Share

Thumbs up Thumbs down

Re: Got this almost working help needed-Finishing Move/Fatality Toggle

Good then I'm among friends then lol.

Terrordrome Reign of the Legends Out now on Steam!!
https://store.steampowered.com/app/1291 … e_Legends/
Terrordrome Project Manager