Jump to content

Recommended Posts

Posted

I was trying to solve a problem with a script. I tried ChatGPT, because some programmers said it was good with solving coding problems. 

I asked a question in a normal manner, mentioning which game and where the script came from, and listed the script. Plenty of information for ChatGPT to draw information from the world.

Waited.

Then it got back  to me:  "Sorry. Please contact a member of staff."

 

I suspect we may have to wait for a more shiny future.

Posted (edited)

My reply was not meant to be a downer on @D4ndrone's excellent question - my apologies.  Indeed, it would be interesting if ChatGPT can be used in / with mods! 

 

I just wanted to say  my experience with it (so far) has been very, very poor. So we might have a bit of a struggle. Still, challenges are meant to be overcome!

Edited by Bluegunk
Posted
5 hours ago, Bluegunk said:

My reply was not meant to be a downer on @D4ndrone's excellent question - my apologies.  Indeed, it would be interesting if ChatGPT can be used in / with mods! 

 

I just wanted to say  my experience with it (so far) has been very, very poor. So we might have a bit of a struggle. Still, challenges are meant to be overcome!

 

It's not a big surprise, despite the fact that it seems to have some info on a broad range of subjects it couldn't browse internet directly until very recently, so I don't think it knows about skyrim scripting at all in fact... !

 

But yeah the idea to have chatgpt to mimic the personality of some followers would be excellent, but it would probably require a whole new dialog interface for it to work, and probably be able to type replies instead of just clicking. So the least which can be said is that it wouldn't be easy !

Posted
7 hours ago, zelurker said:

 

It's not a big surprise, despite the fact that it seems to have some info on a broad range of subjects it couldn't browse internet directly until very recently, so I don't think it knows about skyrim scripting at all in fact... !

 

But yeah the idea to have chatgpt to mimic the personality of some followers would be excellent, but it would probably require a whole new dialog interface for it to work, and probably be able to type replies instead of just clicking. So the least which can be said is that it wouldn't be easy !

That is correct. I would assume it is missing the neccesary context. It might be possible to provide it with that and get some limited results though with a bit of trial and error. Technically it should be capable of helping with the scripting quite a lot.

 

@schadoryaI understand the original question to be: Is it possible to use an AI language model via an API in a mod so that you could have realistic conversations with NPCs and basically talk to them about almost anything?
->I think that is technically possible, but will be most likely a feature for some shiny new triple-A game in the future until there are reliable models that can run locally and are open source (right now you pay for API usage using ChatGPT).

 


But there are other options to make use of ChatGPT:

You can use ChatGPT for creating dialog trees and use AI voice tools to make them sound like other voice acted parts in the game. It has been done for other mods already.
-> Chat GPT is great for creating story content quickly

-> For use on scripts it will be harder for ChatGPT because it just lacks the neccesary context. I think that could be provided and then it coud be used to automate a lot of the coding, but that would be a substatial project to set up and requre deep knowledge and experience to even attempt.

 

Though there are smart people out there in the modding scene. I am sure we will find ourselves with some handy new tools at the ready in the future!

  • 1 month later...
Posted (edited)

hi so a bit late but look at this : Chat GPT3.5 

 

 

can you help me write a papyrus script for the game skyrim ?
 
 
ChatGPT

Of course! I can help you with writing a Papyrus script for the game Skyrim. Papyrus is the scripting language used in the Creation Engine, which is the engine used for Skyrim.

Before we start, please provide me with some details about the specific functionality or behavior you want to implement in your script. Additionally, let me know if you have any specific requirements or conditions for the script. The more information you provide, the better I can assist you in writing the script.

 
 
User
i would like to create a mod that each time the player get a dragon soul, the player get also 0.1 add to his base weight.
 
 
ChatGPT

Certainly! To create a mod that increases the player's base weight by 0.1 each time they absorb a dragon soul, you'll need to create a Papyrus script and attach it to an object or quest in Skyrim. Here's an example of how you can achieve this:

  1. Create a new quest:

    • Open the Creation Kit (the modding tool for Skyrim).
    • Click on "File" -> "New" -> "Quest."
    • Give your quest a unique ID and a name (e.g., "DragonSoulWeightQuest").
    • Save the quest.
  2. Attach a script to the quest:

    • Double-click on your quest to open its properties.
    • Go to the "Quest Data" tab.
    • In the "Scripts" section, click on the green plus icon to add a new script.
    • Give the script a unique name (e.g., "DragonSoulWeightScript").
    • Click on the pencil icon next to the script name to open the script editor.
  3. Write the Papyrus script:

    • In the script editor, replace the default script with the following code:
 
papyrusCopy code

ScriptName DragonSoulWeightScript extends Quest

float weightPerSoul = 0.1

Event OnPlayerDragonSoul()
    Actor player = Game.GetPlayer()
    float currentWeight = player.GetBaseActorValue("Weight")
    float newWeight = currentWeight + weightPerSoul
    player.SetBaseActorValue("Weight", newWeight)
EndEvent

 

This script defines a new event called OnPlayerDragonSoul(), which is triggered each time the player absorbs a dragon soul. It retrieves the player's current base weight using GetBaseActorValue("Weight"), adds the desired weight increase per soul, and then sets the new weight using SetBaseActorValue("Weight", newWeight).

  1. Save and compile the script:

    • Save the script by clicking the floppy disk icon or pressing Ctrl+S.
    • Close the script editor.
  2. Finalize the quest and save the mod:

    • In the quest properties, set the "Start Game Enabled" option to "True."
    • Close the quest properties.
    • Save and name your mod file (e.g., "DragonSoulWeight.esp").

Once you have created your mod, you can install it like any other Skyrim mod and activate it in your game. The player's base weight will increase by 0.1 each time they absorb a dragon soul.

Please note that this script assumes you have basic knowledge of using the Creation Kit and modding Skyrim. Make sure to test your mod thoroughly and consider any compatibility issues with other mods you may have installed.

 

Now, unfortunately when I tried to open my creation kit, it crashed, so I have to reinstall my somehow broken Skyrim install , but to me it look quite good. now if someone could actually train a lora with all documentation related to skyrim scrpiting and SKESe i'm sure it will do wonder, plus if you include a buch of modds in the trainning data... 

 

by the way , I wanted this simple mod for years. even asked if someone could write it for me. now don't really know if it work but art least I have a starting point.  

Edited by sigiel
Posted

Small problem: there isn't an Actor Value called weight. (I was having a weirdly similar discussion earlier today). There are some unused ones that you might be able to repurposes, but even then changing the AV won't affect your character's appearance.

 

I suspect you'll need ConsoleUtil (although I'm still not clear on how to get the initial weight) or dive into the world of netimmerse scripts.

 

Still, apart from that, it's not a bad starting point.

Posted
21 hours ago, DocClox said:

Small problem: there isn't an Actor Value called weight. (I was having a weirdly similar discussion earlier today). There are some unused ones that you might be able to repurposes, but even then changing the AV won't affect your character's appearance.

 

I suspect you'll need ConsoleUtil (although I'm still not clear on how to get the initial weight) or dive into the world of netimmerse scripts.

 

Still, apart from that, it's not a bad starting point.

 Skse as the gain weight function.

Posted
1 minute ago, sigiel said:

 Skse as the gain weight function.

 

I missed that. Yeah, that should do the job.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...