Adding the Player Chest to other locations

Moderator: Moderatoren

8 Beiträge Seite 1 von 1
evercharmer
Schurke
Schurke
Beiträge: 24
Registriert: 22.11.2010 10:22
Hat sich bedankt: 2 Mal


Can it be done? I'm making a player home, and it would be nice if I could do that.
I looked at the script, though, and it looks like changes would have to be made to the scripts of each of the chests, but that would make it incompatible to other mods that messed with the chests; it would just become a mess I'm not willing to inflict on anybody's game. Can anyone look at the scripts to make sure if this is the case? I don't know much about scripting, I just want to know if it's possible.
einnashe
Stadtwache
Stadtwache
Beiträge: 58
Registriert: 13.09.2010 17:59
Danksagung erhalten: 1 Mal


That does seem to be how it works. Fortunately, the workaround should be pretty simple.
Code: Alles auswählen
SCN MyChestScript
Begin OnActivate
	Player.Activate PlayerSichereTruheAbteiTirinRef 1
End
This should make activating the new chest actually activate the Tirin Abbey chest from a distance. I haven't tested it, though, so there might be some scripting arcana I'm not thinking of off the top of my head.
evercharmer
Schurke
Schurke
Beiträge: 24
Registriert: 22.11.2010 10:22
Hat sich bedankt: 2 Mal


I'll be sure to try that out. If it works, could I release my house mod with it?

Edit: No dice, man. When I try to activate the chest nothing happens, the name of the chest just fades out for a second like sometimes happens when you try to activate named objects that don't actually do anything.

Edit 2: Doesn't work with it as a container or an activator. Still, thinks for trying to help me out.
TheHawk
Weltenwandeler
Weltenwandeler
Beiträge: 473
Registriert: 12.08.2010 13:04


Hi.

Okay found this for you in, "aBE1container sicheretruhe".

SCN PlayerSichereTruheMOD

; if you are making a mod for Nehrim and need a script for a safe container
; that is connected to the other safe containers around the world, use this
; one, rather than trying to copypaste any of the other scripts.

short DoOnce
short QuestFin

Begin OnActivate
if ( isActionref player )
set DoOnce to 1
"PlayerSichereTruheAbteiTirinRef".Activate player 1
endif
End

Begin MenuMode
if ( DoOnce == 1 )
Set DoOnce to 0
if ( QuestFin == 0 )
SetStage NQ06 5
Set QuestFin to 1
endif
endif
End
evercharmer
Schurke
Schurke
Beiträge: 24
Registriert: 22.11.2010 10:22
Hat sich bedankt: 2 Mal


Oh, thanks a lot. Now I feel kind of bad, though-- I could have found this myself had I been a bit more paitent.
TheHawk
Weltenwandeler
Weltenwandeler
Beiträge: 473
Registriert: 12.08.2010 13:04


Hi.

Don't feel bad. Found something out myself. So we've both learnt something. :D
Garnet
Enderal Team
Enderal Team
Sterndeuter
Sterndeuter
Beiträge: 164
Registriert: 24.11.2010 12:10
Danksagung erhalten: 8 Mal


Doesn't anybody used this script. I put the Secure Chest in my new house, do few testing. wait for three days and seems that works fine. In any case like to know other experiences, if one day release this mod... :)
TheHawk
Weltenwandeler
Weltenwandeler
Beiträge: 473
Registriert: 12.08.2010 13:04


Hi
@Garnet - sorry, found the script ages ago, which is why I posted. Was going to use but the house I was trying to mod was a little to complex for me at the time. So gave up and did not use it. :roll:
8 Beiträge Seite 1 von 1

Wer ist online?

Mitglieder in diesem Forum: 0 Mitglieder und 5 Gäste