Domovoi
Recruit

插入代码块:
(0.1, 0, ti_once, [], [(assign,"$month",1)]),
(0.1, 0, ti_once, [], [(assign,"$year_day",1)]),
(0.1, 0, ti_once, [], [(assign,"$season",1)]),
(1.0, 0, (30.0 * 24.0), [eq,"$month",9], [(val_add,"$month",1)]),
(1.0, 0, (30.0 * 24.0), [eq,"$month",4], [(val_add,"$month",1)]),
(1.0, 0, (30.0 * 24.0), [eq,"$month",6], [(val_add,"$month",1)]),
(1.0, 0, (30.0 * 24.0), [eq,"$month",11], [(val_add,"$month",1)]),
(1.0, 0, (31.0 * 24.0), [eq,"$month",1], [(val_add,"$month",1)]),
(1.0, 0, (31.0 * 24.0), [eq,"$month",2], [(val_add,"$month",1)]),
(1.0, 0, (31.0 * 24.0), [eq,"$month",3], [(val_add,"$month",1)]),
(1.0, 0, (31.0 * 24.0), [eq,"$month",5], [(val_add,"$month",1)]),
(1.0, 0, (31.0 * 24.0), [eq,"$month",7], [(val_add,"$month",1)]),
(1.0, 0, (31.0 * 24.0), [eq,"$month",8], [(val_add,"$month",1)]),
(1.0, 0, (31.0 * 24.0), [eq,"$month",10], [(val_add,"$month",1)]),
(1.0, 0, (31.0 * 24.0), [eq,"$month",12], [(val_sub,"$month",11)]),
(1.0, 0, (24.0), [neq,"$year_day",365], [(val_add,"$year_day",1)]),
(1.0, 0, (24.0), [eq,"$year_day",365], [(val_sub,"$year_day",364)]),
#seasons
(1.0, 0, (24.0), [eq,"$year_day",335], [
(val_sub,"$season",3),
(tutorial_box,"str_summer"),
]),
(1.0, 0, (24.0), [eq,"$year_day",60], [
(val_add,"$season",1),
(tutorial_box,"str_autumn"),
]),
(1.0, 0, (24.0), [eq,"$year_day",152], [
(val_add,"$season",1),
(tutorial_box,"str_winter"),
]),
(1.0, 0, (24.0), [eq,"$year_day",244], [
(val_add,"$season",1),
(tutorial_box,"str_spring"),
]),
This spits out an error when i try to compile. I've no idea why, ive gone over it many times and rewritten parts, but to no avail.
The error is as follows.
exporting triggers...
Traceback (most recent call last):
File "process_dialogs.py", line 157, in ?
save_triggers(variables,triggers)
File "process_dialogs.py", line 51, in save_triggers
save_statement_block(file,trigger[trigger_conditions_pos] , variable_list)
File "E:\random art\bushranger\.780\process_operations.py", line 195, in save_
statement_block
save_statement(ofile,statement,variable_list,local_vars)
File "E:\random art\bushranger\.780\process_operations.py", line 189, in save_
statement
ofile.write("%d %d %d %d "%(opcode,operand1,operand2,operand3))
TypeError: int argument required
The rest of the output is completely normal. If anyone could give me an idea of what to look for, it'd be nice...
