Jump to content

Help with editing a mod's script.


SharinganUser

Recommended Posts

Hello everyone!

 

First of all, I am completely new here, so my apologies if I'm missing something or being downright stupid.

 

I'm playing Oblivion with the Sharingan and Uchiha Clan Patch http://www.tesnexus.com/downloads/file.php?id=36319 - but I wanted to change some things around.

 

In this version, you get the "Sharingan" at lvl 1, a second version at lvl 15, and a third at lvl 30.

 

However, I doubt that I'll make it to lvl 30, and it's only with the final version of the "Sharingan" that you get some really cool spells and so on.

 

So, I decided to go look through the scripts, and I found a file indicating which lvl these skills are given on. it is called aasharinganquest, however, when I edit it, it will not let me save the file in place of the original mod, and I also get some error messages. The part of the script I'm editing looks like this:

 

 

if Uchiha == 1

if player.getlevel >= 15

set spell to aasharinganlv2uchiha

if player.hasspell spell == 0

player.addspellns aasharinganlv2uchiha

endif

endif

 

if player.getlevel >= 30

set spell to aasharinganlv3uchiha

if player.hasspell spell == 0

player.addspellns aasharinganlv3uchiha

endif

 

I'm changing the values to 5 and 10, to get the sweet stuff earlier.

 

When I try to save the file, I get one of two error messages. If I try to overwrite the original file, it won't let me, and it tells me that it is in use or a master file.

 

When I save it as a new file (with the intent of changing the name to the original's and swapping them) it apparently works, however, I can't find the saved file manually (ie in explorer), thus rendering me unable to rename it. My oblivion, however, still finds it. I can't use it tho, since it tells me that my current savegame is depending on files that are no longer there (ie the original esp file for the uchiha mod)

 

This is not the end of it though. When I re-open my newly saved file (the one I edited but can't rename), I get the following error messages:

 

Could not find referenced object (010054DB) on Script (010046ED) 'aasharinganquest'. Continue playing? yesnoblabla

Could not find referenced object (010046FS) on Script (010046ED) 'aasharinganquest'

Could not find referenced object (0100468D) on Script (010046ED) 'aasharinganquest'

Could not find referenced object (010046D0) on Script (010046ED) 'aasharinganquest'

Could not find referenced object (010046D4) on Script (010046ED) 'aasharinganquest'

Could not find referenced object (010046BF) on Script (010046ED) 'aasharinganquest'

Could not find referenced object (010046C1) on Script (010046ED) 'aasharinganquest'

Could not find referenced object (010054E9) on Script (010046ED) 'aasharinganquest'

Could not find referenced object (010046E6) on Script (010046ED) 'aasharinganquest'

Could not find referenced object (010046CD) on Script (010046ED) 'aasharinganquest'

Could not find referenced object (010046D1) on Script (010046ED) 'aasharinganquest'

Could not find referenced object (0100469E) on Script (010046ED) 'aasharinganquest'

Could not find referenced object (01004686) on Script (010046ED) 'aasharinganquest'

Could not find referenced object (010054E4) on Script (010046ED) 'aasharinganquest'

Could not find referenced object (010054E5) on Script (010046ED) 'aasharinganquest'

Could not find referenced object (010054E7) on Script (010046ED) 'aasharinganquest'

 

I have no idea what that means. Maybe it's redundant including all of them, but here they are.

 

More mystique ensues when I try to find the files included in the original mod. they're all gone! except for the one script that I edited, aasharinganquest.

 

So I'm at a loss as to how I should change this.

 

I'm using TES Construction Set opened via OBSE, just as well as I'm opening Oblivion with OBSE. Otherwise I'm patched including Shivering Isles, Using Windows Vista (which bloweth, I know).

 

Please let me know if you need any additional information, and if it's a dumb question and I've wasted your time, I apologise.

 

Regards, SharinganUser.

Link to comment
Share on other sites

do you still have the mod on your computer??

if so, get the plugin, and overwrite it with what you have

 

now, when you look at it, does it have any master files??

because maybe when you loaded it on the CS, it didn't load the master files as well, and so it didn't work

 

as for the actual script errors that you got, look at the whole script again

are there any objects there, with this reference ids??

because it seems like there are several objects there, that were used in a problematic way

 

also, if you could post the whole script here, it would really help us try to find the problem (though i doubt it's a problem with the mod, but it may be)

Link to comment
Share on other sites

well, as for re-installing the mod (if that's what you meant by overwrite plugin), I already tried that.

 

It does have a master file listed, Oblivion.esm - but I'm pretty sure that it loads itself regardless of me clicking it?

 

I've looked through the script, and I cannot find any of the referenced objects.

 

Here's the entire script:

 

scn aasharinganquest

 

float fquestdelaytime

ref eyes

ref oldeyes

ref race

ref Banished

ref spell

short CD

short Uchiha

 

begin gamemode

 

set fquestdelaytime to 0.1

set race to player.getrace

 

if race == UchihaClan

set Uchiha to 1

endif

 

if Uchiha == 1

if player.getlevel >= 15

set spell to aasharinganlv2uchiha

if player.hasspell spell == 0

player.addspellns aasharinganlv2uchiha

endif

endif

 

if player.getlevel >= 30

set spell to aasharinganlv3uchiha

if player.hasspell spell == 0

player.addspellns aasharinganlv3uchiha

endif

if race == UchihaClan

set spell to aasharinganlipnouchiha

if ispcamurderer == 1 && player.hasspell spell == 0

set spell to aasharinganlipnouchihaever

if player.hasspell spell == 0

player.addspellns aasharinganlipnouchiha

else

player.removespellns aasharinganlipnouchiha

endif

endif

else

set spell to aasharinganlipno

if ispcamurderer == 1 && player.hasspell spell == 0

player.addspellns aasharinganlipno

endif

endif

endif

endif

 

if race != Uchihaclan

player.removespellns aasharinganlv1uchihaab

player.removespellns aasharinganlv2uchihaab

player.removespellns aasharinganlv3uchihaab

player.removespellns aasharinganipnouchihaab

player.removespellns aasharinganlipnouchiha

player.removespellns aasharinganlipnouchihaever

endif

 

if cd == 1

if player.isspelltarget aasharinganlv1uchihaab

if player.isblocking

aaAmaterasuactivatorref3.moveto player

aaAmaterasuactivatorref3.cast aalifedetectsharingan1 player

endif

elseif player.isspelltarget aasharinganlv2uchihaab

if player.isblocking

aaAmaterasuactivatorref3.moveto player

aaAmaterasuactivatorref3.cast aalifedetectsharingan1 player

endif

elseif player.isspelltarget aasharinganlv3uchihaab

if player.isblocking

aaAmaterasuactivatorref3.moveto player

aaAmaterasuactivatorref3.cast aalifedetectsharingan1 player

endif

elseif player.isspelltarget aasharinganlv1ab

if player.isblocking

aaAmaterasuactivatorref3.moveto player

aaAmaterasuactivatorref3.cast aalifedetectsharingan1 player

endif

elseif player.isspelltarget aasharinganlv2ab

if player.isblocking

aaAmaterasuactivatorref3.moveto player

aaAmaterasuactivatorref3.cast aalifedetectsharingan1 player

endif

elseif player.isspelltarget aasharinganlv3ab

if player.isblocking

aaAmaterasuactivatorref3.moveto player

aaAmaterasuactivatorref3.cast aalifedetectsharingan1 player

endif

elseif player.isspelltarget aasharinganipnouchihaab

if player.isblocking

aaAmaterasuactivatorref3.moveto player

aaAmaterasuactivatorref3.cast aalifedetectsharingan1 player

endif

endif

endif

 

if player.getinsamecell Sasukeref

Sasukeref.startcombat player

endif

 

end

Link to comment
Share on other sites

  • Recently Browsing   0 members

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