• Guides
  • Example Projects
  • Operation of Object Editor

Operation of Object Editor

In the Object Editor, you can set the attribute of a unit, such as Alert Range. You can also write the ECA in Object Editor - Triggers to set the game effects associated with the unit, for example, the game ends when a unit dies.


Select a Hero Model

In Object Editor - Units, you can view and choose the default Hero model in the Preset folder or click New Object to create a new role model.


Select Hero as the type of unit you created. You can click tihuan_an in the lower part of the window to go to the Resource Manager.


In the Resource Manager, select an appropriate hero model, make sure that the model action matches the planned hero abilities, and then click Confirm.


Write Abilities for a Custom Unit

In Custom folder, you can see the model you selected in Resource Manager. Select the model and click Triggers.


Click New Trigger to create a new unit trigger. In WuKong, the hero has three events: Kill an enemy, Get hurt, and Unit death. Therefore, click New Trigger three times to add three triggers.


Triggers are written in ECA. Click common_search_add_nml_an behind Event, select an event that you want to trigger an action, and select an action that matches the event.


Modify Abilities for a Preset Role

The preset hero in CliCli has its own abilities. You can directly use the abilities or adjust the abilities. Go to Object Editor - Abilities, click New Object to create a new Ability template, and name and describe the template.


You can adjust the Fixed Attributes in Data.


When you find that the fixed attributes do not meet your needs, you can add a Custom Attribute, which is equivalent to setting a variable with a basic attribute. Then you can call the attribute in Triggers.


In Triggers, you need to write a trigger based on the event the ability must show and the action to be completed. The following shows the detailed Trigger:

  • Common attack



  • Sprint



  • Range attack



  • Arrow attack



  • Mirroring




In this way, you have set the detailed functions of abilities for the hero. Next, you need to enable the hero to call these abilities. Select the unit in Object Editor - Unit, select Abilities in Data panel, and click asset store_home_edit_liang_hover to attach the ability to the unit. In Data panel, only one ability can be attached to the unit as its initial ability. Other abilities have to be written through Triggers. For details, see Add New Hero Abilities.



Select a Trap Model

Select a trap model in the same way as you select a unit model. Then write corresponding functions in Object Editor - Triggers.


Modify the Ability for a Trap

The same as a unit, you need to modify the abilities for a trap. The operation of modifying the abilities of a trap is the same as Modify Abilities for a Preset Role. The operation details are as follows:

First, add five Custom Attributes for subsequent calls in Triggers.


Write the specific logic of abilities in Object - Triggers and place the ability on the trap in Object Editor - Unit.




Write a Trigger for a Trap

The logic of writing a trigger for a trap unit is the same as the logic of writing a trigger for a hero model. However, a trap has only one corresponding event. Therefore, you need to create a trigger, select Unit created for Event, and select an action for Action.


Keep a Trap Alive

Add Invulnerable to the current Unit to keep the trap alive.


Determine Whether the Hero Enters a Trap

  1. Add the "Trap" tag for the region.


  1. Add a loop timer to check whether the point where a unit is located is in the Trap Region every 0.03s. If so, the abilities of the trap are activated.



Select a BOSS Model

Select a model as BOSS in the same way as selecting a hero model or a trap model. Write corresponding abilities in Object Editor - Triggers.


Write a Trigger for the Boss

The logic of writing a trigger for a BOSS unit is the same as the logic of writing a trigger for a hero model and a trap model. However, there is an additional limiting condition for the BOSS to implement an action. Therefore, you need to add a Condition in the trigger.

The logic of Conditon is: When the BOSS is in immune to Physical Damage state, the type of damage is judged; if the type is physical immunity, "physical immunity" is displayed for the player.

[Term] Physical immunity: Immune to the damage caused by physical attacks. This is a state of the Unit provided by the CliCli Editor. The state of the Unit is adjusted in real-time based on the conditions of the game and does not need to be adjusted additionally.