- 好友
- 11
- 在线时间
- 621 小时
- 最后登录
- 2024-12-26
见习骑士
- UID
- 2818726
- 第纳尔
- 4066
- 精华
- 0
- 互助
- 10
- 荣誉
- 6
- 贡献
- 0
- 魅力
- 45
- 注册时间
- 2017-3-25
鲜花( 188) 鸡蛋( 0)
|
本帖最后由 君悦 于 2018-6-16 17:22 编辑
思路还是减速和绕圈.绕圈方程是用极坐标算的.
所有mod可用(版本1.161+),如果其他mod为弓骑写了代码可能会有冲突(你不妨加上去试试,冲突的话删了就是)
使用方法:在mission_templates.txt里面,找到有战斗方面的场景,添加以下字段
停止射击、使用近战武器可以停掉骑射ai
0.500000 0.000000 0.000000 0 301 2124 1 1000 12 1 1224979098644774912 1702 1 1224979098644774912 1704 1 1224979098644774912 1707 1 1224979098644774912 2147484193 3 1224979098644774912 1003 1 1714 2 1224979098644774913 1224979098644774912 2133 2 1224979098644774914 -1 4 0 545 3 1224979098644774912 15 0 1770 2 1224979098644774915 1224979098644774912 32 2 1224979098644774913 -1 2133 2 1224979098644774916 0 2133 2 1224979098644774917 -1 6 3 1224979098644774918 0 4 1804 3 1224979098644774919 1224979098644774912 1224979098644774918 32 2 1224979098644774919 0 1570 2 1224979098644774920 1224979098644774919 4 0 31 2 1224979098644774920 10 1825 3 1224979098644774921 1224979098644774912 1224979098644774918 2105 2 1224979098644774916 1224979098644774921 5 0 1073741855 2 1224979098644774920 8 1073741855 2 1224979098644774920 16 31 2 1224979098644774920 17 2133 2 1224979098644774917 1224979098644774919 5 0 1073741855 2 1224979098644774920 2 1073741855 2 1224979098644774920 3 31 2 1224979098644774920 4 2133 2 1224979098644774914 1224979098644774919 3 0 3 0 32 2 1224979098644774917 -1 2147486371 2 1224979098644774917 1048576 2147486371 2 1224979098644774917 268435456 1727 3 1224979098644774922 1224979098644774912 0 2106 2 1224979098644774922 1224979098644774916 32 2 1224979098644774922 0 505 3 1224979098644774912 1003 2 1773 2 1224979098644774923 1224979098644774912 1787 3 1224979098644774924 1224979098644774915 1224979098644774923 1785 3 1224979098644774925 1224979098644774915 1224979098644774923 1784 3 1224979098644774926 1224979098644774915 1224979098644774923 2147483679 2 1224979098644774926 1 2147483679 2 1224979098644774924 2 2147483679 2 1224979098644774924 1 31 2 1224979098644774925 2 1710 2 1 1224979098644774912 1689 2 0 1224979098644774912 727 2 1224979098644774927 0 2133 2 1224979098644774928 100000 2133 2 1224979098644774929 -1 12 1 1224979098644774930 1702 1 1224979098644774930 1704 1 1224979098644774930 1710 2 2 1224979098644774930 1770 2 1224979098644774931 1224979098644774930 1788 2 1224979098644774915 1224979098644774931 710 3 1224979098644774932 1 2 4 0 545 3 1224979098644774930 15 1 2105 2 1224979098644774932 10000 3 0 4 0 1714 2 1224979098644774933 1224979098644774930 32 2 1224979098644774933 -1 1689 2 0 1224979098644774930 727 2 1224979098644774934 0 2121 3 1224979098644774935 1224979098644774934 1224979098644774927 717 3 0 1 2 740 2 1224979098644774936 0 2130 1 1224979098644774936 2128 2 1224979098644774937 1224979098644774936 2127 2 1224979098644774938 1224979098644774936 726 2 1224979098644774939 0 727 2 1224979098644774940 0 741 2 1224979098644774941 0 2122 3 1224979098644774942 1224979098644774939 1224979098644774937 2122 3 1224979098644774943 1224979098644774940 1224979098644774938 2120 3 1224979098644774944 1224979098644774942 1224979098644774943 2107 2 1224979098644774944 1224979098644774934 2108 2 1224979098644774944 1224979098644774941 2131 1 1224979098644774944 2113 1 1224979098644774944 4 0 2147483678 2 1224979098644774944 3000 2123 3 1224979098644774945 1224979098644774935 5 2111 2 1224979098644774945 0 2105 2 1224979098644774945 500 2106 2 1224979098644774932 1224979098644774945 5 0 2105 2 1224979098644774932 5000 3 0 5 0 1726 3 1224979098644774946 1224979098644774930 1 2147483680 2 1224979098644774946 1 2106 2 1224979098644774932 500 3 0 2147483678 2 1224979098644774932 1224979098644774928 2133 2 1224979098644774928 1224979098644774932 2133 2 1224979098644774929 1224979098644774930 3 0 2147483679 2 1224979098644774929 -1 1710 2 3 1224979098644774929 710 3 1224979098644774947 1 3 2133 2 1224979098644774948 1000 4 0 1726 3 1224979098644774946 1224979098644774912 0 32 2 1224979098644774946 0 1570 2 1224979098644774949 1224979098644774946 1073741855 2 1224979098644774949 8 1073741855 2 1224979098644774949 16 31 2 1224979098644774949 17 2076 4 4 1224979098644774912 8 1 2076 4 5 1224979098644774929 9 1 707 2 4 5 1713 2 1224979098644774912 1224979098644774929 4 0 2133 2 1224979098644774950 4000 1763 2 1224979098644774951 1224979098644774912 31 2 1224979098644774951 1 4 0 32 2 1224979098644774928 700 2147483680 2 1224979098644774928 1224979098644774950 2123 3 1224979098644774948 1224979098644774927 2000 2111 2 1224979098644774948 0 3 0 31 2 1224979098644774949 8 4 0 2147483680 2 1224979098644774947 1224979098644774950 1746 3 1224979098644774912 -2 1 1745 3 1224979098644774912 3 0 5 0 32 2 1224979098644774947 1224979098644774950 1745 3 1224979098644774912 -2 1 1746 3 1224979098644774912 3 1 3 0 5 0 31 2 1224979098644774949 8 2147483680 2 1224979098644774947 1224979098644774950 1739 2 1224979098644774952 1224979098644774912 2147483679 2 1224979098644774952 8 1745 3 1224979098644774912 3 1 3 0 3 0 1736 2 1224979098644774912 1224979098644774948 4 0 545 3 1224979098644774929 15 0 2147483678 2 1224979098644774928 12000 4 0 1799 2 6 7 717 3 0 6 1 726 2 1224979098644774953 0 727 2 1224979098644774954 0 717 3 0 6 7 726 2 1224979098644774955 0 727 2 1224979098644774956 0 2121 3 1224979098644774957 1224979098644774955 1224979098644774953 2121 3 1224979098644774958 1224979098644774956 1224979098644774954 717 3 0 1 3 726 2 1224979098644774959 0 727 2 1224979098644774960 0 2133 2 1224979098644774961 0 2133 2 1224979098644774962 1500 4 0 2147483680 2 1224979098644774928 1000 2133 2 1224979098644774961 -78 5 0 32 2 1224979098644774928 2500 717 3 0 6 3 726 2 1224979098644774963 0 727 2 1224979098644774964 0 2121 3 1224979098644774965 1224979098644774955 1224979098644774963 2121 3 1224979098644774966 1224979098644774956 1224979098644774964 2133 2 1224979098644774967 1224979098644774962 2110 2 1224979098644774967 1224979098644774963 2110 2 1224979098644774967 1224979098644774966 2110 2 1224979098644774967 1224979098644774965 2110 2 1224979098644774967 1224979098644774964 4 0 2147483678 2 1224979098644774967 1224979098644774962 2133 2 1224979098644774961 90 5 0 2133 2 1224979098644774961 45 3 0 3 0 2130 1 1224979098644774961 2133 2 1224979098644774967 1224979098644774962 2110 2 1224979098644774967 1224979098644774953 2110 2 1224979098644774967 1224979098644774958 2110 2 1224979098644774967 1224979098644774957 2110 2 1224979098644774967 1224979098644774954 4 0 2147483678 2 1224979098644774928 1000 2147483678 2 1224979098644774967 1224979098644774962 545 3 1224979098644774929 15 0 2123 3 1224979098644774968 1224979098644774955 20 2123 3 1224979098644774969 1224979098644774956 20 719 2 10 6 720 3 10 1224979098644774968 1 721 3 10 1224979098644774969 1 710 3 1224979098644774970 10 1 717 3 0 1 10 726 2 1224979098644774968 0 727 2 1224979098644774969 0 2107 2 1224979098644774968 100 2107 2 1224979098644774969 100 2107 2 1224979098644774959 100 2107 2 1224979098644774960 100 2123 3 1224979098644774971 1224979098644774968 1224979098644774970 2123 3 1224979098644774972 1224979098644774969 1224979098644774970 2123 3 1224979098644774973 1224979098644774959 1224979098644774947 2123 3 1224979098644774974 1224979098644774960 1224979098644774947 2141 2 1224979098644774975 1224979098644774971 2140 2 1224979098644774976 1224979098644774972 2141 2 1224979098644774977 1224979098644774973 2140 2 1224979098644774978 1224979098644774974 4 0 2147483678 2 1224979098644774976 0 2107 2 1224979098644774975 -1 2105 2 1224979098644774975 360000 3 0 4 0 2147483678 2 1224979098644774978 0 2107 2 1224979098644774977 -1 2105 2 1224979098644774977 360000 3 0 2121 3 1224979098644774943 1224979098644774975 1224979098644774977 2106 2 1224979098644774943 270000 2106 2 1224979098644774943 1224979098644774961 2120 3 1224979098644774961 1224979098644774943 1224979098644774961 4 0 2147483678 2 1224979098644774975 1224979098644774977 2105 2 1224979098644774961 360000 3 0 2112 3 1224979098644774961 -210000 15000 1745 3 1224979098644774912 -2 1 1746 3 1224979098644774912 3 1 3 0 4 0 31 2 1224979098644774949 16 2107 2 1224979098644774961 -1 2105 2 1224979098644774961 180000 3 0 2128 2 1224979098644774937 1224979098644774961 2127 2 1224979098644774938 1224979098644774961 2122 3 1224979098644774979 1224979098644774937 1224979098644774960 2122 3 1224979098644774980 1224979098644774938 1224979098644774959 2122 3 1224979098644774981 1224979098644774938 1224979098644774960 2122 3 1224979098644774982 1224979098644774937 1224979098644774959 2120 3 1224979098644774983 1224979098644774979 1224979098644774980 2121 3 1224979098644774984 1224979098644774981 1224979098644774982 720 3 1 1224979098644774983 0 721 3 1 1224979098644774984 0 3 0 1730 3 1224979098644774912 1 1 5 0 1735 1 1224979098644774912 1732 1 1224979098644774912 3 0 4 0 545 3 1224979098644774929 15 0 32 2 1224979098644774947 500 1747 2 1224979098644774912 1224979098644774917 5 0 2147483680 2 1224979098644774947 500 32 2 1224979098644774914 -1 1714 2 1224979098644774933 1224979098644774929 32 2 1224979098644774933 -1 1747 2 1224979098644774912 1224979098644774914 1745 3 1224979098644774912 -2 1 1730 3 1224979098644774912 3 1 3 0 5 0 4 0 545 3 1224979098644774912 1003 0 505 3 1224979098644774912 1003 1 5 0 545 3 1224979098644774912 1003 2 1073742369 3 1224979098644774912 15 1 3221225502 2 1224979098644774913 0 1073741855 2 1224979098644774922 0 1073741855 2 1224979098644774926 1 1073741855 2 1224979098644774924 2 1073741855 2 1224979098644774924 1 1073741855 2 1224979098644774929 -1 2147483679 2 1224979098644774925 2 1735 1 1224979098644774912 1736 2 1224979098644774912 100 1732 1 1224979098644774912 1745 3 1224979098644774912 -2 1 505 3 1224979098644774912 1003 3 1073741855 2 1224979098644774926 1 31 2 1224979098644774922 0 32 2 1224979098644774914 -1 1747 2 1224979098644774912 1224979098644774914 3 0 3 0 3 0 |
加一个只对友军有效的版本吧,悠闲一下,比较简单.源码就不贴了
0.500000 0.000000 0.000000 0 304 2124 1 1000 1700 1 1224979098644774912 1770 2 1224979098644774913 1224979098644774912 12 1 1224979098644774914 1702 1 1224979098644774914 1704 1 1224979098644774914 1707 1 1224979098644774914 2147484193 3 1224979098644774914 1003 1 1714 2 1224979098644774915 1224979098644774914 2133 2 1224979098644774916 -1 4 0 545 3 1224979098644774914 15 0 1770 2 1224979098644774917 1224979098644774914 2147485436 2 1224979098644774917 1224979098644774913 32 2 1224979098644774915 -1 2133 2 1224979098644774918 0 2133 2 1224979098644774919 -1 6 3 1224979098644774920 0 4 1804 3 1224979098644774921 1224979098644774914 1224979098644774920 32 2 1224979098644774921 0 1570 2 1224979098644774922 1224979098644774921 4 0 31 2 1224979098644774922 10 1825 3 1224979098644774923 1224979098644774914 1224979098644774920 2105 2 1224979098644774918 1224979098644774923 5 0 1073741855 2 1224979098644774922 8 1073741855 2 1224979098644774922 16 31 2 1224979098644774922 17 2133 2 1224979098644774919 1224979098644774921 5 0 1073741855 2 1224979098644774922 2 1073741855 2 1224979098644774922 3 31 2 1224979098644774922 4 2133 2 1224979098644774916 1224979098644774921 3 0 3 0 32 2 1224979098644774919 -1 2147486371 2 1224979098644774919 1048576 2147486371 2 1224979098644774919 268435456 1727 3 1224979098644774924 1224979098644774914 0 2106 2 1224979098644774924 1224979098644774918 32 2 1224979098644774924 0 505 3 1224979098644774914 1003 2 1773 2 1224979098644774925 1224979098644774914 1787 3 1224979098644774926 1224979098644774917 1224979098644774925 1785 3 1224979098644774927 1224979098644774917 1224979098644774925 1784 3 1224979098644774928 1224979098644774917 1224979098644774925 2147483679 2 1224979098644774928 1 2147483679 2 1224979098644774926 2 2147483679 2 1224979098644774926 1 31 2 1224979098644774927 2 1710 2 1 1224979098644774914 1689 2 0 1224979098644774914 727 2 1224979098644774929 0 2133 2 1224979098644774930 100000 2133 2 1224979098644774931 -1 12 1 1224979098644774932 1702 1 1224979098644774932 1704 1 1224979098644774932 1710 2 2 1224979098644774932 1770 2 1224979098644774933 1224979098644774932 1788 2 1224979098644774917 1224979098644774933 710 3 1224979098644774934 1 2 4 0 545 3 1224979098644774932 15 1 2105 2 1224979098644774934 10000 3 0 4 0 1714 2 1224979098644774935 1224979098644774932 32 2 1224979098644774935 -1 1689 2 0 1224979098644774932 727 2 1224979098644774936 0 2121 3 1224979098644774937 1224979098644774936 1224979098644774929 717 3 0 1 2 740 2 1224979098644774938 0 2130 1 1224979098644774938 2128 2 1224979098644774939 1224979098644774938 2127 2 1224979098644774940 1224979098644774938 726 2 1224979098644774941 0 727 2 1224979098644774942 0 741 2 1224979098644774943 0 2122 3 1224979098644774944 1224979098644774941 1224979098644774939 2122 3 1224979098644774945 1224979098644774942 1224979098644774940 2120 3 1224979098644774946 1224979098644774944 1224979098644774945 2107 2 1224979098644774946 1224979098644774936 2108 2 1224979098644774946 1224979098644774943 2131 1 1224979098644774946 2113 1 1224979098644774946 4 0 2147483678 2 1224979098644774946 3000 2123 3 1224979098644774947 1224979098644774937 5 2111 2 1224979098644774947 0 2105 2 1224979098644774947 500 2106 2 1224979098644774934 1224979098644774947 5 0 2105 2 1224979098644774934 5000 3 0 5 0 1726 3 1224979098644774948 1224979098644774932 1 2147483680 2 1224979098644774948 1 2106 2 1224979098644774934 500 3 0 2147483678 2 1224979098644774934 1224979098644774930 2133 2 1224979098644774930 1224979098644774934 2133 2 1224979098644774931 1224979098644774932 3 0 2147483679 2 1224979098644774931 -1 1710 2 3 1224979098644774931 710 3 1224979098644774949 1 3 2133 2 1224979098644774950 1000 4 0 1726 3 1224979098644774948 1224979098644774914 0 32 2 1224979098644774948 0 1570 2 1224979098644774951 1224979098644774948 1073741855 2 1224979098644774951 8 1073741855 2 1224979098644774951 16 31 2 1224979098644774951 17 2076 4 4 1224979098644774914 8 1 2076 4 5 1224979098644774931 9 1 707 2 4 5 1713 2 1224979098644774914 1224979098644774931 4 0 2133 2 1224979098644774952 4000 1763 2 1224979098644774953 1224979098644774914 31 2 1224979098644774953 1 4 0 32 2 1224979098644774930 700 2147483680 2 1224979098644774930 1224979098644774952 2123 3 1224979098644774950 1224979098644774929 2000 2111 2 1224979098644774950 0 3 0 31 2 1224979098644774951 8 4 0 2147483680 2 1224979098644774949 1224979098644774952 1746 3 1224979098644774914 -2 1 1745 3 1224979098644774914 3 0 5 0 32 2 1224979098644774949 1224979098644774952 1745 3 1224979098644774914 -2 1 1746 3 1224979098644774914 3 1 3 0 5 0 31 2 1224979098644774951 8 2147483680 2 1224979098644774949 1224979098644774952 1739 2 1224979098644774954 1224979098644774914 2147483679 2 1224979098644774954 8 1745 3 1224979098644774914 3 1 3 0 3 0 1736 2 1224979098644774914 1224979098644774950 4 0 545 3 1224979098644774931 15 0 2147483678 2 1224979098644774930 12000 4 0 1799 2 6 7 717 3 0 6 1 726 2 1224979098644774955 0 727 2 1224979098644774956 0 717 3 0 6 7 726 2 1224979098644774957 0 727 2 1224979098644774958 0 2121 3 1224979098644774959 1224979098644774957 1224979098644774955 2121 3 1224979098644774960 1224979098644774958 1224979098644774956 717 3 0 1 3 726 2 1224979098644774961 0 727 2 1224979098644774962 0 2133 2 1224979098644774963 0 2133 2 1224979098644774964 1500 4 0 2147483680 2 1224979098644774930 1000 2133 2 1224979098644774963 -78 5 0 32 2 1224979098644774930 2500 717 3 0 6 3 726 2 1224979098644774965 0 727 2 1224979098644774966 0 2121 3 1224979098644774967 1224979098644774957 1224979098644774965 2121 3 1224979098644774968 1224979098644774958 1224979098644774966 2133 2 1224979098644774969 1224979098644774964 2110 2 1224979098644774969 1224979098644774965 2110 2 1224979098644774969 1224979098644774968 2110 2 1224979098644774969 1224979098644774967 2110 2 1224979098644774969 1224979098644774966 4 0 2147483678 2 1224979098644774969 1224979098644774964 2133 2 1224979098644774963 90 5 0 2133 2 1224979098644774963 45 3 0 3 0 2130 1 1224979098644774963 2133 2 1224979098644774969 1224979098644774964 2110 2 1224979098644774969 1224979098644774955 2110 2 1224979098644774969 1224979098644774960 2110 2 1224979098644774969 1224979098644774959 2110 2 1224979098644774969 1224979098644774956 4 0 2147483678 2 1224979098644774930 1000 2147483678 2 1224979098644774969 1224979098644774964 545 3 1224979098644774931 15 0 2123 3 1224979098644774970 1224979098644774957 20 2123 3 1224979098644774971 1224979098644774958 20 719 2 10 6 720 3 10 1224979098644774970 1 721 3 10 1224979098644774971 1 710 3 1224979098644774972 10 1 717 3 0 1 10 726 2 1224979098644774970 0 727 2 1224979098644774971 0 2107 2 1224979098644774970 100 2107 2 1224979098644774971 100 2107 2 1224979098644774961 100 2107 2 1224979098644774962 100 2123 3 1224979098644774973 1224979098644774970 1224979098644774972 2123 3 1224979098644774974 1224979098644774971 1224979098644774972 2123 3 1224979098644774975 1224979098644774961 1224979098644774949 2123 3 1224979098644774976 1224979098644774962 1224979098644774949 2141 2 1224979098644774977 1224979098644774973 2140 2 1224979098644774978 1224979098644774974 2141 2 1224979098644774979 1224979098644774975 2140 2 1224979098644774980 1224979098644774976 4 0 2147483678 2 1224979098644774978 0 2107 2 1224979098644774977 -1 2105 2 1224979098644774977 360000 3 0 4 0 2147483678 2 1224979098644774980 0 2107 2 1224979098644774979 -1 2105 2 1224979098644774979 360000 3 0 2121 3 1224979098644774945 1224979098644774977 1224979098644774979 2106 2 1224979098644774945 270000 2106 2 1224979098644774945 1224979098644774963 2120 3 1224979098644774963 1224979098644774945 1224979098644774963 4 0 2147483678 2 1224979098644774977 1224979098644774979 2105 2 1224979098644774963 360000 3 0 2112 3 1224979098644774963 -210000 15000 1745 3 1224979098644774914 -2 1 1746 3 1224979098644774914 3 1 3 0 4 0 31 2 1224979098644774951 16 2107 2 1224979098644774963 -1 2105 2 1224979098644774963 180000 3 0 2128 2 1224979098644774939 1224979098644774963 2127 2 1224979098644774940 1224979098644774963 2122 3 1224979098644774981 1224979098644774939 1224979098644774962 2122 3 1224979098644774982 1224979098644774940 1224979098644774961 2122 3 1224979098644774983 1224979098644774940 1224979098644774962 2122 3 1224979098644774984 1224979098644774939 1224979098644774961 2120 3 1224979098644774985 1224979098644774981 1224979098644774982 2121 3 1224979098644774986 1224979098644774983 1224979098644774984 720 3 1 1224979098644774985 0 721 3 1 1224979098644774986 0 3 0 1730 3 1224979098644774914 1 1 5 0 1735 1 1224979098644774914 1732 1 1224979098644774914 3 0 4 0 545 3 1224979098644774931 15 0 32 2 1224979098644774949 500 1747 2 1224979098644774914 1224979098644774919 5 0 2147483680 2 1224979098644774949 500 32 2 1224979098644774916 -1 1714 2 1224979098644774935 1224979098644774931 32 2 1224979098644774935 -1 1747 2 1224979098644774914 1224979098644774916 1745 3 1224979098644774914 -2 1 1730 3 1224979098644774914 3 1 3 0 5 0 4 0 545 3 1224979098644774914 1003 0 505 3 1224979098644774914 1003 1 5 0 545 3 1224979098644774914 1003 2 1073742369 3 1224979098644774914 15 1 3221225502 2 1224979098644774915 0 1073741855 2 1224979098644774924 0 1073741855 2 1224979098644774928 1 1073741855 2 1224979098644774926 2 1073741855 2 1224979098644774926 1 1073741855 2 1224979098644774931 -1 2147483679 2 1224979098644774927 2 1735 1 1224979098644774914 1736 2 1224979098644774914 100 1732 1 1224979098644774914 1745 3 1224979098644774914 -2 1 505 3 1224979098644774914 1003 3 1073741855 2 1224979098644774928 1 31 2 1224979098644774924 0 32 2 1224979098644774916 -1 1747 2 1224979098644774914 1224979098644774916 3 0 3 0 3 0 |
0.500000 0.000000 0.000000 0 303 2124 1 1000 12 1 1224979098644774912 1702 1 1224979098644774912 1704 1 1224979098644774912 1707 1 1224979098644774912 1718 2 1224979098644774913 1224979098644774912 1507 1 1224979098644774913 2147484193 3 1224979098644774912 1003 1 1714 2 1224979098644774914 1224979098644774912 2133 2 1224979098644774915 -1 4 0 545 3 1224979098644774912 15 0 1770 2 1224979098644774916 1224979098644774912 32 2 1224979098644774914 -1 2133 2 1224979098644774917 0 2133 2 1224979098644774918 -1 6 3 1224979098644774919 0 4 1804 3 1224979098644774920 1224979098644774912 1224979098644774919 32 2 1224979098644774920 0 1570 2 1224979098644774921 1224979098644774920 4 0 31 2 1224979098644774921 10 1825 3 1224979098644774922 1224979098644774912 1224979098644774919 2105 2 1224979098644774917 1224979098644774922 5 0 1073741855 2 1224979098644774921 8 1073741855 2 1224979098644774921 16 31 2 1224979098644774921 17 2133 2 1224979098644774918 1224979098644774920 5 0 1073741855 2 1224979098644774921 2 1073741855 2 1224979098644774921 3 31 2 1224979098644774921 4 2133 2 1224979098644774915 1224979098644774920 3 0 3 0 32 2 1224979098644774918 -1 2147486371 2 1224979098644774918 1048576 2147486371 2 1224979098644774918 268435456 1727 3 1224979098644774923 1224979098644774912 0 2106 2 1224979098644774923 1224979098644774917 32 2 1224979098644774923 0 505 3 1224979098644774912 1003 2 1773 2 1224979098644774924 1224979098644774912 1787 3 1224979098644774925 1224979098644774916 1224979098644774924 1785 3 1224979098644774926 1224979098644774916 1224979098644774924 1784 3 1224979098644774927 1224979098644774916 1224979098644774924 2147483679 2 1224979098644774927 1 2147483679 2 1224979098644774925 2 2147483679 2 1224979098644774925 1 31 2 1224979098644774926 2 1710 2 1 1224979098644774912 1689 2 0 1224979098644774912 727 2 1224979098644774928 0 2133 2 1224979098644774929 100000 2133 2 1224979098644774930 -1 12 1 1224979098644774931 1702 1 1224979098644774931 1704 1 1224979098644774931 1710 2 2 1224979098644774931 1770 2 1224979098644774932 1224979098644774931 1788 2 1224979098644774916 1224979098644774932 710 3 1224979098644774933 1 2 4 0 545 3 1224979098644774931 15 1 2105 2 1224979098644774933 10000 3 0 4 0 1714 2 1224979098644774934 1224979098644774931 32 2 1224979098644774934 -1 1689 2 0 1224979098644774931 727 2 1224979098644774935 0 2121 3 1224979098644774936 1224979098644774935 1224979098644774928 717 3 0 1 2 740 2 1224979098644774937 0 2130 1 1224979098644774937 2128 2 1224979098644774938 1224979098644774937 2127 2 1224979098644774939 1224979098644774937 726 2 1224979098644774940 0 727 2 1224979098644774941 0 741 2 1224979098644774942 0 2122 3 1224979098644774943 1224979098644774940 1224979098644774938 2122 3 1224979098644774944 1224979098644774941 1224979098644774939 2120 3 1224979098644774945 1224979098644774943 1224979098644774944 2107 2 1224979098644774945 1224979098644774935 2108 2 1224979098644774945 1224979098644774942 2131 1 1224979098644774945 2113 1 1224979098644774945 4 0 2147483678 2 1224979098644774945 3000 2123 3 1224979098644774946 1224979098644774936 5 2111 2 1224979098644774946 0 2105 2 1224979098644774946 500 2106 2 1224979098644774933 1224979098644774946 5 0 2105 2 1224979098644774933 5000 3 0 5 0 1726 3 1224979098644774947 1224979098644774931 1 2147483680 2 1224979098644774947 1 2106 2 1224979098644774933 500 3 0 2147483678 2 1224979098644774933 1224979098644774929 2133 2 1224979098644774929 1224979098644774933 2133 2 1224979098644774930 1224979098644774931 3 0 2147483679 2 1224979098644774930 -1 1710 2 3 1224979098644774930 710 3 1224979098644774948 1 3 2133 2 1224979098644774949 1000 4 0 1726 3 1224979098644774947 1224979098644774912 0 32 2 1224979098644774947 0 1570 2 1224979098644774950 1224979098644774947 1073741855 2 1224979098644774950 8 1073741855 2 1224979098644774950 16 31 2 1224979098644774950 17 2076 4 4 1224979098644774912 8 1 2076 4 5 1224979098644774930 9 1 707 2 4 5 1713 2 1224979098644774912 1224979098644774930 4 0 2133 2 1224979098644774951 4000 1763 2 1224979098644774952 1224979098644774912 31 2 1224979098644774952 1 4 0 32 2 1224979098644774929 700 2147483680 2 1224979098644774929 1224979098644774951 2123 3 1224979098644774949 1224979098644774928 2000 2111 2 1224979098644774949 0 3 0 31 2 1224979098644774950 8 4 0 2147483680 2 1224979098644774948 1224979098644774951 1746 3 1224979098644774912 -2 1 1745 3 1224979098644774912 3 0 5 0 32 2 1224979098644774948 1224979098644774951 1745 3 1224979098644774912 -2 1 1746 3 1224979098644774912 3 1 3 0 5 0 31 2 1224979098644774950 8 2147483680 2 1224979098644774948 1224979098644774951 1739 2 1224979098644774953 1224979098644774912 2147483679 2 1224979098644774953 8 1745 3 1224979098644774912 3 1 3 0 3 0 1736 2 1224979098644774912 1224979098644774949 4 0 545 3 1224979098644774930 15 0 2147483678 2 1224979098644774929 12000 4 0 1799 2 6 7 717 3 0 6 1 726 2 1224979098644774954 0 727 2 1224979098644774955 0 717 3 0 6 7 726 2 1224979098644774956 0 727 2 1224979098644774957 0 2121 3 1224979098644774958 1224979098644774956 1224979098644774954 2121 3 1224979098644774959 1224979098644774957 1224979098644774955 717 3 0 1 3 726 2 1224979098644774960 0 727 2 1224979098644774961 0 2133 2 1224979098644774962 0 2133 2 1224979098644774963 1500 4 0 2147483680 2 1224979098644774929 1000 2133 2 1224979098644774962 -78 5 0 32 2 1224979098644774929 2500 717 3 0 6 3 726 2 1224979098644774964 0 727 2 1224979098644774965 0 2121 3 1224979098644774966 1224979098644774956 1224979098644774964 2121 3 1224979098644774967 1224979098644774957 1224979098644774965 2133 2 1224979098644774968 1224979098644774963 2110 2 1224979098644774968 1224979098644774964 2110 2 1224979098644774968 1224979098644774967 2110 2 1224979098644774968 1224979098644774966 2110 2 1224979098644774968 1224979098644774965 4 0 2147483678 2 1224979098644774968 1224979098644774963 2133 2 1224979098644774962 90 5 0 2133 2 1224979098644774962 45 3 0 3 0 2130 1 1224979098644774962 2133 2 1224979098644774968 1224979098644774963 2110 2 1224979098644774968 1224979098644774954 2110 2 1224979098644774968 1224979098644774959 2110 2 1224979098644774968 1224979098644774958 2110 2 1224979098644774968 1224979098644774955 4 0 2147483678 2 1224979098644774929 1000 2147483678 2 1224979098644774968 1224979098644774963 545 3 1224979098644774930 15 0 2123 3 1224979098644774969 1224979098644774956 20 2123 3 1224979098644774970 1224979098644774957 20 719 2 10 6 720 3 10 1224979098644774969 1 721 3 10 1224979098644774970 1 710 3 1224979098644774971 10 1 717 3 0 1 10 726 2 1224979098644774969 0 727 2 1224979098644774970 0 2107 2 1224979098644774969 100 2107 2 1224979098644774970 100 2107 2 1224979098644774960 100 2107 2 1224979098644774961 100 2123 3 1224979098644774972 1224979098644774969 1224979098644774971 2123 3 1224979098644774973 1224979098644774970 1224979098644774971 2123 3 1224979098644774974 1224979098644774960 1224979098644774948 2123 3 1224979098644774975 1224979098644774961 1224979098644774948 2141 2 1224979098644774976 1224979098644774972 2140 2 1224979098644774977 1224979098644774973 2141 2 1224979098644774978 1224979098644774974 2140 2 1224979098644774979 1224979098644774975 4 0 2147483678 2 1224979098644774977 0 2107 2 1224979098644774976 -1 2105 2 1224979098644774976 360000 3 0 4 0 2147483678 2 1224979098644774979 0 2107 2 1224979098644774978 -1 2105 2 1224979098644774978 360000 3 0 2121 3 1224979098644774944 1224979098644774976 1224979098644774978 2106 2 1224979098644774944 270000 2106 2 1224979098644774944 1224979098644774962 2120 3 1224979098644774962 1224979098644774944 1224979098644774962 4 0 2147483678 2 1224979098644774976 1224979098644774978 2105 2 1224979098644774962 360000 3 0 2112 3 1224979098644774962 -210000 15000 1745 3 1224979098644774912 -2 1 1746 3 1224979098644774912 3 1 3 0 4 0 31 2 1224979098644774950 16 2107 2 1224979098644774962 -1 2105 2 1224979098644774962 180000 3 0 2128 2 1224979098644774938 1224979098644774962 2127 2 1224979098644774939 1224979098644774962 2122 3 1224979098644774980 1224979098644774938 1224979098644774961 2122 3 1224979098644774981 1224979098644774939 1224979098644774960 2122 3 1224979098644774982 1224979098644774939 1224979098644774961 2122 3 1224979098644774983 1224979098644774938 1224979098644774960 2120 3 1224979098644774984 1224979098644774980 1224979098644774981 2121 3 1224979098644774985 1224979098644774982 1224979098644774983 720 3 1 1224979098644774984 0 721 3 1 1224979098644774985 0 3 0 1730 3 1224979098644774912 1 1 5 0 1735 1 1224979098644774912 1732 1 1224979098644774912 3 0 4 0 545 3 1224979098644774930 15 0 32 2 1224979098644774948 500 1747 2 1224979098644774912 1224979098644774918 5 0 2147483680 2 1224979098644774948 500 32 2 1224979098644774915 -1 1714 2 1224979098644774934 1224979098644774930 32 2 1224979098644774934 -1 1747 2 1224979098644774912 1224979098644774915 1745 3 1224979098644774912 -2 1 1730 3 1224979098644774912 3 1 3 0 5 0 4 0 545 3 1224979098644774912 1003 0 505 3 1224979098644774912 1003 1 5 0 545 3 1224979098644774912 1003 2 1073742369 3 1224979098644774912 15 1 3221225502 2 1224979098644774914 0 1073741855 2 1224979098644774923 0 1073741855 2 1224979098644774927 1 1073741855 2 1224979098644774925 2 1073741855 2 1224979098644774925 1 1073741855 2 1224979098644774930 -1 2147483679 2 1224979098644774926 2 1735 1 1224979098644774912 1736 2 1224979098644774912 100 1732 1 1224979098644774912 1745 3 1224979098644774912 -2 1 505 3 1224979098644774912 1003 3 1073741855 2 1224979098644774927 1 31 2 1224979098644774923 0 32 2 1224979098644774915 -1 1747 2 1224979098644774912 1224979098644774915 3 0 3 0 3 0 |
修改前:
mst_town_default town_default 0 -1
Default_town_visit #这个是场景,后面的照着就行#战斗场景一般是You_lead_your_men_to_battle. 野战场景是mst_lead_charge lead_charge
32 0 4100 256 0 1 5 181 180 25 572 573
1 4100 256 0 1 0
2 4100 256 0 1 0
3 4100 256 0 1 0
4 4100 256 0 1 0
5 4100 256 0 1 0
6 4100 256 0 1 0
7 4100 256 0 1 0
8 4 256 0 1 0
9 4 256 0 1 0
10 4 256 0 1 0
11 4 256 0 1 0
12 4 256 0 1 0
13 4 0 0 1 0
14 4 0 0 1 0
15 4 0 0 1 0
16 16 256 0 1 0
17 16 256 0 1 0
18 16 256 0 1 0
19 16 256 0 1 0
20 16 256 0 1 0
21 16 256 0 1 0
22 16 256 0 1 0
23 16 256 0 1 0
24 16 256 0 1 0
25 16 256 0 1 0
26 16 256 0 1 0
27 16 256 0 1 0
28 16 256 0 1 0
29 16 256 0 1 0
30 16 256 0 1 0
31 16 256 0 1 0
19#(这里要加1)
1.000000 0.000000 100000000.000000 0 11 2211 1 1224979098644774912 503 3 1224979098644774912 0 1 4 0 31 2 144115188075856176 1 1 2 936748722493063650 16384 5 0 31 2 144115188075856054 14 1 2 936748722493063650 512 5 0 1 2 936748722493063650 8192 3 0
-19.000000 0.000000 0.000000 0 2 1 1 936748722493063507 1 1 936748722493063725
-22.000000 0.000000 0.000000 1 2075 1 1 0
1.000000 0.000000 0.000000 5 32 2 144115188075855934 0 1780 2 0 0 1710 2 1 144115188075855934 710 3 1224979098644774912 0 1 2147483680 2 1224979098644774912 150 2 1749 1 144115188075855934 2133 2 144115188075855934 0
-21.000000 0.000000 0.000000 4 4 0 31 2 144115188075855932 0 2075 1 1 3 0 0
2.000000 0.000000 0.000000 5 2147483690 0 31 2 144115188075856054 14 2147484188 3 360287970189640707 12 144115188075856236 540 3 360287970189640706 12 144115188075856236 31 2 144115188075855933 0 32 4 0 31 2 144115188075856252 0 2133 2 144115188075856252 1 12 1 1224979098644774912 1718 2 1224979098644774913 1224979098644774912 31 2 1224979098644774913 360287970189640706 2133 2 144115188075856253 1224979098644774912 3 0 5 0 31 2 144115188075856252 1 1712 1 144115188075856253 1702 1 144115188075856253 1700 1 1224979098644774914 1710 2 0 1224979098644774914 1710 2 1 144115188075856253 710 3 1224979098644774915 0 1 728 2 1224979098644774916 0 728 2 1224979098644774917 1 2121 3 1224979098644774918 1224979098644774917 1224979098644774916 4 0 2147483680 2 1224979098644774918 0 2107 2 1224979098644774918 -1 3 0 2122 3 1224979098644774919 1224979098644774918 3 2105 2 1224979098644774915 1224979098644774919 2136 3 1224979098644774920 0 200 2120 3 1224979098644774921 400 1224979098644774920 2147483680 2 1224979098644774915 1224979098644774921 1 1 936748722493063698 1920 1 360287970189640706 2133 2 144115188075856252 2 3 0
2.000000 0.000000 0.000000 3 2147483690 0 31 2 144115188075856054 14 540 3 360287970189640707 12 144115188075856236 31 4 0 31 2 144115188075856254 0 2133 2 144115188075856254 1 12 1 1224979098644774912 1718 2 1224979098644774913 1224979098644774912 31 2 1224979098644774913 360287970189640707 2133 2 144115188075856255 1224979098644774912 3 0 5 0 31 2 144115188075856254 1 1712 1 144115188075856255 1702 1 144115188075856255 1700 1 1224979098644774914 1710 2 0 1224979098644774914 1710 2 1 144115188075856255 710 3 1224979098644774915 0 1 728 2 1224979098644774916 0 728 2 1224979098644774917 1 2121 3 1224979098644774918 1224979098644774917 1224979098644774916 4 0 2147483680 2 1224979098644774918 0 2107 2 1224979098644774918 -1 3 0 2122 3 1224979098644774919 1224979098644774918 3 2105 2 1224979098644774915 1224979098644774919 2136 3 1224979098644774920 0 200 2120 3 1224979098644774921 400 1224979098644774920 2147483680 2 1224979098644774915 1224979098644774921 1 1 936748722493063698 2133 2 144115188075856254 2 3 0
3.000000 0.000000 100000000.000000 5 2147483690 0 31 2 144115188075856054 14 32 2 144115188075855932 0 3221227174 1 144115188075855932 1703 1 144115188075855932 8 1935 0 12 1 1224979098644774912 1702 1 1224979098644774912 1710 2 4 1224979098644774912 1730 2 1224979098644774912 4 3 0 521 3 1224979098644774913 144115188075856236 20 1920 1 1224979098644774913
3.000000 0.000000 100000000.000000 4 2147483690 0 31 2 144115188075856054 14 32 2 144115188075855932 0 1006 0 2 2060 1 864691128455135457 1907 1 0
1.000000 0.000000 0.000000 13 2147483690 0 31 2 144115188075856054 14 32 2 144115188075855932 0 1700 1 1224979098644774912 1702 1 1224979098644774912 1726 3 1224979098644774913 1224979098644774912 0 33 3 1224979098644774913 288230376151712302 288230376151712343 2147483679 2 1224979098644774913 288230376151712305 2147483679 2 1224979098644774913 288230376151712307 2147483679 2 1224979098644774913 288230376151712309 2147483679 2 1224979098644774913 288230376151712319 2147483679 2 1224979098644774913 288230376151712321 2147483679 2 1224979098644774913 288230376151712323 2 521 3 1224979098644774912 144115188075856236 20 1920 1 1224979098644774912
1.000000 0.000000 0.000000 1 32 2 144115188075855932 0 3 1726 3 1224979098644774912 144115188075855932 0 2111 2 144115188075856256 1224979098644774912 1 1 936748722493063702
0.000000 0.000000 0.000000 0 40 1700 1 1224979098644774912 1709 2 1 1224979098644774912 4 0 1702 1 1224979098644774912 2076 4 2 1224979098644774912 9 1 719 2 1 2 3 0 4 0 31 2 144115188075856257 0 2001 1 0 5 0 31 2 144115188075856257 1 722 2 1 300 721 2 1 -600 5 0 31 2 144115188075856257 2 722 2 1 600 721 2 1 -1200 5 0 31 2 144115188075856257 3 722 2 1 2500 721 2 1 -400 723 2 1 -45 3 0 2011 1 1 4 0 71 1 144115188075856794 2105 2 144115188075856257 1 2109 2 144115188075856257 4 2147483679 2 144115188075856257 0 2001 1 1 3 0 4 0 1073741897 1 20 1073741897 1 19 1073741897 1 21 2147485350 1 1224979098644774912 2001 1 0 2133 2 144115188075856257 0 3 0
修改后:
missionsfile version 1
52
mst_town_default town_default 0 -1
Default_town_visit
32 0 4100 256 0 1 5 181 180 25 572 573
1 4100 256 0 1 0
2 4100 256 0 1 0
3 4100 256 0 1 0
4 4100 256 0 1 0
5 4100 256 0 1 0
6 4100 256 0 1 0
7 4100 256 0 1 0
8 4 256 0 1 0
9 4 256 0 1 0
10 4 256 0 1 0
11 4 256 0 1 0
12 4 256 0 1 0
13 4 0 0 1 0
14 4 0 0 1 0
15 4 0 0 1 0
16 16 256 0 1 0
17 16 256 0 1 0
18 16 256 0 1 0
19 16 256 0 1 0
20 16 256 0 1 0
21 16 256 0 1 0
22 16 256 0 1 0
23 16 256 0 1 0
24 16 256 0 1 0
25 16 256 0 1 0
26 16 256 0 1 0
27 16 256 0 1 0
28 16 256 0 1 0
29 16 256 0 1 0
30 16 256 0 1 0
31 16 256 0 1 0
20(=19+1)
0.500000 0.000000 0.000000 0 301 2124 1 1000 12 1 1224979098644774912 1702 1 1224979098644774912 1704 1 1224979098644774912 1707 1 1224979098644774912 2147484193 3 1224979098644774912 1003 1 1714 2 1224979098644774913 1224979098644774912 2133 2 1224979098644774914 -1 4 0 545 3 1224979098644774912 15 0 1770 2 1224979098644774915 1224979098644774912 32 2 1224979098644774913 -1 2133 2 1224979098644774916 0 2133 2 1224979098644774917 -1 6 3 1224979098644774918 0 4 1804 3 1224979098644774919 1224979098644774912 1224979098644774918 32 2 1224979098644774919 0 1570 2 1224979098644774920 1224979098644774919 4 0 31 2 1224979098644774920 10 1825 3 1224979098644774921 1224979098644774912 1224979098644774918 2105 2 1224979098644774916 1224979098644774921 5 0 1073741855 2 1224979098644774920 8 1073741855 2 1224979098644774920 16 31 2 1224979098644774920 17 2133 2 1224979098644774917 1224979098644774919 5 0 1073741855 2 1224979098644774920 2 1073741855 2 1224979098644774920 3 31 2 1224979098644774920 4 2133 2 1224979098644774914 1224979098644774919 3 0 3 0 32 2 1224979098644774917 -1 2147486371 2 1224979098644774917 1048576 2147486371 2 1224979098644774917 268435456 1727 3 1224979098644774922 1224979098644774912 0 2106 2 1224979098644774922 1224979098644774916 32 2 1224979098644774922 0 505 3 1224979098644774912 1003 2 1773 2 1224979098644774923 1224979098644774912 1787 3 1224979098644774924 1224979098644774915 1224979098644774923 1785 3 1224979098644774925 1224979098644774915 1224979098644774923 1784 3 1224979098644774926 1224979098644774915 1224979098644774923 2147483679 2 1224979098644774926 1 2147483679 2 1224979098644774924 2 2147483679 2 1224979098644774924 1 31 2 1224979098644774925 2 1710 2 1 1224979098644774912 1689 2 0 1224979098644774912 727 2 1224979098644774927 0 2133 2 1224979098644774928 100000 2133 2 1224979098644774929 -1 12 1 1224979098644774930 1702 1 1224979098644774930 1704 1 1224979098644774930 1710 2 2 1224979098644774930 1770 2 1224979098644774931 1224979098644774930 1788 2 1224979098644774915 1224979098644774931 710 3 1224979098644774932 1 2 4 0 545 3 1224979098644774930 15 1 2105 2 1224979098644774932 10000 3 0 4 0 1714 2 1224979098644774933 1224979098644774930 32 2 1224979098644774933 -1 1689 2 0 1224979098644774930 727 2 1224979098644774934 0 2121 3 1224979098644774935 1224979098644774934 1224979098644774927 717 3 0 1 2 740 2 1224979098644774936 0 2130 1 1224979098644774936 2128 2 1224979098644774937 1224979098644774936 2127 2 1224979098644774938 1224979098644774936 726 2 1224979098644774939 0 727 2 1224979098644774940 0 741 2 1224979098644774941 0 2122 3 1224979098644774942 1224979098644774939 1224979098644774937 2122 3 1224979098644774943 1224979098644774940 1224979098644774938 2120 3 1224979098644774944 1224979098644774942 1224979098644774943 2107 2 1224979098644774944 1224979098644774934 2108 2 1224979098644774944 1224979098644774941 2131 1 1224979098644774944 2113 1 1224979098644774944 4 0 2147483678 2 1224979098644774944 3000 2123 3 1224979098644774945 1224979098644774935 5 2111 2 1224979098644774945 0 2105 2 1224979098644774945 500 2106 2 1224979098644774932 1224979098644774945 5 0 2105 2 1224979098644774932 5000 3 0 5 0 1726 3 1224979098644774946 1224979098644774930 1 2147483680 2 1224979098644774946 1 2106 2 1224979098644774932 500 3 0 2147483678 2 1224979098644774932 1224979098644774928 2133 2 1224979098644774928 1224979098644774932 2133 2 1224979098644774929 1224979098644774930 3 0 2147483679 2 1224979098644774929 -1 1710 2 3 1224979098644774929 710 3 1224979098644774947 1 3 2133 2 1224979098644774948 1000 4 0 1726 3 1224979098644774946 1224979098644774912 0 32 2 1224979098644774946 0 1570 2 1224979098644774949 1224979098644774946 1073741855 2 1224979098644774949 8 1073741855 2 1224979098644774949 16 31 2 1224979098644774949 17 2076 4 4 1224979098644774912 8 1 2076 4 5 1224979098644774929 9 1 707 2 4 5 1713 2 1224979098644774912 1224979098644774929 4 0 2133 2 1224979098644774950 4000 1763 2 1224979098644774951 1224979098644774912 31 2 1224979098644774951 1 4 0 32 2 1224979098644774928 700 2147483680 2 1224979098644774928 1224979098644774950 2123 3 1224979098644774948 1224979098644774927 2000 2111 2 1224979098644774948 0 3 0 31 2 1224979098644774949 8 4 0 2147483680 2 1224979098644774947 1224979098644774950 1746 3 1224979098644774912 -2 1 1745 3 1224979098644774912 3 0 5 0 32 2 1224979098644774947 1224979098644774950 1745 3 1224979098644774912 -2 1 1746 3 1224979098644774912 3 1 3 0 5 0 31 2 1224979098644774949 8 2147483680 2 1224979098644774947 1224979098644774950 1739 2 1224979098644774952 1224979098644774912 2147483679 2 1224979098644774952 8 1745 3 1224979098644774912 3 1 3 0 3 0 1736 2 1224979098644774912 1224979098644774948 4 0 545 3 1224979098644774929 15 0 2147483678 2 1224979098644774928 12000 4 0 1799 2 6 7 717 3 0 6 1 726 2 1224979098644774953 0 727 2 1224979098644774954 0 717 3 0 6 7 726 2 1224979098644774955 0 727 2 1224979098644774956 0 2121 3 1224979098644774957 1224979098644774955 1224979098644774953 2121 3 1224979098644774958 1224979098644774956 1224979098644774954 717 3 0 1 3 726 2 1224979098644774959 0 727 2 1224979098644774960 0 2133 2 1224979098644774961 0 2133 2 1224979098644774962 1500 4 0 2147483680 2 1224979098644774928 1000 2133 2 1224979098644774961 -78 5 0 32 2 1224979098644774928 2500 717 3 0 6 3 726 2 1224979098644774963 0 727 2 1224979098644774964 0 2121 3 1224979098644774965 1224979098644774955 1224979098644774963 2121 3 1224979098644774966 1224979098644774956 1224979098644774964 2133 2 1224979098644774967 1224979098644774962 2110 2 1224979098644774967 1224979098644774963 2110 2 1224979098644774967 1224979098644774966 2110 2 1224979098644774967 1224979098644774965 2110 2 1224979098644774967 1224979098644774964 4 0 2147483678 2 1224979098644774967 1224979098644774962 2133 2 1224979098644774961 90 5 0 2133 2 1224979098644774961 45 3 0 3 0 2130 1 1224979098644774961 2133 2 1224979098644774967 1224979098644774962 2110 2 1224979098644774967 1224979098644774953 2110 2 1224979098644774967 1224979098644774958 2110 2 1224979098644774967 1224979098644774957 2110 2 1224979098644774967 1224979098644774954 4 0 2147483678 2 1224979098644774928 1000 2147483678 2 1224979098644774967 1224979098644774962 545 3 1224979098644774929 15 0 2123 3 1224979098644774968 1224979098644774955 20 2123 3 1224979098644774969 1224979098644774956 20 719 2 10 6 720 3 10 1224979098644774968 1 721 3 10 1224979098644774969 1 710 3 1224979098644774970 10 1 717 3 0 1 10 726 2 1224979098644774968 0 727 2 1224979098644774969 0 2107 2 1224979098644774968 100 2107 2 1224979098644774969 100 2107 2 1224979098644774959 100 2107 2 1224979098644774960 100 2123 3 1224979098644774971 1224979098644774968 1224979098644774970 2123 3 1224979098644774972 1224979098644774969 1224979098644774970 2123 3 1224979098644774973 1224979098644774959 1224979098644774947 2123 3 1224979098644774974 1224979098644774960 1224979098644774947 2141 2 1224979098644774975 1224979098644774971 2140 2 1224979098644774976 1224979098644774972 2141 2 1224979098644774977 1224979098644774973 2140 2 1224979098644774978 1224979098644774974 4 0 2147483678 2 1224979098644774976 0 2107 2 1224979098644774975 -1 2105 2 1224979098644774975 360000 3 0 4 0 2147483678 2 1224979098644774978 0 2107 2 1224979098644774977 -1 2105 2 1224979098644774977 360000 3 0 2121 3 1224979098644774943 1224979098644774975 1224979098644774977 2106 2 1224979098644774943 270000 2106 2 1224979098644774943 1224979098644774961 2120 3 1224979098644774961 1224979098644774943 1224979098644774961 4 0 2147483678 2 1224979098644774975 1224979098644774977 2105 2 1224979098644774961 360000 3 0 2112 3 1224979098644774961 -210000 15000 1745 3 1224979098644774912 -2 1 1746 3 1224979098644774912 3 1 3 0 4 0 31 2 1224979098644774949 16 2107 2 1224979098644774961 -1 2105 2 1224979098644774961 180000 3 0 2128 2 1224979098644774937 1224979098644774961 2127 2 1224979098644774938 1224979098644774961 2122 3 1224979098644774979 1224979098644774937 1224979098644774960 2122 3 1224979098644774980 1224979098644774938 1224979098644774959 2122 3 1224979098644774981 1224979098644774938 1224979098644774960 2122 3 1224979098644774982 1224979098644774937 1224979098644774959 2120 3 1224979098644774983 1224979098644774979 1224979098644774980 2121 3 1224979098644774984 1224979098644774981 1224979098644774982 720 3 1 1224979098644774983 0 721 3 1 1224979098644774984 0 3 0 1730 3 1224979098644774912 1 1 5 0 1735 1 1224979098644774912 1732 1 1224979098644774912 3 0 4 0 545 3 1224979098644774929 15 0 32 2 1224979098644774947 500 1747 2 1224979098644774912 1224979098644774917 5 0 2147483680 2 1224979098644774947 500 32 2 1224979098644774914 -1 1714 2 1224979098644774933 1224979098644774929 32 2 1224979098644774933 -1 1747 2 1224979098644774912 1224979098644774914 1745 3 1224979098644774912 -2 1 1730 3 1224979098644774912 3 1 3 0 5 0 4 0 545 3 1224979098644774912 1003 0 505 3 1224979098644774912 1003 1 5 0 545 3 1224979098644774912 1003 2 1073742369 3 1224979098644774912 15 1 3221225502 2 1224979098644774913 0 1073741855 2 1224979098644774922 0 1073741855 2 1224979098644774926 1 1073741855 2 1224979098644774924 2 1073741855 2 1224979098644774924 1 1073741855 2 1224979098644774929 -1 2147483679 2 1224979098644774925 2 1735 1 1224979098644774912 1736 2 1224979098644774912 100 1732 1 1224979098644774912 1745 3 1224979098644774912 -2 1 505 3 1224979098644774912 1003 3 1073741855 2 1224979098644774926 1 31 2 1224979098644774922 0 32 2 1224979098644774914 -1 1747 2 1224979098644774912 1224979098644774914 3 0 3 0 3 0
1.000000 0.000000 100000000.000000 0 11 2211 1 1224979098644774912 503 3 1224979098644774912 0 1 4 0 31 2 144115188075856176 1 1 2 936748722493063650 16384 5 0 31 2 144115188075856054 14 1 2 936748722493063650 512 5 0 1 2 936748722493063650 8192 3 0
-19.000000 0.000000 0.000000 0 2 1 1 936748722493063507 1 1 936748722493063725
-22.000000 0.000000 0.000000 1 2075 1 1 0
1.000000 0.000000 0.000000 5 32 2 144115188075855934 0 1780 2 0 0 1710 2 1 144115188075855934 710 3 1224979098644774912 0 1 2147483680 2 1224979098644774912 150 2 1749 1 144115188075855934 2133 2 144115188075855934 0
-21.000000 0.000000 0.000000 4 4 0 31 2 144115188075855932 0 2075 1 1 3 0 0
2.000000 0.000000 0.000000 5 2147483690 0 31 2 144115188075856054 14 2147484188 3 360287970189640707 12 144115188075856236 540 3 360287970189640706 12 144115188075856236 31 2 144115188075855933 0 32 4 0 31 2 144115188075856252 0 2133 2 144115188075856252 1 12 1 1224979098644774912 1718 2 1224979098644774913 1224979098644774912 31 2 1224979098644774913 360287970189640706 2133 2 144115188075856253 1224979098644774912 3 0 5 0 31 2 144115188075856252 1 1712 1 144115188075856253 1702 1 144115188075856253 1700 1 1224979098644774914 1710 2 0 1224979098644774914 1710 2 1 144115188075856253 710 3 1224979098644774915 0 1 728 2 1224979098644774916 0 728 2 1224979098644774917 1 2121 3 1224979098644774918 1224979098644774917 1224979098644774916 4 0 2147483680 2 1224979098644774918 0 2107 2 1224979098644774918 -1 3 0 2122 3 1224979098644774919 1224979098644774918 3 2105 2 1224979098644774915 1224979098644774919 2136 3 1224979098644774920 0 200 2120 3 1224979098644774921 400 1224979098644774920 2147483680 2 1224979098644774915 1224979098644774921 1 1 936748722493063698 1920 1 360287970189640706 2133 2 144115188075856252 2 3 0
2.000000 0.000000 0.000000 3 2147483690 0 31 2 144115188075856054 14 540 3 360287970189640707 12 144115188075856236 31 4 0 31 2 144115188075856254 0 2133 2 144115188075856254 1 12 1 1224979098644774912 1718 2 1224979098644774913 1224979098644774912 31 2 1224979098644774913 360287970189640707 2133 2 144115188075856255 1224979098644774912 3 0 5 0 31 2 144115188075856254 1 1712 1 144115188075856255 1702 1 144115188075856255 1700 1 1224979098644774914 1710 2 0 1224979098644774914 1710 2 1 144115188075856255 710 3 1224979098644774915 0 1 728 2 1224979098644774916 0 728 2 1224979098644774917 1 2121 3 1224979098644774918 1224979098644774917 1224979098644774916 4 0 2147483680 2 1224979098644774918 0 2107 2 1224979098644774918 -1 3 0 2122 3 1224979098644774919 1224979098644774918 3 2105 2 1224979098644774915 1224979098644774919 2136 3 1224979098644774920 0 200 2120 3 1224979098644774921 400 1224979098644774920 2147483680 2 1224979098644774915 1224979098644774921 1 1 936748722493063698 2133 2 144115188075856254 2 3 0
3.000000 0.000000 100000000.000000 5 2147483690 0 31 2 144115188075856054 14 32 2 144115188075855932 0 3221227174 1 144115188075855932 1703 1 144115188075855932 8 1935 0 12 1 1224979098644774912 1702 1 1224979098644774912 1710 2 4 1224979098644774912 1730 2 1224979098644774912 4 3 0 521 3 1224979098644774913 144115188075856236 20 1920 1 1224979098644774913
3.000000 0.000000 100000000.000000 4 2147483690 0 31 2 144115188075856054 14 32 2 144115188075855932 0 1006 0 2 2060 1 864691128455135457 1907 1 0
1.000000 0.000000 0.000000 13 2147483690 0 31 2 144115188075856054 14 32 2 144115188075855932 0 1700 1 1224979098644774912 1702 1 1224979098644774912 1726 3 1224979098644774913 1224979098644774912 0 33 3 1224979098644774913 288230376151712302 288230376151712343 2147483679 2 1224979098644774913 288230376151712305 2147483679 2 1224979098644774913 288230376151712307 2147483679 2 1224979098644774913 288230376151712309 2147483679 2 1224979098644774913 288230376151712319 2147483679 2 1224979098644774913 288230376151712321 2147483679 2 1224979098644774913 288230376151712323 2 521 3 1224979098644774912 144115188075856236 20 1920 1 1224979098644774912
1.000000 0.000000 0.000000 1 32 2 144115188075855932 0 3 1726 3 1224979098644774912 144115188075855932 0 2111 2 144115188075856256 1224979098644774912 1 1 936748722493063702
0.000000 0.000000 0.000000 0 40 1700 1 1224979098644774912 1709 2 1 1224979098644774912 4 0 1702 1 1224979098644774912 2076 4 2 1224979098644774912 9 1 719 2 1 2 3 0 4 0 31 2 144115188075856257 0 2001 1 0 5 0 31 2 144115188075856257 1 722 2 1 300 721 2 1 -600 5 0 31 2 144115188075856257 2 722 2 1 600 721 2 1 -1200 5 0 31 2 144115188075856257 3 722 2 1 2500 721 2 1 -400 723 2 1 -45 3 0 2011 1 1 4 0 71 1 144115188075856794 2105 2 144115188075856257 1 2109 2 144115188075856257 4 2147483679 2 144115188075856257 0 2001 1 1 3 0 4 0 1073741897 1 20 1073741897 1 19 1073741897 1 21 2147485350 1 1224979098644774912 2001 1 0 2133 2 144115188075856257 0 3 0
|
- 0.5, 0, 0, [],
- [
- (set_fixed_point_multiplier, 1000),
- # (get_player_agent_no, ":agent_player"),
- # (agent_get_team ,":team_player", ":agent_player"),
- (try_for_agents, ":agent_no"),
- (agent_is_alive, ":agent_no"),
- (agent_is_human, ":agent_no"),
- (agent_is_non_player, ":agent_no"),
- # (agent_get_troop_id, ":troop", ":agent_no"),
- # (troop_is_hero, ":troop"),
- (neg|agent_slot_eq, ":agent_no", 1003, 1),#slot 1003,1代表非骑射,2代表是骑射,3代表是骑射不执行骑射ai的待命状态
- (agent_get_horse, ":horse_no", ":agent_no"),
- (assign, ":melee_weapon", -1),
- (try_begin),
- (agent_slot_eq, ":agent_no", slot_agent_is_running_away, 0),#非逃跑
- (agent_get_team, ":team_no", ":agent_no"),
- # (neg|teams_are_enemies, ":team_no", ":team_player"),
- ##判断是否为骑射↓
- (gt, ":horse_no", -1),
- (assign, ":thrown_ammo", 0),
- (assign, ":ranged_weapon", -1),
- (try_for_range, ":item", 0, 4),
- (agent_get_item_slot, ":item_weapon", ":agent_no", ":item"),
- (gt, ":item_weapon", 0),
- (item_get_type, ":item_weapon_type", ":item_weapon"),
- (try_begin),
- (eq, ":item_weapon_type", itp_type_thrown),#获取投掷弹药
- (agent_get_ammo_for_slot, ":ammo_for_slot", ":agent_no", ":item"),
- (val_add, ":thrown_ammo", ":ammo_for_slot"),
- (else_try),
- (this_or_next|eq, ":item_weapon_type", itp_type_bow),
- (this_or_next|eq, ":item_weapon_type", itp_type_pistol),
- (eq, ":item_weapon_type", itp_type_musket),
- (assign, ":ranged_weapon", ":item_weapon"),
- (else_try),
- (this_or_next|eq, ":item_weapon_type", itp_type_one_handed_wpn),
- (this_or_next|eq, ":item_weapon_type", itp_type_two_handed_wpn),
- (eq, ":item_weapon_type", itp_type_polearm),
- (assign, ":melee_weapon", ":item_weapon"),
- (try_end),
- (try_end),
- (gt, ":ranged_weapon", -1),
- (neg|item_has_property, ":ranged_weapon", itp_cant_reload_on_horseback),
- (neg|item_has_property, ":ranged_weapon", itp_cant_use_on_horseback),
- (agent_get_ammo, ":ammo", ":agent_no", 0),#除去投掷的弹药↓
- (val_sub, ":ammo", ":thrown_ammo"),
- (gt, ":ammo", 0),
- (agent_set_slot, ":agent_no", 1003, 2),
- ##判断是否为骑射↑
- (agent_get_division, ":class_no", ":agent_no"),#命令的处理↓
- (team_get_weapon_usage_order, ":weapon_usage_order", ":team_no", ":class_no"),
- (team_get_movement_order, ":movement_order", ":team_no", ":class_no"),
- (team_get_hold_fire_order, ":hold_fire", ":team_no", ":class_no"),
- (neg|eq, ":hold_fire", aordr_hold_your_fire),
- (neg|eq, ":weapon_usage_order", wordr_use_melee_weapons),
- (neg|eq, ":weapon_usage_order", wordr_use_blunt_weapons),
- (eq, ":movement_order", mordr_charge),
- #---------------筛出目标敌人↓-------------------------------------------------
- (agent_get_position, pos1, ":agent_no"),
- (agent_get_speed, pos0, ":agent_no"),
- (position_get_y,":speed_y",pos0),
- (assign, ":distance_closest", 100000),#1000m
- (assign, ":enemies_closest", -1),
- (try_for_agents, ":enemies"),
- (agent_is_alive, ":enemies"),
- (agent_is_human, ":enemies"),
- (agent_get_position, pos2, ":enemies"),
- (agent_get_team, ":enemies_team", ":enemies"),
- (teams_are_enemies, ":team_no", ":enemies_team"),
- (get_distance_between_positions, ":distance", pos1, pos2),#获取距离(单位厘米)
- (try_begin),#暂时忽视逃跑的敌人↓
- (agent_slot_eq, ":enemies", slot_agent_is_running_away, 1),
- (val_add, ":distance", 10000),
- (try_end),
- (try_begin),#算出骑兵相对你的横向速度↓
- (agent_get_horse, ":enemies_horse", ":enemies"),
- (gt, ":enemies_horse", -1),
- (agent_get_speed, pos0, ":enemies"),#马速一般6-10,人一般0-4,输出时会乘以fixed_point_multiplier值再输出
- (position_get_y,":speed_enemies",pos0),
- (store_sub, ":speed_1", ":speed_enemies", ":speed_y"),
- (position_transform_position_to_local, pos0, pos1, pos2),
- (position_get_rotation_around_z, ":angle_1", pos0),
- (convert_to_fixed_point, ":angle_1"),
- (store_cos, ":cos", ":angle_1"),
- (store_sin, ":sin", ":angle_1"),
- (position_get_x, ":x1", pos0),
- (position_get_y, ":y1", pos0),
- (position_normalize_origin, ":d1", pos0),
- (store_mul, ":k1", ":x1", ":cos"),
- (store_mul, ":k2", ":y1", ":sin"),
- (store_add, ":speed_relevant", ":k1", ":k2"),
- (val_mul, ":speed_relevant", ":speed_enemies",),
- (val_div, ":speed_relevant", ":d1"),
- (convert_from_fixed_point, ":speed_relevant"),
- (val_abs, ":speed_relevant"),
- (try_begin),#提高骑兵优先度
- (lt, ":speed_relevant", 3000),
- (store_div, ":distance_cavalry", ":speed_1",5),
- (val_max, ":distance_cavalry", 0),
- (val_add, ":distance_cavalry", 500),
- (val_sub, ":distance", ":distance_cavalry"),
- (else_try),#暂时忽视不是冲你来的骑兵
- (val_add, ":distance", 5000),
- (try_end),
- (else_try),#提高无盾步兵的优先度↓
- (agent_get_wielded_item, ":weapon_hold", ":enemies", 1),
- (neg|gt, ":weapon_hold", 1),
- (val_sub, ":distance", 500),
- (try_end),
- (lt, ":distance", ":distance_closest"),
- (assign, ":distance_closest", ":distance"),
- (assign, ":enemies_closest", ":enemies"),
- (try_end),
- #---------------筛出目标敌人↑-------------------------------------------------
- (neq, ":enemies_closest", -1),
- (agent_get_position, pos3, ":enemies_closest"),
- (get_distance_between_positions, ":distance_true", pos1, pos3),
- #----------------减速设置↓-----------------------------------------------------------
- (assign, ":speed_limit", 1000),
- (try_begin),
- (agent_get_wielded_item, ":weapon_hold", ":agent_no", 0),#获取右手武器
- (gt, ":weapon_hold", 0),
- (item_get_type, ":weapon_type", ":weapon_hold"),
- (this_or_next|eq, ":weapon_type", itp_type_bow),
- (this_or_next|eq, ":weapon_type", itp_type_pistol),
- (eq, ":weapon_type", itp_type_musket),
- (agent_get_bone_position, pos4, ":agent_no", 8, 1),
- (agent_get_bone_position, pos5, ":enemies_closest", 9, 1),
- (position_has_line_of_sight_to_position, pos4, pos5),
- (agent_set_look_target_agent, ":agent_no", ":enemies_closest"),
- #让弓骑更积极地射击↓
- (try_begin),
- (assign, ":shoot_distance", 4000),
- (agent_get_attack_action, ":attack_action", ":agent_no"),
- (eq, ":attack_action", 1),#准备攻击
- (try_begin),#减速设置↓
- (gt, ":distance_closest", 700),
- (le, ":distance_closest", ":shoot_distance"),
- (store_div, ":speed_limit", ":speed_y",2000),#
- (val_max, ":speed_limit", 0),
- (try_end),
- (eq, ":weapon_type", itp_type_bow),
- (try_begin),
- (le, ":distance_true", ":shoot_distance"),
- (agent_set_defend_action, ":agent_no", -2, 1),
- (agent_set_attack_action, ":agent_no", 3, 0),
- (else_try),
- (gt, ":distance_true", ":shoot_distance"),
- (agent_set_attack_action, ":agent_no", -2, 1),
- (agent_set_defend_action, ":agent_no", 3, 1),#取消射击
- (try_end),
- (else_try),#非拉弓状态
- (eq, ":weapon_type", itp_type_bow),
- (le, ":distance_true", ":shoot_distance"),#
- (agent_get_combat_state, ":combat_state", ":agent_no"),#获取战斗状态
- (neq, ":combat_state", 8),#能看到
- (agent_set_attack_action, ":agent_no", 3, 1),
- (try_end),
- #让弓骑更积极地射击↑
- (try_end),
- (agent_set_speed_limit, ":agent_no", ":speed_limit"),#限制速度
- #----------------减速设置↑-----------------------------------------------------------
- #----------------绕圈的计算↓---------------------------------------------------------
- (try_begin),
- (agent_slot_eq, ":enemies_closest", slot_agent_is_running_away, 0),
- (lt, ":distance_closest", 12000),
- (try_begin),
- #计算到边界距离↓
- (get_scene_boundaries, pos6, pos7),#左下角和右上角的点,方向朝上
- (position_transform_position_to_local, pos0, pos6,pos1),
- (position_get_x, ":left", pos0),
- (position_get_y, ":down", pos0),
- (position_transform_position_to_local, pos0, pos6,pos7),
- (position_get_x, ":map_width", pos0),
- (position_get_y, ":map_height", pos0),
- (store_sub, ":right", ":map_width", ":left"),
- (store_sub, ":up", ":map_height", ":down"),
- #计算到边界距离↑
- (position_transform_position_to_local, pos0, pos1, pos3),
- (position_get_x, ":enemies_x", pos0),
- (position_get_y, ":enemies_y", pos0),
- (assign, ":effect", 0),
- (assign, ":boundary", 1500),
- (try_begin),#小于10m时后退
- (neg|gt, ":distance_closest", 1000),
- (assign, ":effect", -78),
- (else_try),#大于25m时靠近
- (gt, ":distance_closest", 2500),
- (position_transform_position_to_local, pos0, pos6,pos3),
- (position_get_x, ":left_enemy", pos0),
- (position_get_y, ":down_enemy", pos0),
- (store_sub, ":right_enemy", ":map_width", ":left_enemy"),
- (store_sub, ":up_enemy", ":map_height", ":down_enemy"),
- (assign, ":distance_to_boundary", ":boundary"),#判断离地图边界最近是否在15m内
- (val_min, ":distance_to_boundary", ":left_enemy"),
- (val_min, ":distance_to_boundary", ":up_enemy"),
- (val_min, ":distance_to_boundary", ":right_enemy"),
- (val_min, ":distance_to_boundary", ":down_enemy"),
- (try_begin),
- (lt, ":distance_to_boundary", ":boundary"),
- (assign, ":effect", 90),
- (else_try),
- (assign, ":effect", 45),#45°向心运动
- (try_end),
- (try_end),
- (convert_to_fixed_point, ":effect"),
- #靠近地图边界时的计算↓
- (assign, ":distance_to_boundary", ":boundary"),#判断离地图边界最近是否在15m内
- (val_min, ":distance_to_boundary", ":left"),
- (val_min, ":distance_to_boundary", ":up"),
- (val_min, ":distance_to_boundary", ":right"),
- (val_min, ":distance_to_boundary", ":down"),
- (try_begin),
- (lt, ":distance_closest", 1000),
- (lt, ":distance_to_boundary", ":boundary"),
- (agent_slot_eq, ":enemies_closest", slot_agent_is_running_away, 0),#敌人非逃跑
- #计算地图中点↓
- (store_div, ":map_middle_x", ":map_width", 20),
- (store_div, ":map_middle_y", ":map_height", 20),
- (position_copy_origin, pos10, pos6),
- (position_move_x, pos10, ":map_middle_x", 1),#中点#单位厘米
- (position_move_y, pos10, ":map_middle_y", 1),#中点
- (get_distance_between_positions,":distance_middle", pos10, pos1),
- (position_transform_position_to_local, pos0, pos1, pos10),
- (position_get_x, ":map_middle_x", pos0),
- (position_get_y, ":map_middle_y", pos0),
- #计算地图中点↑
- #算出偏转多少度是朝着地图中点移动↓
- (val_mul, ":map_middle_x", 100),
- (val_mul, ":map_middle_y", 100),
- (val_mul, ":enemies_x", 100),
- (val_mul, ":enemies_y", 100),
- (store_div,":cos_middle",":map_middle_x",":distance_middle"),
- (store_div,":sin_middle",":map_middle_y",":distance_middle"),
- (store_div,":cos_enemies",":enemies_x",":distance_true"),
- (store_div,":sin_enemies",":enemies_y",":distance_true"),
- (store_acos, ":angle_cos", ":cos_middle"),
- (store_asin, ":angle_sin", ":sin_middle"),
- (store_acos, ":angle_cos_enemies", ":cos_enemies"),
- (store_asin, ":angle_sin_enemies", ":sin_enemies"),
- (try_begin),
- (lt, ":angle_sin", 0),
- (val_mul,":angle_cos", -1),
- (val_add,":angle_cos", 360000),
- (try_end),
- (try_begin),
- (lt, ":angle_sin_enemies", 0),
- (val_mul,":angle_cos_enemies", -1),
- (val_add,":angle_cos_enemies", 360000),
- (try_end),
- (store_sub, ":k2", ":angle_cos", ":angle_cos_enemies"),
- (val_sub, ":k2", 270000),
- (val_sub, ":k2", ":effect"),
- (store_add, ":effect", ":k2", ":effect"),
- (try_begin),
- (lt, ":angle_cos", ":angle_cos_enemies"),
- (val_add, ":effect", 360000),
- (try_end),
- #这里算出偏转多少度是朝着地图中点移动↑
- (val_clamp,":effect",-210000, 15000),#这里偏转角做个限制,防止向地图中点向心移动时拿弓撞人
- (agent_set_attack_action, ":agent_no", -2, 1),
- (agent_set_defend_action, ":agent_no", 3, 1),#取消射击
- (try_end),
- #靠近地图边界时的计算↑
- #位置的计算,默认绕敌人切线逆时针移动,effect是偏转角,为正则向心,为负则离心↓
- (try_begin,),#对手枪处理,其向右射
- (eq, ":weapon_type", itp_type_pistol),
- (val_mul, ":effect", -1),
- (val_add, ":effect", 180000),
- (try_end),
- (store_cos, ":cos", ":effect"),#这段是极坐标方程 x=ρcos(θ-90+effect) 和y=ρsin(θ-90+effect)的计算
- (store_sin, ":sin", ":effect"),
- (store_mul, ":k_x1", ":cos", ":enemies_y",),
- (store_mul, ":k_x2", ":sin", ":enemies_x",),
- (store_mul, ":k_y1", ":sin", ":enemies_y",),
- (store_mul, ":k_y2", ":cos", ":enemies_x",),
- (store_add, ":move_x",":k_x1", ":k_x2"),
- (store_sub, ":move_y",":k_y1", ":k_y2"),
- (position_move_x, pos1, ":move_x", 0),#厘米
- (position_move_y, pos1, ":move_y", 0),#厘米
- #位置的计算,默认绕敌人切线逆时针移动,effect是偏转角,为正则向心,为负则离心↑
- (try_end),
- (agent_set_scripted_destination, ":agent_no", pos1, 1),
- (else_try),
- (agent_clear_scripted_mode, ":agent_no"),
- (agent_force_rethink, ":agent_no"),
- (try_end),
- (try_begin),#武器切换的处理
- (agent_slot_eq, ":enemies_closest", slot_agent_is_running_away, 0),
- (gt,":distance_true",500),
- (agent_set_wielded_item, ":agent_no", ":ranged_weapon"),
- (else_try),
- (le, ":distance_true", 500),
- (gt, ":melee_weapon", -1),
- (agent_get_horse, ":enemies_horse", ":enemies_closest"),
- (gt, ":enemies_horse", -1),
- (agent_set_wielded_item, ":agent_no", ":melee_weapon"),
- (agent_set_attack_action, ":agent_no", -2, 1),
- (agent_set_scripted_destination, ":agent_no", pos3, 1),
- (try_end),
- #-----------------绕圈的计算↑---------------------------------------------------------
- (else_try),
- (try_begin),
- (agent_slot_eq, ":agent_no", 1003, 0),
- (agent_set_slot, ":agent_no", 1003, 1),
- (else_try),
- (agent_slot_eq, ":agent_no", 1003, 2),
- (this_or_next|agent_slot_eq, ":agent_no", slot_agent_is_running_away, 1),
- (this_or_next|lt, ":horse_no", 0),
- (this_or_next|eq, ":ammo", 0),
- (this_or_next|eq, ":hold_fire", aordr_hold_your_fire),
- (this_or_next|eq, ":weapon_usage_order", wordr_use_melee_weapons),
- (this_or_next|eq, ":weapon_usage_order", wordr_use_blunt_weapons),
- (this_or_next|eq, ":enemies_closest", -1),
- (neq, ":movement_order", mordr_charge),
- (agent_clear_scripted_mode, ":agent_no"),
- (agent_set_speed_limit, ":agent_no", 100),
- (agent_force_rethink, ":agent_no"),
- (agent_set_attack_action, ":agent_no", -2, 1),
- (agent_set_slot, ":agent_no", 1003, 3),#设为待命状态
- (this_or_next|eq, ":hold_fire", aordr_hold_your_fire),
- (eq, ":ammo", 0),
- (gt, ":melee_weapon", -1),
- (agent_set_wielded_item, ":agent_no", ":melee_weapon"),
- (try_end),
- (try_end),
- (try_end),
- ])
复制代码 要在第一行(不是代码的第一行,而是py的第一行)加入#coding=utf-8才能识别中文
|
说一下思路吧
一:筛出骑射
就是看有没有带弓、有没有箭、和有没有马。骑射是很特殊的.没弹药了就是骑兵,没马了就是步兵(或者弓兵),这时对骑射的一些限制都要解除掉(减速、走位什么的)
一开始呢我是判断手上是不是远程的,这样测试的时候就发现,敌人靠近后就拔刀对砍,不跑了.
二:就是计算距离了,减速方程
三:就是最重要的走位了,一个绕圈方程,还有一个地图边缘的方程(远离最近敌人并向着中点移动) (说实话对这个地图边缘的方程我是很不满意的,但是又想不出什么好的解决办法,一开始想的是绕中点向心运动,这个逆时针还是顺时针方向又烦恼了,又得判断敌人方向,路上有敌人拦路怎么办之类的.)
四:就是一些优化了,比如说,
射击更积极,(一直看着最近的敌人)就是目标在射程内,不在右后方,可以看见,这样筛下来,一般就是能射的时候了.这时没拉弓的让他拉弓,正在拉弓的让他放箭
优先射无盾兵,暂时忽视不是朝你来的骑兵
命令判断:命令不是冲锋,或者命令是停止射击、使用近战武器,就不执行骑射ai.(这时一系列限制也解除掉).
代码的优化呗,统筹思路之后尽量节省代码
再说说我的一些想法
一:代码的优化,我设想能不能弄一个slot,一开始遍历所有agent,如果slot不为1(未检测),这时进行骑射的筛选,不是骑射的slot设为1(已检测),是骑射的slot就设为2(是骑射),然后在判断slot是不是2(是不是骑射),是就执行骑射ai的命令.这样就可以做到精确操纵了,不用再每个单位每次都要检测有没有弓啊,有没有弹药啊,有没有马啊.没有的话就解除减速......之类的没必要的判断已加
二:就是手动瞄准了,这个我测试半天之后才恍然发现,获取单位速度是以单位朝向为y轴正方向的,y的速度就是单位前进/后退的速度(似乎除了投掷agent会平移,其他都不是,speed_x都是0)。太坑了
一些发现
一:get_scene_boundaries,这个操作获得的是地图左下角和右上角的点,朝向上,而不是lav里的左上和右下
二:agent_get_look_position和agent_get_position都是获得agent的坐标矢量,注意是矢量!,不过agent_get_look_position的方向是视点的方向,而agent_get_position获得的是前进方向,骑马、玩家甩镜头的时候就体现出来不同了
三:一开始我以为取消射击是用(agent_set_attack_action,":agent_no", -2,1),试了整天都不行,感觉这句应该是取消之前设置的攻击行为,比如你给他一个拉弓的命令,你如果不给他一个放箭的命令就会一直拉弓,而用(agent_set_attack_action,":agent_no", -2,1)就会取消之前设置的命令,要达到取消射击的效果要用(agent_set_attack_action, ":agent_no", -2, 1), (agent_set_defend_action, ":agent_no", 3, 1),来取消. |
说实话,非常强大,简直影响平衡(或许可以加在boss战上?)其实我想的是把这段代码加在泡菜的黑旗库吉特伏击战中的zZ
有人说追骑射很无奈,额.那我让他近身就送吧...
因学业繁忙,楼主不会再更新了{6-8}
高考结束,我又回来啦.额,回来收拾烂摊子...
6-15
1.使用钝器会停止骑射ai
2.胜利后不会乱跑了,停下来欢呼
3.拉弓不射,举刀不砍的情况应该没有了
4.被近身时拔刀砍人(之前被近身时,我的设定是切换近战武器,停掉骑射ai,这样就会启用战团的ai.但是战团的骑射ai就是...远离目标,所以...接着跑,不砍人..)
5.边界问题稍稍优化
6.相对横向速度较大的骑兵不会被选为目标,就是说如果骑兵不是冲着你来的,不会跑。以前那种一个骑兵冲散大军的情况应该没有了..ba
12-22
1.现在手枪是向左转. (虽然效果不太好就是了)
7-19
1.修复了一些bug+代码精简
2.现在只有在距离敌人40m内才会射击
3.马背上不能使用的远程武器不会被判定为骑射了
4.优先射无盾兵
6-8
修复了近身还强制远程的问题 |
我只单独做了领军者1.436 (源码)
百度网盘:https://pan.baidu.com/s/1i5upOdZ(源码)
测试视频
测试视频2
(坑爹的骑兵绕后系统.)
|
评分
-
查看全部评分
鲜花鸡蛋534550478 在2023-3-16 21:18 送朵鲜花 并说:我非常同意你的观点,送朵鲜花鼓励一下 jakak 在2020-2-25 19:24 送朵鲜花 并说:我非常同意你的观点,送朵鲜花鼓励一下 半世尘埃 在2019-8-23 00:39 送朵鲜花 并说:我非常同意你的观点,送朵鲜花鼓励一下 842769805 在2019-6-7 21:25 送朵鲜花 并说:我非常同意你的观点,送朵鲜花鼓励一下 我的长枪依在 在2018-11-14 20:29 送朵鲜花 并说:很感谢 我的长枪依在 在2018-11-14 20:28 送朵鲜花 并说:谢谢 这个游戏因你而更加有趣 斯基劳骑士 在2018-11-1 17:59 送朵鲜花 并说:我非常同意你的观点,送朵鲜花鼓励一下 吟尸作乐 在2018-9-14 05:10 送朵鲜花 并说:我非常同意你的观点,送朵鲜花鼓励一下 11384729 在2018-8-19 12:14 送朵鲜花 并说:我非常同意你的观点,送朵鲜花鼓励一下 15653910782 在2018-6-21 13:05 送朵鲜花 并说:我非常同意你的观点,送朵鲜花鼓励一下
|