How to save player info (stats, level, etc) into txt file?

Post » Thu Feb 10, 2011 7:08 am

Hello everybody! How (if possible) to save into text file information about character? I mean, stats, level etc... I found on the wiki console command, with which you can display information about the character: tdt, then SetDebugText 9. But how can I keep it all in a file?
User avatar
Nick Pryce
 
Posts: 3386
Joined: Sat Jul 14, 2007 8:36 pm

Post » Thu Feb 10, 2011 8:37 am

why not just right it down on a piece of paper? thats what i do when im changing characters around a new game and dont want to bother leveling up again.
User avatar
Cash n Class
 
Posts: 3430
Joined: Wed Jun 28, 2006 10:01 am

Post » Thu Feb 10, 2011 1:51 pm

Does the console command:
save savename 1
help at all? It generates a text file of everything in the save game (along with making a save file), so it should show all your stats and all.
User avatar
Soraya Davy
 
Posts: 3377
Joined: Sat Aug 05, 2006 10:53 pm

Post » Thu Feb 10, 2011 7:45 am

No.. i tried this one. There is no info about stats or game time etc.. There is only a NPC, Zones, Cells.
User avatar
Captian Caveman
 
Posts: 3410
Joined: Thu Sep 20, 2007 5:36 am

Post » Thu Feb 10, 2011 4:53 pm

Use the get commands so that the information is printed on the console, and use ConScribe to have the console output printed to a log. I am surprised that that console command did not work, however. Why can't you use a save game manager to get this information?
User avatar
CORY
 
Posts: 3335
Joined: Sat Oct 13, 2007 9:54 pm

Post » Thu Feb 10, 2011 9:25 am

Or take a screenshot of stats page and write it to a text file?
User avatar
Tyler F
 
Posts: 3420
Joined: Mon Aug 27, 2007 8:07 pm

Post » Thu Feb 10, 2011 11:59 am

Or take a screenshot of stats page and write it to a text file?

...even simpler. This sounds like an easy mod to make for someone that knows how to use OBSE. (I don't make any mods...)
User avatar
Soku Nyorah
 
Posts: 3413
Joined: Tue Oct 17, 2006 1:25 pm

Post » Thu Feb 10, 2011 9:24 am

Thanx, guys ^_^ I will try ConScribe. Although, I will be glad to see other options "solution", if they exist ;)
User avatar
des lynam
 
Posts: 3444
Joined: Thu Jul 19, 2007 4:07 pm

Post » Thu Feb 10, 2011 11:36 am

I apologize for doubleposting (did it to up the topic), but could you help me with this problem:
The scripting language I do not know. Therefore please help... With the function printc (OBSE) I need to bring up the console the value attribute (for example, luck):
Actually, that something like this (example in C#):
string attribute;
attribute = player.GetActorValue luck;
console.writeline ("Player luck is:", attribute);


Ie, i need to create some variable, then assign a value of some attribute, then this value is output to the console.
Help, please.
User avatar
Lucky Girl
 
Posts: 3486
Joined: Wed Jun 06, 2007 4:14 pm

Post » Thu Feb 10, 2011 8:13 pm

Wow, just wow. The Morrowind community has the http://www.fliggerty.com/phpBB3/cne/cne_legend.php, and we from the Oblivion community tell a modder to "just write it down on a piece of paper".
I'm deeply ashamed.

Antrix, concerning your question: You should ask something like that in the Construction Set forum, not here (for example, in the "Quick Questions, Quick Answers" thread).
However, it works like this:

short attribute ;makes a "short" variable (i.e. whole numbers) called "attribute"set attribute to ( Player.GetAV Luck ) ;sets attribute to player's luckprinttoconsole "Player Luck is: %.0f", attribute ;prints the message to the console - %.0f is the placeholder for a number which has 0 decimal places


You can write many of those %.0f placeholders in a row, and then write an according number of variables behind the message, all separated by a comma. The variables will be shown in the order you wrote them down.
Edit: The actual script is, of course, more complicated than that. If you need help writing the whole thing, I suggest you take a look at the tutorials on the CS Wiki.
User avatar
Kayla Keizer
 
Posts: 3357
Joined: Tue Dec 12, 2006 4:31 pm

Post » Thu Feb 10, 2011 11:32 am

If someone makes this mod, I will be happy to try it out when I get home. It would be a very convenient little mod.
User avatar
Marcin Tomkow
 
Posts: 3399
Joined: Sun Aug 05, 2007 12:31 pm

Post » Thu Feb 10, 2011 8:46 pm

Wow. just wow.

http://cs.elderscrolls.com/constwiki/index.php/GetActorValueC

You can get actor values by numerical codes with OBSE, so you can write a loop. You don't have to sit and write out GetAV for every possible stat. So:

scn takeADump

int av
int counter

Begin Function{}

while(counter <= 71)
let av := getactorvaluec counter
printc "Value %.0f is %.0f" counter av
let counter := counter + 1
loop

End

then attach the following as a script to a spell:

scn myTakeADumpSpellScript

Begin ScriptEffectStart
player.call takeADump
End


Sure it won't tell you what each stat is, but dump it into a excel table, and copy the table from that CS page to another column and you're dandy. Much less work.
User avatar
Rachael
 
Posts: 3412
Joined: Sat Feb 17, 2007 2:10 pm

Post » Fri Feb 11, 2011 12:29 am

Thank you very much! It seems to be figured out. Thanks again!
User avatar
Lory Da Costa
 
Posts: 3463
Joined: Fri Dec 15, 2006 12:30 pm


Return to IV - Oblivion