The Mugen Fighters Guild

Help => M.U.G.E.N Development Help => Topic started by: airforce111 on September 18, 2020, 10:10:30 PM

Title: Best way to get ID from player who put you in Custom State?
Post by: airforce111 on September 18, 2020, 10:10:30 PM
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?
Title: Re: Best way to get ID from player who put you in Custom State?
Post by: Cyanide on September 20, 2020, 01:00:45 AM
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.
Title: Re: Best way to get ID from player who put you in Custom State?
Post by: beterhans on September 20, 2020, 06:05:43 AM
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.
Title: Re: Best way to get ID from player who put you in Custom State?
Post by: K4thos on 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.
Title: Re: Best way to get ID from player who put you in Custom State?
Post by: airforce111 on September 20, 2020, 04:54:59 PM
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!