[OSP][Kod] Basit ve geliştirilebilir nüfus sistemi

Currently Viewing (Users: 0, Guests: 1)

Kortlcha

Master Knight
Best answers
0
Nüfus sistemi:
Module_constants'ta en alta:
Code:
slot_center_pop = 10000,
Module_scripts'te en alta;

Code:
("add_population_of_center", [
    (try_for_parties, ":center_numarasi"),
    (try_begin),

#    (is_between, ":center_numarasi", towns_begin, towns_end), # sehirler
    (party_get_slot, ":pop", ":center_numarasi", slot_center_pop),
    (assign, reg9, 10000),
    (try_begin),
    (eq, ":center_numarasi", "p_town_1"),
    (val_add, reg9, 259),
    (party_set_slot, ":center_numarasi", slot_center_pop, reg9),
    (else_try),
    (eq, ":center_numarasi", "p_town_2"),
    (val_sub, reg9, 3527),
    (party_set_slot, ":center_numarasi", slot_center_pop,reg9),
    (else_try),
    (eq, ":center_numarasi", "p_town_3"),
    (val_add, reg9, 2304),
    (party_set_slot, ":center_numarasi", slot_center_pop, reg9),
    (else_try),
    (eq, ":center_numarasi", "p_town_4"),
    (val_add, reg9, 38008),
    (party_set_slot, ":center_numarasi", slot_center_pop, reg9),
    (else_try),
    (eq, ":center_numarasi", "p_town_5"),
    (val_add, reg9, 32395),
    (party_set_slot, ":center_numarasi", slot_center_pop, reg9),
    (else_try),
    (eq, ":center_numarasi", "p_town_6"),
    (val_add, reg9, 28094),
    (party_set_slot, ":center_numarasi", slot_center_pop, reg9), 
    (else_try),
    (eq, ":center_numarasi", "p_town_7"),
    (val_add, reg9, 9002),
    (party_set_slot, ":center_numarasi", slot_center_pop, reg9),
    (else_try),
    (eq, ":center_numarasi", "p_town_8"),
    (val_add, reg9, 6780),
    (party_set_slot, ":center_numarasi", slot_center_pop, reg9),
    (else_try),
    (eq, ":center_numarasi", "p_town_9"),
    (val_add, reg9, 5456),
    (party_set_slot, ":center_numarasi", slot_center_pop, reg9),
    (else_try),
    (eq, ":center_numarasi", "p_town_10"),
    (val_add, reg9, 21855),
    (party_set_slot, ":center_numarasi", slot_center_pop, reg9),
    (else_try),
    (eq, ":center_numarasi", "p_town_11"),
    (val_add, reg9, 6901),
    (party_set_slot, ":center_numarasi", slot_center_pop, reg9),
    (else_try),
    (eq, ":center_numarasi", "p_town_12"),
    (val_add, reg9, 2392),
    (party_set_slot, ":center_numarasi", slot_center_pop, reg9),
    (else_try),
    (eq, ":center_numarasi", "p_town_13"),
    (val_add, reg9, 22809),
    (party_set_slot, ":center_numarasi", slot_center_pop, reg9),
    (else_try),
    (eq, ":center_numarasi", "p_town_14"),
    (val_add, reg9, 247),
    (party_set_slot, ":center_numarasi", slot_center_pop, reg9),
    (else_try),
    (eq, ":center_numarasi", "p_town_15"),
    (val_add, reg9, 2297),
    (party_set_slot, ":center_numarasi", slot_center_pop, reg9),
    (else_try),
    (eq, ":center_numarasi", "p_town_16"),
    (val_add, reg9, 1316),
    (party_set_slot, ":center_numarasi", slot_center_pop, reg9),
    (else_try),
    (eq, ":center_numarasi", "p_town_17"),
    (val_add, reg9, 5590),
    (party_set_slot, ":center_numarasi", slot_center_pop, reg9),
    (else_try),
    (eq, ":center_numarasi", "p_town_18"),
    (val_add, reg9, 2305),
    (party_set_slot, ":center_numarasi", slot_center_pop, reg9),
    (else_try),
    (eq, ":center_numarasi", "p_town_19"),
    (val_add, reg9, 24408),
    (party_set_slot, ":center_numarasi", slot_center_pop, reg9),
    (else_try),
    (eq, ":center_numarasi", "p_town_20"),
    (val_add, reg9, 12),
    (party_set_slot, ":center_numarasi", slot_center_pop, reg9),
    (else_try),
    (eq, ":center_numarasi", "p_town_21"),
    (val_add, reg9, 114),
    (party_set_slot, ":center_numarasi", slot_center_pop, reg9),
    (else_try),
    (eq, ":center_numarasi", "p_town_22"),
    (val_add, reg9, 4),
    (party_set_slot, ":center_numarasi", slot_center_pop, reg9),#koyler icin asagida
    (try_end),
#    (assign, "$base_population_of_center", ":town_base_population"),
    (try_end),
    (try_end),
    ]),
Daha sonra game_start scriptine;
Code:
(call_script, "script_add_population_of_center"),

Bunu bir kıyafetin üstüne göğüslük olarak kullanabilirsiniz:
https://mega.nz/#!aMRBQDbB!fUezQUg61i6x1szDhMClFjcJ1jLbBrrWPe6987NTCtE

İnternetten bulduğum resimler. Toplam 150+ mb. Demir, kum sur, çim vb şeuler var. 40+ demir resmi var.
https://mega.nz/#!zZJhDBYZ!R6YSj0m1lPAMp_0wtwlT_KaA1M6PTIpNNBLavIR1YDk
Eklenebilir.