• 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.

Hero

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.

38

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.

39

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

40

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.

41

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.

42

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.

43

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.

44

You can adjust the Fixed Attributes in Data.

45

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.

46

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

47

48

  • Sprint

49

50

  • Range attack

51

52

  • Arrow attack

54

53

  • Mirroring

56

55

57

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.

58

Trap

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.

58-1

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.

59

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

60

61

57

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.

62-divide

Keep a Trap Alive

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

62

Determine Whether the Hero Enters a Trap

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

62-1

  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.

62-2

Boss

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.

36

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.

37