Jump to content

Minuos

Members
  • Posts

    26
  • Joined

  • Last visited

Nexus Mods Profile

About Minuos

Minuos's Achievements

Explorer

Explorer (4/14)

  • First Post
  • Collaborator Rare
  • Conversation Starter
  • Week One Done
  • One Month Later

Recent Badges

0

Reputation

  1. No, they aren't teammates. I did toy with the teammate system and that keyword when I was trying to give the player credit for their kills but it overrides/breaks other features of mine that are core to the mod.
  2. Hi all, I have some randomly generated NPCs who I want to draw weapons with the player. I'm currently using OnAnimationEvent() to detect when the player draws or sheathes their weapon and a duplicate package on the NPCs, with the Weapon drawn flag checked and a conditional for if the player's weapon is out. I'd like the change to be instant, but the NPCs only seem to realise they need to draw/sheathe when the player enters or exits sneak mode. I've tried EvaluatePackage(), but no luck. Any suggestions? Solved: OnAnimationEvent() wasn't firing. I just added the following line to both packages under On Begin, which means I could remove all the code pertaining to this from the core script. My NPCs now draw/sheathe when the player does. (akActor as Actor).EvaluatePackage(True)
  3. Hi all, I'm trying to make some workshop objects impossible to store in the workshop once the player has placed them. Does anyone know of a way to do this? When I thought I had a solution, it just made scrapping the object store it instead...
  4. Thanks for the reply. I had a feeling that was the case, but it's still a shame. Unfortunately, I can't use a dummy in this instance, so I'll just have to settle for lowercase.
  5. Hi all, I'm struggling to find any info on this. Say I have an actor that fills an alias to display its name in a message... Anyone know of a way to make that text appear entirely in uppercase letters?
  6. Thanks guys. I played around with this stuff for a while, but this was the key: Including a slight variation of these lines in my conversion script allows me to assign the actors without having to move them at all. Big thanks. All I need to do now is find a way to check if an actor is a provisioner or vendor and my mod's groundwork is pretty much done.
  7. Hi all, My mod has actors that are more like workshop objects than settlers, but they have the WorkshopNPCScript. I've made a function which converts them into settlers, which seems to work except for the fact that they can't be assigned to objects or caravans unless they are sent to another workshop and back, or the player leaves and returns. I'm thinking the best solution to this would be to remove them from whatever workshop they currently belong to before OpenWorkshopSettlementMenu() pops, so the player can reassign them to the workshop without having to move them to a different one first. Anyone know how I might do this?
  8. The message displays the actor's name, which is what the alias is for, so it must be filled in time. I removed the Alias.Clear() line from the script to be certain, but no luck. It just seems like it doesn't work.
  9. Thanks. I was hoping for a way around that but I think it's the only solution.
  10. Hi all, I'm trying to make some options in a messagebox menu only appear under certain conditions. I can get this to work if the player is the target of the condition, but not the actor whose script brings up the message. For example, I want one option to appear if the player OR the actor has > 0 Stimpaks in their inventory. I've tried running the condition on Subject, Target, QuestAlias (on an alias filled by the actor)... It just doesn't work. I can work around it by setting values on the player in the script like: If Self.GetItemCount(Stimpak) > 0 Game.GetPlayer().SetValue(ActorHasStimpak, 1) Else Game.GetPlayer().SetValue(ActorHasStimpak, 0) EndIf And then the conditions on the message button will be based on the player's Stimpak count and AV set by the script. There could potentially be a dozen of these, though, which could slow down how quickly the menu appears. I'd really prefer to keep it simple. Any ideas for getting message button conditions to run on the actor?
  11. Understood. To my knowledge, there's no natural way of doing this via script. If I'm right in thinking that, then the only way I can really conceive of it is by using the reference's Z angle as a basis for some number work for TranslateTo(). Starting point would probably be the fact that a reference's Z angle isn't limited to between 0 and 360, so you'd want to bring it into that range to calculate XY translation based on that. Conditionally adding or subtracting 360 until it's true should work. You'd also need to approach X and Y differently based on whether or not the ref's Z angle was between 180 and 360(0) or 90 and 270, respectively, so the function knows whether to translate XY in positive or negative. Getting the process down might be tricky. How's your maths?
  12. IIRC you can calculate within a function. So: self.TranslateTo(self.GetPositionX() + 10, self.GetPositionY() + 32, self.GetPositionZ(), self.GetAngleX() + 90, self.GetAngleY(), self.GetAngleZ(), 5, 10) That should move the reference like you described without affecting the Z axis or YZ angles, at a movement speed of 5 and rotation speed of 10.
  13. Hi all, Just curious as to whether or not this is possible. For example, if I wanted the player's name to appear entirely in uppercase letters within a message. Anyone know? I know it's possible to capitalize the first letter, but that's not quite what I'm looking for. Edit: My current workaround is just to have a capitalized version of the actor's name as their short name, and call <Alias.ShortName=x> instead. Not as dynamic as I'd hoped, but it works for the actors in my mod.
  14. Hi all, When using messages in sequence, there is a slight delay between one message closing and the next one opening. I've reduced it to ~0.2 seconds by optimising my script but it could be a problem for my mod that NPCs are still moving around during these brief moments, especially if the player goes back and forth between messages. Just wondering if anyone knows of a way to keep the game paused between messages while still having script processes continue to run, or to keep the current message open until the next one appears. Edit: I just made an ability spell with the slow time effect at a magnitude of 0.01. My script adds it to the player when the initial message pops and removes it at the end of the function. Time moves so slowly between messages that it's essentially frozen.
×
×
  • Create New...