【rpze】发贴测试
 
Notifications
Clear all

【rpze】发贴测试


buhuiize
Posts: 20
Topic starter
(@buhuiize)
小丑压制
Joined: 4 years ago
from rpze.basic.inject import InjectedGame
from rpze.iztest.iztest import IzTest
from rpze.rp_extend import Controller
from rpze.flow.flow import FlowManager
from rpze.flow.utils import until
from rpze.flow.utils import delay
from rpze.iztest.operations import place
from rpze.iztest.cond_funcs import until_plant_n_shoot
from rpze.iztest.cond_funcs import until_plant_last_shoot
from rpze.iztest.cond_funcs import until_n_butter
from rpze.iztest.plant_modifier import set_puff_x_offset
from rpze.iztest.dancing import partner
def fun(ctler: Controller):
iz_test = IzTest(ctler).init_by_str('''
1000 -1
5-0
.....
.....
.....
..5..
.....
kg
0
5-6''')
#tt_hp = [0 for _ in range(67)]
#totsun = 75000
@iz_test.flow_factory.add_flow()
async def place_zombie(fm:FlowManager):
#nonlocal totsun
yz = iz_test.ground["4-3"]
await until_plant_last_shoot(yz).after(100)
place("xg 5-6")
#totsun += 50
#@iz_test.on_game_end()
#def _(res:bool):
#nonlocal totsun
# if res == False:
# totsun += 75
iz_test.start_test(jump_frame=1,speed_rate=1, print_interval=10)
#print(totsun)
#print(tt_hp)
with InjectedGame(r"D:\pvz\Plants_vs_Zombies_V1.0.0.1051_EN\PlantsVsZombies.exe") as game:
fun(game.controller)

1. 小鬼隔着旁路3列杨桃过空行,卡相位

 

Scroll to Top
en_USEnglish
Powered by TranslatePress »