Aller au contenu

Photo

"Dressing Casual" in Camp


  • Veuillez vous connecter pour répondre
4 réponses à ce sujet

#1
Ambaryerno

Ambaryerno
  • Members
  • 532 messages
Does anyone know if it would be possible to have the game  replace your party members' armor with regular clothing whenever you're in camp?

It's really kind of silly to see everyone sitting around the campfire like they're about to march into battle, ESPECIALLY during the cutscenes where your character is woken up by a vision of the Archdemon...and you find you've been sleeping in full armor. Image IPB

What I'd like to see it do is check the party's equipment when you transition to camp, and if it sees a character dressed in something other than a type of clothing or mage robe it would replace it with some other regular article of clothing. If you pull up inventory it still shows whatever the equipped armor is, and all your weapons/accesories/etc. will still be equipped as normal, but so long as you're in camp your characters will look and be treated as if they were wearing regular clothes (that ought to make the Shriek attack extra exciting....)

When your party leaves camp again the game would then restore your armor.

It's one of those suspension of disbelief things that always bugs me about games like this. Like in the original Baldur's Gate where you walked around with weapons drawn for the entire game, even in town...

#2
Phaenan

Phaenan
  • Members
  • 315 messages
You can quite easily have a script triggered when the peaceful version of the camp load by setting a PRCSCR. (example)

And once in the script, well, a few local vars to remember what characters were wearing, some EquipItem() lines, and you're almost done. The last thing would be to trigger another script to re-equip characters armors when leaving the camp. (either via another PRCSCR entry set as "any" or via events fired when the world map is opened, area left, or whatever)

#3
TimelordDC

TimelordDC
  • Members
  • 923 messages

Ambaryerno wrote...
... If you pull up inventory it still shows whatever the equipped armor is, and all your weapons/accesories/etc. will still be equipped as normal, but so long as you're in camp your characters will look and be treated as if they were wearing regular clothes...


But this won't be possible, as far as I know -> not unless you have cloth variants for all armor and replace them based on what is equipped.

#4
Ambaryerno

Ambaryerno
  • Members
  • 532 messages
Phaenan,



I'm still new to scripting, do you have a walkthrough for that?

#5
Phaenan

Phaenan
  • Members
  • 315 messages
Not sure if there's one, since I'm learning through trials & errors myself rather than by reading stuff so I don't really know what's out there. But I could tell you to first have a look at Craig's Storage addon for an example of the PRCSCR part.

As for the script browsing equipement of every follower, well, I happen to have a routine in my code that pretty much does the same for different reasons :
- Pastie
Your part would be different in lines 79-105 (plus my "pseudo-array" declarations at the top) as what you need to do is :
  • Save each follower gloves/boots/chestpiece tags in local variables (SetLocalString(GetModule(), "Follower_lambda", "equipement_piece"))
  • Remove their gloves/boots/chestpiece with UnquipItem()
  • Equip (eventually after creating them) the clothes on followers with EquipItem()

And in the script dealing with leaving the camp (or arriving at another area) you pretty much need to do the reverse process. Read the tags from the local vars, locate the object in the inventory from its tag, and equip it back.

But that is very basic, and wouldn't include anything about your idea of restoring the "war sets" everytime the inventory window is opened. (that part wouldn't be hard, however I can't think of an event allowing the items to be once more unequiped when the inventory GUI is close)

Modifié par Phaenan, 10 décembre 2009 - 11:46 .