Link`s Awakening poker monsters. Walks like normal Darknut, changing displayed number every so often. Csn only be stunned. If Link stun all such monsters, so numbers shown form specific poker combination, all such enemies die and the puzzle is solved. Hit with Lweapon to stun, hit again to wake up.
Requires ghost.zh and poker.zh
1. Upon compiling, Assign 2 FFC scripts.
2. Set up NofaKind ghosted enemy:
Random rate, hunger, homing factor, and step speed are used. Must have absurdly high HP.
Animation - sequence of 2 framed anims in row equal to number of possible numbers
Attribute 1: Cooldown between hits, in frames
Attribute 2: Number of numbers/states (like 1-6)
Attribute 3: Delay between changing displayed numbers, in frames.
Attribute 4: CSet of flash when solved to kill
//2. Place invisible FFC anywhere in the screen
//D0 - ID of enemy to spawn
//D1 - number of enemies to spawn
//D2 -combintion type
// D2 = 0 - Longest set must be that long or longer
// D3 - number of same kind, D4 - target number of sets (i.e 3 6s), if D5 is >0 - target set must be exactly D4 long (i,e, 4 4s, and extra 4 is failure). If D6 is 0, any extra sets will fail the check. For instance 5 elements contain 3 of a kind and remaining 2 enemies must mismatch to solve.
// D2 = 1 - Number of sets. D3 - set size, D4 numberof sets. id D5 is 0, larger set sizes are allowed. Example - 3 pairs, more pairs are allowed if D6 is 0, but quads here don`t count.
// D2 = 2 - Full House - all cards are part of sets, D3 - maximum set length, D4 - min set length, D5>0 - hand must contain one set on minimum length, if specified, and 1 set of max length, if specified.
// D2 = 3 - Straight - sequence of ranks - D3 - number of elements in sequence. if D5 is 0, longer sequences also count.
//D3 - D6 - See D2 for combination specific settings. Various common combinations are shown in demo.