for sp you need to change module.ini there is an option there to enable usable props in singleplayer
just a small tip, it's much better to read a code like this:
kraggrim said:I had my suspicions about the else_try things, so it's good to have it spelled out, thanks. This is what I ended up with on my own, which wasn't too far off the mark :
Code:(try_begin), (party_get_num_companions, ":party_size", ":village_no"), (eq, ":party_size", 30), (store_faction_of_party, ":village_faction", ":village_no"), (faction_get_slot, ":reinforcements", ":village_faction", slot_faction_reinforcements_b), (party_add_template, ":village_no", ":reinforcements"), (else_try), (eq, ":party_size", 55), (store_faction_of_party, ":village_faction", ":village_no"), (faction_get_slot, ":reinforcements", ":village_faction", slot_faction_reinforcements_c), (party_add_template, ":village_no", ":reinforcements"), (else_try), (lt, ":party_size", ":ideal_size"), (store_faction_of_party, ":village_faction", ":village_no"), (faction_get_slot, ":reinforcements", ":village_faction", slot_faction_reinforcements_a), (party_add_template, ":village_no", ":reinforcements"), (try_end), ]),
I've crossed it with your version and it performs exactly how I wanted, they fill up with reinforcements_a and have a roughly 10% chance of _b and 5% of _c. I'm hoping this will balance out the loss of risk from implementing the run-away-while-raiding script.
Cheers for the help man, I appreciate it . Do you happen to know if there's an easy way to enable post-battle equipment looting for the village defender fights? The lack of it could be kinda frustrating for the player when they're no longer fighting farmers with rocks.
just a small tip, it's much better to read a code like this:
Code:
(try_begin),
(party_get_num_companions, ":party_size", ":village_no"),
(eq, ":party_size", 30),
(store_faction_of_party, ":village_faction", ":village_no"),
(faction_get_slot, ":reinforcements", ":village_faction", slot_faction_reinforcements_b),
(party_add_template, ":village_no", ":reinforcements"),
(else_try),
(eq, ":party_size", 55),
(store_faction_of_party, ":village_faction", ":village_no"),
(faction_get_slot, ":reinforcements", ":village_faction", slot_faction_reinforcements_c),
(party_add_template, ":village_no", ":reinforcements"),
(else_try),
(lt, ":party_size", ":ideal_size"),
(store_faction_of_party, ":village_faction", ":village_no"),
(faction_get_slot, ":reinforcements", ":village_faction", slot_faction_reinforcements_a),
(party_add_template, ":village_no", ":reinforcements"),
(try_end),
]),