Lanister
Veteran
First off, I'd like to say thanks if you opened the topic and took the time to read it, as I feel like a complete idiot trying to figure out Python. The only programming experience I have is in C#, so looking at this type of scripting is completely foreign to me, and I lack any understanding of it. Now to the point...
I am planning to do a few minor adjustments to the coding to allow for the ability to enjoy the game somewhat as a bandit. In the past I have done extensive modding to the txt files without the help of tools, simply through trial and error, allowing me to completely alter troop trees, factions, items, and so on, but it's still not enough.
There are two things I am trying to do. First is I want to initiate a reputation check when encountering both bandit factions and manhunters in order to determine the dialog that will be presented, allowing for a more immersive roleplaying experience (bad reputation gets you attacked, good reputation allows for friendly discussion). In association with this change, I'd like to make it so friendly encounters could allow for recruitment of the group you've run into for a fair price.
Now typically a system like this for me would be like... an example.
Maybe not the best example, lol, but that's just a quick scribble.
But then I look at some of the scripting in the module system, I just end up all . So I'm not looking for anyone to just hand me a script for what I want done, but if someone could perhaps take the time to explain the following to me...
Just so I can get a better understanding of how calls are performed and what not. And if someone could also explain how I would perform a check on reputation with the faction it would be appreciated.
Thanks again for taking the time to read.
Edit:
I guess the major bits I'm lost on are...
I am planning to do a few minor adjustments to the coding to allow for the ability to enjoy the game somewhat as a bandit. In the past I have done extensive modding to the txt files without the help of tools, simply through trial and error, allowing me to completely alter troop trees, factions, items, and so on, but it's still not enough.
There are two things I am trying to do. First is I want to initiate a reputation check when encountering both bandit factions and manhunters in order to determine the dialog that will be presented, allowing for a more immersive roleplaying experience (bad reputation gets you attacked, good reputation allows for friendly discussion). In association with this change, I'd like to make it so friendly encounters could allow for recruitment of the group you've run into for a fair price.
Now typically a system like this for me would be like... an example.
Code:
if(heroRelationship < 0)
{
Dialog;
battleEvent = true;
Dialog;
removeGold = charGold * 0.25f;
}
else if(heroRelationship >= 0)
{
Dialog;
addCharParty = PartyID;
Destroy (gameObject);
Dialog;
exitMenu;
}
But then I look at some of the scripting in the module system, I just end up all . So I'm not looking for anyone to just hand me a script for what I want done, but if someone could perhaps take the time to explain the following to me...
Code:
[party_tpl|pt_looters|auto_proceed,"start", [(eq,"$talk_context",tc_party_encounter),(encountered_party_is_attacker),], "{!}Warning: This line should never be displayed.", "looters_1",[
(str_store_string, s11, "@It's your money or your life, {mate/girlie}. No sudden moves or we'll run you through."),
(str_store_string, s12, "@Lucky for you, you caught me in a good mood. Give us all your coin and I might just let you live."),
(str_store_string, s13, "@This a robbery, eh? I givin' you one chance to hand over everythin' you got, or me and my mates'll kill you. Understand?"),
(store_random_in_range, ":random", 11, 14),
(str_store_string_reg, s4, ":random"),
(play_sound, "snd_encounter_looters")
]],
[party_tpl|pt_looters,"looters_1", [], "{s4}", "looters_2",[]],
[party_tpl|pt_looters|plyr,"looters_2", [[store_character_level,reg(1),"trp_player"],[lt,reg(1),4]], "I'm not afraid of you lot. Fight me if you dare!", "close_window",
[[encounter_attack]]],
[party_tpl|pt_looters|plyr,"looters_2", [[store_character_level,reg(1),"trp_player"],[ge,reg(1),4]], "You'll have nothing of mine but cold steel, scum.", "close_window",
[[encounter_attack]]],
Just so I can get a better understanding of how calls are performed and what not. And if someone could also explain how I would perform a check on reputation with the faction it would be appreciated.
Thanks again for taking the time to read.
Edit:
I guess the major bits I'm lost on are...
[party_tpl|pt_looters,"looters_1", [], "{s4}", "looters_2",[]],
[party_tpl|pt_looters|plyr,"looters_2", [[store_character_level,reg(1),"trp_player"],[lt,reg(1),4]]
[party_tpl|pt_looters|plyr,"looters_2", [[store_character_level,reg(1),"trp_player"],[lt,reg(1),4]]