Getting name of a weapon refenrence

Post » Thu Jun 21, 2012 3:49 pm

Hi

I have a script with a weapon variable

Weapon Property WeaponLeft Auto

But i want affiche the name of the weapon in this variable with debug.notification(WeaponLeft)

But when i call this i have this text : WEAPON[

How i can affiche the name of this weapon?
User avatar
Josee Leach
 
Posts: 3371
Joined: Tue Dec 26, 2006 10:50 pm

Post » Thu Jun 21, 2012 10:27 am

Make the weapon fill an alias, then you can use text replacement I think. I dunno, it depends on what you're trying to do with your script.
User avatar
Ebou Suso
 
Posts: 3604
Joined: Thu May 03, 2007 5:28 am

Post » Thu Jun 21, 2012 5:33 pm

This came up the other day.

It appears that some people get their log entries cut short when using
debug.notification

If you just want to see that it is working OK for testing, then the easiest thing is to use

debug.messagebox
instead of notification

This will pop a box up in game with the value in it (you have to click OK to close that box).

There is another command ...
debug.trace
I THINK, which adds the entry to the logs in full (the other thread discussed this, but I can't remember what was finally said).
User avatar
Jessica Raven
 
Posts: 3409
Joined: Thu Dec 21, 2006 4:33 am

Post » Thu Jun 21, 2012 2:50 pm

Easily with SKSE :

Notification(""+WeaponLeft.GetBaseObject().GetName())
User avatar
Max Van Morrison
 
Posts: 3503
Joined: Sat Jul 07, 2007 4:48 pm

Post » Thu Jun 21, 2012 7:33 pm

thank to seigneur voland
User avatar
tiffany Royal
 
Posts: 3340
Joined: Mon Dec 25, 2006 1:48 pm


Return to V - Skyrim