SureAI

Forums covering SureAI game titles.

https://sureai.net/forum/

Topic title - Adding the Player Chest to other locations

https://sureai.net/forum/viewtopic.php?t=4102

Page 1 of 1
Adding the Player Chest to other locations - by evercharmer
Posted: 30.11.2010 18:11
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.
Re: Adding the Player Chest to other locations - by einnashe
Posted: 30.11.2010 19:29
That does seem to be how it works. Fortunately, the workaround should be pretty simple.
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.
Re: Adding the Player Chest to other locations - by evercharmer
Posted: 30.11.2010 19:45
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.
Re: Adding the Player Chest to other locations - by TheHawk
Posted: 30.11.2010 20:29
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
Re: Adding the Player Chest to other locations - by evercharmer
Posted: 30.11.2010 20:39
Oh, thanks a lot. Now I feel kind of bad, though-- I could have found this myself had I been a bit more paitent.
Re: Adding the Player Chest to other locations - by TheHawk
Posted: 30.11.2010 21:40
Hi.

Don't feel bad. Found something out myself. So we've both learnt something. :D
Re: Adding the Player Chest to other locations - by Garnet
Posted: 09.02.2011 17:38
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... :)
Re: Adding the Player Chest to other locations - by TheHawk
Posted: 11.02.2011 16:32
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:
All times are UTC
Page 1 of 1
Powered by phpBB® Forum Software © phpBB Limited