Yukisuna
Recruit
Hello, im completely new to this modding community, and to modding this game.
I've recently picked up modding for my now favourite game. I've been modding Star Wars Battlefront II for a couple years and they are very similar in the file-and-code setup. I just have some simple questions regarding strings and the like.
First of all, as i have no clue to what extent strings and scripts can make operations happen. Is it possible to make the players name show up in Troop names, like a title? I'm working on a troop tree for the player faction, that can be recruited once you have established a faction for yourself. I would like to have the name alter based on the name of the player. I understand that > {playername} troop_name < will not work, but is this possible to change this without writing a hundred lines of code?
Secondly, (and this is probably advanced) would it be possible to create a script to make the AI soldiers under your command aim where you are aiming? I'm creating spearmen with throwing spears (REAL Throwing spears, not the tiny Jarid replica) and to keep it somewhat realistic i had to slow down the projectile velocity, resulting in the spears falling to the ground rather quickly and an uncomfortably short range. (of course, this is in fact very balanced considering how strong the spears ended up being compared to other throwing items) I know the advanced commands are easy to implement (i have already done so) but would it be able to chain the "fire on my command"-string with a "fire at my target"-esque script? This would allow for, say, "our arrows will blot out the sun"-style volleys. Accuracy is of no value as long as the soldiers start throwing the spears before the enemy forces crash head to head with them.
I've recently picked up modding for my now favourite game. I've been modding Star Wars Battlefront II for a couple years and they are very similar in the file-and-code setup. I just have some simple questions regarding strings and the like.
First of all, as i have no clue to what extent strings and scripts can make operations happen. Is it possible to make the players name show up in Troop names, like a title? I'm working on a troop tree for the player faction, that can be recruited once you have established a faction for yourself. I would like to have the name alter based on the name of the player. I understand that > {playername} troop_name < will not work, but is this possible to change this without writing a hundred lines of code?
Secondly, (and this is probably advanced) would it be possible to create a script to make the AI soldiers under your command aim where you are aiming? I'm creating spearmen with throwing spears (REAL Throwing spears, not the tiny Jarid replica) and to keep it somewhat realistic i had to slow down the projectile velocity, resulting in the spears falling to the ground rather quickly and an uncomfortably short range. (of course, this is in fact very balanced considering how strong the spears ended up being compared to other throwing items) I know the advanced commands are easy to implement (i have already done so) but would it be able to chain the "fire on my command"-string with a "fire at my target"-esque script? This would allow for, say, "our arrows will blot out the sun"-style volleys. Accuracy is of no value as long as the soldiers start throwing the spears before the enemy forces crash head to head with them.