Page 1 of 1

Help on Spec: NO_PLAYER_CONTROLLED

Posted: Sun Jan 30, 2022 5:28 pm
by Hyuhjhih
Is this spec really working? I tried it a couple of times and it actually didn't seems to work.

If it is working, can it be applied via a ability(spell)

Like,
Just an example:

Code: Select all

{
    "unitTypeName":"AFFECT_AI_WOLF",
    "unitType":10009,
    "uiDefinition":{
           "visuals":[]
           },
   
    "unitStatSheet":{ "unit":
          {"isTechnology":true,
            
            "specUnitActions":["NO_PLAYER_CONTROLLED","IS_EFFECT_AFFECT"],

            "trnValidTargets":{"categories":["U_ANIMAL"]},

            "trnBonusList":[]

     }}

  }
Is this affect.json is supposed to work like a spell which make a player controlled unit change into an AI controlled unit which last X turns?

Re: Help on Spec: NO_PLAYER_CONTROLLED

Posted: Mon Jan 31, 2022 3:19 pm
by makazuwr32
Not sure if it actually is working but idea for this effect is that you can't manually move and attack with this unit. Instead it is controlled by ai and moves/attacks when you end your turn.

It also should prevent usage of waypoints for this unit.

Savra i think tested this spec in aof and yes it may be used for a spell with timer.

Re: Help on Spec: NO_PLAYER_CONTROLLED

Posted: Mon Jan 31, 2022 5:06 pm
by Hyuhjhih
That exactly what I was planning on. But, its not working.
The effect is applied, but it can still be controlled by human player.
Maybe, a core change, i believe, have made this one obsolete. Maybe stratego can give a current state of this spec

Re: Help on Spec: NO_PLAYER_CONTROLLED

Posted: Mon Jan 31, 2022 5:49 pm
by Stratego (dev)
i checked in code as i see it should work - at least for movement - i have yet checked attack.
exactly what is not working?
and in what movement mode? (auto confirm or manual confirm mode?)

thanks!