problem with deployable scene props

正在查看此主题的用户

QBDU07

Sergeant
hellllo , i have a problem when i compil

I add it to my module script to deploy my scene props


插入代码块:
("cf_construct_barricade",
     [(store_script_param_1, ":user_agent"),

     (agent_get_position, pos1, ":user_agent"),
     (position_move_y, pos1,60),
     (set_spawn_position, pos1),

     (try_begin),
     (multiplayer_is_server),
     (spawn_scene_prop, "spr_village_house_e"),
     (try_end),

and i error :

插入代码块:
Exporting quest data...
Exporting info_page data...
Exporting scripts...
Traceback (most recent call last):
  File "process_scripts.py", line 40, in <module>
    save_scripts(variables,variable_uses,scripts,tag_uses,quick_stri
  File "process_scripts.py", line 19, in save_scripts
    save_statement_block(file,convert_to_identifier(func[0]), 0,func
e_list,variable_uses,tag_uses,quick_strings)
  File "C:\Users\QB\Desktop\qb\Module_system 1.134\process_operation
449, in save_statement_block
    save_statement(ofile,opcode,no_variables,statement,variable_list
es,local_vars, local_var_uses,tag_uses,quick_strings)
  File "C:\Users\QB\Desktop\qb\Module_system 1.134\process_operation
398, in save_statement
    ofile.write("%d %d "%(opcode, lenstatement))
TypeError: %d format: a number is required, not str
Exporting mission_template data...
Exporting game menus data...
exporting simple triggers...
exporting triggers...

what is a problem ?? thanks
 
hi , I read the tutorial arch3r, but I do not understand, could you give me an example, thank you

插入代码块:
check_weapon_exemple native object please = (ti_on_scene_prop_use,
    [
      (store_trigger_param_1, ":agent_id"),
      (store_trigger_param_2, ":instance_id"),

      (multiplayer_is_server),
      (assign, ":cost", 600), #gold required for spawning a weapon
      (agent_get_player_id,":player_no",":agent_id"),
      (try_begin),
        (player_is_active, ":player_no"),
        (player_get_gold, ":player_gold", ":player_no"),
        (gt, ":player_gold", ":cost"), 
        (assign, ":weapon", "itm_exemple native object please"),

        (prop_instance_get_position, pos1, ":instance_id"),
        (position_move_z,pos1,-5),
        (set_spawn_position, pos1),
        (spawn_item, ":weapon"),

        (val_sub, ":player_gold", ":cost"), #subtracting the cost from player money
        (player_set_gold, ":player_no", ":player_gold", multi_max_gold_that_can_be_stored),
      (try_end),
    ])

  ("buy_sword",spr_use_time(1),"sword_exemple native object please","bo_exemple native object please", [
      check_exemple native object please
      ]),
 
后退
顶部 底部