YesNoOk
avatar

Best way to get ID from player who put you in Custom State? (Read 1044 times)

Started by airforce111, September 18, 2020, 10:10:30 PM
Share this topic:
Best way to get ID from player who put you in Custom State?
#1  September 18, 2020, 10:10:30 PM
  • avatar
  • **
    • USA
Say you want to detect when the player who put you in a custom state is in a certain state in simul mode. Whats the best way the player put in the custom state get an ID from that specific player?
Last Edit: September 20, 2020, 04:55:47 PM by airforce111
Re: Best way to get ID from player who put you in Custom State?
#2  September 20, 2020, 01:00:45 AM
  • ******
  • Legendary XIII
  • I am the eye of the storm to come!
    • New Zealand
    • network.mugenguild.com/cyanide/
Thats incredibly hard to sort out. Especially when you said simul... you can detect if enemynear(0) or enemynear(1) have targets. You can get the player id from that. Knowing if YOU are their target is basically impossible unless you hardcode ie opponent is clark by x and hes in state blah while i am in state bleh. Even then you can false positive as 801 is a very common throw state and its feasible both characters could be in it at once.

There is a dual redirect trick with cond i think which might let you check enemynear, target, ID = playerid. Haven't looked into that. Little out of the loop.


In M.U.G.E.N there is no magic button

They say a little knowledge is a dangerous thing, but it's not one half so bad as a lot of ignorance.
Re: Best way to get ID from player who put you in Custom State?
#3  September 20, 2020, 06:05:43 AM
  • ***
    • beterwork.hopto.org
Say you want to detect when the player who put you in a custom state is in a certain state in simul mode. Whats the best way the player put in the custom state get an ID from that specific player?

I don't think there is a way to get the ID of the attacker.
unless the attacker use a way to tell the recever.

especially when the attacker is a helper.
Now my Youtube Channel is my HomePage
https://www.youtube.com/channel/UC4N3iOEfslR4iRRXPjP11jg
You can follow my Character release or stage release Playlists for all my works.
Re: Best way to get ID from player who put you in Custom State?
#4  September 20, 2020, 10:13:58 AM
  • **
Quote
Say you want to detect when the player who put you in a custom state is in a certain state in simul mode. Whats the best way the player put in the custom state get an ID from that specific player?
airforce111, since you're using ikemen go, in next major version you will be able to retreive who is the attacker via gethitvar(playerno), which you can than convert to ID with GetPlayerID trigger.
Re: Best way to get ID from player who put you in Custom State?
#5  September 20, 2020, 04:54:59 PM
  • avatar
  • **
    • USA
Quote
Say you want to detect when the player who put you in a custom state is in a certain state in simul mode. Whats the best way the player put in the custom state get an ID from that specific player?
airforce111, since you're using ikemen go, in next major version you will be able to retreive who is the attacker via gethitvar(playerno), which you can than convert to ID with GetPlayerID trigger.

lol I was just about to ask this in the discord server, guess this answers my question. awesome!