Edric的最近内容

  1. Modding Q&A [For Quick Questions and Answers]

    Ahadhran 说:
    Ahadhran 说:
    Okay I need to get it so that in darkmod items are sold appropriately for the town. Evil town=all evil items, good=all good items plus variations in-between, I am guessing that this has something to do with town slots or some such but I have no idea how to implement it.

    I realize its a lot to ask someone to walk me through this but I would appreciate it a lot!

    I still need some help in this, I think my post got missed before.

    I will be a little more specific: Is there any way to do it other than just coding the individual probabilities of every single item for every faction like some sort of loop that cycles through items specified by a start and stop the way you can for parties and merchants. Anyway help will be greatly appreciated!

    Maybe you could create a script like this
    插入代码块:
                  	(try_for_range,reg(25), towns_begin, towns_end),
    		(store_faction_of_party, reg(23), reg(25)),
    		(eq, reg(23), "fac_good_faction"),
    		(reset_item_probabilities,0),
    		(try_for_range,reg(26), good_itm_begin, good_itm_end),
    			(set_item_probability_in_merchandise,reg(26),100),
    		(end_try,0),
    	        (troop_add_merchandise,reg(25),itp_type_one_handed_wpn,5),
    	        (troop_add_merchandise,reg(25),itp_type_two_handed_wpn,5),
    	        (troop_add_merchandise,reg(25),itp_type_polearm,5),
    	        (troop_add_merchandise,reg(25),itp_type_shield,6),
    	        (troop_add_merchandise,reg(25),itp_type_bow,4),
    	        (troop_add_merchandise,reg(25),itp_type_crossbow,3),
    	        (troop_add_merchandise,reg(25),itp_type_thrown,5),
    	        (troop_add_merchandise,reg(25),itp_type_arrows,2),
    	        (troop_add_merchandise,reg(25),itp_type_bolts,2),
    	        (troop_ensure_inventory_space,reg(25),merchant_inventory_space),
    	(end_try,0),

    Something like this might work, but I'm a beginner, so I wouldn't count on it.

  2. Modding Q&A [For Quick Questions and Answers]

    I've been trying to figure this out  for a while now.  Is there a way to have a script run when two non player armies battle?  I know I could have a trigger run periodically and check troop numbers in every army, but if one army doesn't loose any troops....  Also I've heard that you can use multiple maps, but I can't find any example of this.
  3. SP Fantasy A Song Of Ice And Fire Mod

    I'm just learning python and the modual system, but I learn fast.
  4. SP Fantasy A Song Of Ice And Fire Mod

    I like the ideas for this mod, and love the books.  If you need any help scripting let me know.  It would be tragic if this attempt to combine two of finer things in life(MB/soif) failed like the last one.
后退
顶部 底部