Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <? xml version = "1.0" encoding = "utf-16"?>
- <aidescdata>
- <template>
- <var_decl>
- <var name = "visualfield_radius" default = "600" />
- <var name = "audio_range" default = "400" />
- </ var_decl>
- <sensor visualfield_radius = "% visualfield_radius" visualfield_angle = "90" audio_range = "% audio_range" />
- <character return_to_startpoint = "false" auto_respawn = "false" target_type = "always" support_type = "none">
- <! - race stringid = "* / wolf / *" type = "hate" / ->
- </ character>
- <patterns>
- <! - Smart pets: picking up items ->
- <pattern name = "pick_item">
- <sequence>
- <! - Check for items ->
- <if condition = "expr" expr = "@ check_enable_shuttle_item_in_dist">
- <then>
- <! - Try to pick up items if there is one. ->
- <cmd name = "pet_shuttle_item" success_msg = "|" fail_msg = "|" />
- <cmd name = "wait" min = "500" max = "500" />
- </ then>
- <else>
- <! - If you do not have it, you will go around. ->
- <cmd name = "move_random" radius = "20" run = "true" timeout = "3000" />
- <cmd name = "wait" min = "3000" max = "5000" />
- </ else>
- </ if>
- </ sequence>
- </ pattern>
- </ patterns>
- <strategy>
- <! - As far as the distance from the owner is max_radius, approach the owner in the distance of follow_radius ->
- <idle type = "idle_pet" max_radius = "500" follow_radius = "100">
- <pattern name = "pick_item" />
- </ idle>
- </ strategy>
- </ template>
- <definition race = "Miku_toy">
- <var_def>
- <var name = "visualfield_radius" value = "7000" />
- <var name = "audio_range" value = "800" />
- </ var_def>
- </ definition>
- </ aidescdata>
Advertisement
Add Comment
Please, Sign In to add comment