异星工厂吧 关注:59,401贴子:368,156
  • 9回复贴,共1

怎么实现弹药箱不同种类弹药总数超过定量就关闭供弹车站

只看楼主收藏回复

通过建立同名车站,判断相连的箱子里是否有足量子弹开启或关闭车站,实现自动供弹。单一种类子弹很容易实现,但是多种子弹混装就很难搞。请问有什么方法或电路可以实现


IP属地:浙江1楼2024-07-01 16:53回复
    写个常量箱,每种弹药负xxx。然后任意小于0开站


    IP属地:上海2楼2024-07-01 19:07
    收起回复
      用运算器把各种弹药的信号都改成统一的信号比如 A 然后判断A不就行了...


      IP属地:山东3楼2024-07-02 14:23
      收起回复
        可以改输出信号,某弹药<总容量的百分之二十输出A图标,所有类型的物资都可以设置成A图标,车站连接信号判断A不等于0时启用,这样就可以及时补充前线了,也不会补充过量的物资导致拆除麻烦


        IP属地:云南来自iPhone客户端4楼2024-07-21 13:21
        回复
          0eNrtnd9u28gVxt+Fl4UUcM7hkJSR7VP0omgaCJQ0tomlRJWkvDUCAylQdFFg0S1QtNgABbp70QJFgO5ur7ZJtk8Tx9mrvkKH+mPRI448n5VErZKb2BI5ZzjfOTNzfjND55E3yGZqWqSTyjt65I1UOSzSaZXmE+/Iu/zuux8+/fzqH9+++vLT11//5tWfH7/8/nev/vjN5eMX/3nx2cvnz1/9+vOr3/798g+/0t+/fLa8dPnNt5cvHl/+/uvX3//t6umTn0+8jpcO80npHT145JXpySTJ6rqq86nSlaSVGus7Jsm4/lQVSTrpllU+9S50sclI/dI7EhedWwueJJVqFKGLhx1PTaq0StWi4vmH8/5kNh6oQtu8LlmOkyzrZsl4qq1N8zJdtP6Rp810OaB7suOd619F6N+TugbdlKrIs/5AnSZnaV7Utw7TYjhLq76+Nrouf5wWZdXfeO6ztKhm+pv1A8zv6CaT8+o0nZx4izrKKql94tcfxtOkSKq6Ku/H9eVZqXRVWV7oplXFTC1KTNSwrrqs6xL1P4UaNZuejmpdOjc+c+f62ReXH15cNG5ZqUWuavFBqSUscvD104zUMB2poqtrHaSTea1tsoiboozSYlG7dx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