Modding Q&A [For Quick Questions and Answers]

Users who are viewing this thread

Status
Not open for further replies.
The search for "how to attach a scene prop to player" returned 3 results, 2 being inconclusive and one basically saying it's possible, but, obviously not saying how. Do you guys know any tutorial or some stuff on how to do that?

Basically I'm trying to attach the deployable pavise to the player in the form of a force shield, so the player has both hands free when running around while still having a shield.
 
What is the best way to add a bit of momentum to an agent? If such a way exists, of course.

And another one: If I'm setting an animation to an agent in MP, do I have to send an agent_set_animation to all clients?
 
Dawiduh said:
I also have Win7 and Thorgrim's works. It goes a bit crazy witht he import and export paths but otherwise it's ok. So what happened that you couldn't activate it?

I could install it, but when I tried opening it, I received a message saying, "Path cannot be found. Error opening the Map Editor"(Something along those lines).  :sad:
 
I make a mountain in M&B, a real mountain, big, huge and everything and i want to use the rock_c texture, but i am not sure how to make that, this texture tiles quite good but too much repeats of the texture looks crappy and to little looks crappy too, because the resolution became worse and worse. Any ideas?
 
Dawiduh said:
I also have Win7 and Thorgrim's works. It goes a bit crazy witht he import and export paths but otherwise it's ok. So what happened that you couldn't activate it?
32 bit ot 64 bit?
i have 64 bit and i couldn't get it to work
 
I tried to add some code to module_mission_templates
but no matter I do i get tuple is not callable error!
I think that all of my commas are in place!

Code:
(1, 0, 0,  [],
   [
                    (try_begin),
	                   (get_player_agent_no,":player"),
				       (try_for_agents, ":agent"),
				       (agent_get_position,pos1,":player"),
				       (agent_is_non_player, ":agent"),
				       (agent_get_position,pos2,":agent"),
				       (get_distance_between_positions,":distance",pos1 ,pos2),
                       (eq,":distance",200),
				       (agent_set_animation, ":agent", "anim_cheer"),
			        (try_end),
	]),
i added it to town center template
 
Hello, I have a question regarding the economy.

I have created several new factions and designed new high level troops, now some of my NPC lords are having desertions due to their inability to support their armies.

What I would like to do is increase the overall wealth in the game so these lords can actually afford their factions troops.

I know I could also change script_game_get_troop_wage to reduce the costs of troops.  If anyone thinks I should go this route, Would they be willing to share some variables they used instead of natives?

Thanks!
 
Dusk Voyager said:
@ SheriffTheRevenger: Delete the try_begin. For each and every line with that or an operation starting with try_for, there must be a try_end in your code.
I deleted it and now instead for try_end I get (agent_set_animation, ":agent", "anim_cheer"), tuple object is not callable!

Code:
 (1, 0, 0,  [],
   [
                    
	                   (get_player_agent_no,":player"),
				       (try_for_agents, ":agent"),
				       (agent_get_position,pos1,":player"),
				       (agent_is_non_player, ":agent"),
				       (agent_get_position,pos2,":agent"),
				       (get_distance_between_positions,":distance",pos1 ,pos2),
                                       (eq,":distance",200),
				       (agent_set_animation, ":agent", "anim_cheer"),
			        
	]),
 
I only said delete the try_begin, not the try_end at the end. There's this already, so add the latter back:
      (try_for_agents, ":agent"),
(1, 0, 0,  [],
  [
              (get_player_agent_no,":player"),
      (try_for_agents, ":agent"),
      (agent_get_position,pos1,":player"),
      (agent_is_non_player, ":agent"),
      (agent_get_position,pos2,":agent"),
      (get_distance_between_positions,":distance",pos1 ,pos2),
                    (eq,":distance",200),
      (agent_set_animation, ":agent", "anim_cheer"),
        (try_end),
]),
 
Dusk Voyager said:
I only said delete the try_begin, not the try_end at the end. There's this already, so add the latter back:
      (try_for_agents, ":agent"),
(1, 0, 0,  [],
  [
              (get_player_agent_no,":player"),
      (try_for_agents, ":agent"),
      (agent_get_position,pos1,":player"),
      (agent_is_non_player, ":agent"),
      (agent_get_position,pos2,":agent"),
      (get_distance_between_positions,":distance",pos1 ,pos2),
                    (eq,":distance",200),
      (agent_set_animation, ":agent", "anim_cheer"),
        (try_end),
]),

I added the try_end now and agai I aget agent_set_animation for tuple object!(saved it few times to make sure I saved it!)

Code:
(1, 0, 0,  [],
   [
                    
	                   (get_player_agent_no,":player"),
				       (try_for_agents, ":agent"),
				       (agent_get_position,pos1,":player"),
				       (agent_is_non_player, ":agent"),
				       (agent_get_position,pos2,":agent"),
				       (get_distance_between_positions,":distance",pos1 ,pos2),
                       (eq,":distance",200),
				       (agent_set_animation, ":agent", "anim_cheer"),
					   (try_end),
			        
	]),
 
SheriffTheRevenger said:
Dusk Voyager said:
I only said delete the try_begin, not the try_end at the end. There's this already, so add the latter back:
      (try_for_agents, ":agent"),
(1, 0, 0,  [],
  [
              (get_player_agent_no,":player"),
      (try_for_agents, ":agent"),
      (agent_get_position,pos1,":player"),
      (agent_is_non_player, ":agent"),
      (agent_get_position,pos2,":agent"),
      (get_distance_between_positions,":distance",pos1 ,pos2),
                    (eq,":distance",200),
      (agent_set_animation, ":agent", "anim_cheer"),
        (try_end),
]),

I added the try_end now and agai I aget agent_set_animation for tuple object!(saved it few times to make sure I saved it!)

Code:
(1, 0, 0,  [],
   [
                    
	                   (get_player_agent_no,":player"),
				       (try_for_agents, ":agent"),
				       (agent_get_position,pos1,":player"),
				       (agent_is_non_player, ":agent"),
				       (agent_get_position,pos2,":agent"),
				       (get_distance_between_positions,":distance",pos1 ,pos2),
                       (eq,":distance",200),
				       (agent_set_animation, ":agent", "anim_cheer"),
					   (try_end),
			        
	]),

Never mind now I just fixed it.
thank you for your help!
 
Status
Not open for further replies.
Back
Top Bottom