("cattle_herd",mnf_scale_picture, "You encounter a herd of cattle.", "none", [(play_sound, "snd_cow_moo"), (set_background_mesh, "mesh_pic_cattle"), ], [ ("cattle_drive_away",,"Drive the cattle onward.", [ (party_set_slot, "$g_encountered_party", slot_cattle_driven_by_player, 1), (party_set_ai_behavior, "$g_encountered_party", ai_bhvr_driven_by_party), # CATTLE FOLLOW BEGIN ======================================================================================= (try_begin) (eq,"$cattle_following",1), (party_set_ai_behavior, "$g_encountered_party", ai_bhvr_escort_party), (try_end) # CATTLE FOLLOW END ========================================================================================= (party_set_ai_object,"$g_encountered_party", "p_main_party"), (change_screen_return), ] ), ("cattle_stop",,"Bring the herd to a stop.", [ (party_set_slot, "$g_encountered_party", slot_cattle_driven_by_player, 0), (party_set_ai_behavior, "$g_encountered_party", ai_bhvr_hold), (change_screen_return), ] ), ("cattle_kill",[(assign, ":continue", 1), (try_begin), (check_quest_active, "qst_move_cattle_herd"), (quest_slot_eq, "qst_move_cattle_herd", slot_quest_target_party, "$g_encountered_party"), (assign, ":continue", 0), (try_end), (eq, ":continue", 1)],"Slaughter some of the animals.", [(jump_to_menu, "mnu_cattle_herd_kill"), ] ), ("leave",,"Leave.", [(change_screen_return), ] ), ] ),
Whenever you get a module system error message with something about "is not callable", it almost always means that you missed a comma either at the end of the line above (comma after try_begin in this case), or before the start of an operations block if the last line of it is shown. If the error is something about "indices must be integers, not" a comma is probably missing as well, but before a list block  rather than a tuple (). This is because python reads the module system data as "X()" which is for calling x as a function, or "X", which is for indexing a python data structure, rather than "X,()" or "X,".eswallie said:Code:
There's no deletion/declaration of variables in the Module System scripting language, so no there isn't any manual deletion.Rangerplus10 said:Does this language have a garbage collector like java, or do you need to manually delete every variable that isn't going to be used anymore?
As you seem to have discovered, they are only on the client or the server...you'll need to send them via an event to get the values from one to the other.CTCCoco said:The Global Variables in multiplayer bypass the server and client? I mean, if you set a global variable in a server script, you can use it on client and viceversa?
Adrian160596 said:Hi, i dont know where to ask, but i got a problem when i run the build_mode.bat it says that it doesnt recognize python as a command and blablabla. I just installed python 2.7 and rebooted my pc. Please help.
I just created an account to ask this And sorry for bad english