just some basic questions from a noob XD
Moderators: Haplo, Lead Developers
just some basic questions from a noob XD
Hey guys! I'm having trouble figuring out how to make an object in TES3CS appear ingame at a certain point in a quest. I was wondering...is this script-related, or is it something really simple and I'm too dumb to figure it out? XD (hint hint* i've only started using the CS again a week ago, but i've used it before.) I'm making a sample mod for the showcase about how Oblivion affects morrowind during TES4, so there are oblivion gates that appear, one in front of Vivec. The problem is....i can't figure out how to make it appear at Journal ID 4 in my book XD lol one more question... how do you make a door (cell-traveling) update your journal the first time you go through it?
Hi. Creating objects (or making them visible) this is script-related. And really simple. This script should be placed at your object. Object must allready be placed in TES3CS!
I have not test this but it should work...Making object appear require more difficult scripting (we can't create teleporting door only can imitate it )
Code: Select all
begin some_script_name
if ( GetJournalindex "Journal ID" < 4 );
disable ;too early for placing it - disabled
return
else
enable ;enabling it when journal >= 4
endif
If ( GetJournalindex "Journal ID" < 5 )
If ( OnActivate == 1 )
Journal "Journal ID" 5
;Adding journal when object is activated...
Activate
;...and running default action for this object (if we have a door, then opening it )
endif
endif
end
Thank you so much Ivan! the script worked flawlessly!
hahaha there was another question i had been trying to remember since i posted my first question last night and i just remembered it now.
Let's say I want the game to update my journal when i reach a certain cell (map grid) is there a way to achieve this? thx
hahaha there was another question i had been trying to remember since i posted my first question last night and i just remembered it now.
Let's say I want the game to update my journal when i reach a certain cell (map grid) is there a way to achieve this? thx
maybe i can make a quick guess? XD lolz
on the second part of the script mentioned above about updating the journal:
if ( GetJournalIndex "JournalID" < # )
if ( OnCell == 3, -9 )
Journal "JournalID" #
;Adding journal when cell is reached...
UpdateCell
endif
endif
end
??? that's my guess...i haven't a clue how the cell script works XD
on the second part of the script mentioned above about updating the journal:
if ( GetJournalIndex "JournalID" < # )
if ( OnCell == 3, -9 )
Journal "JournalID" #
;Adding journal when cell is reached...
UpdateCell
endif
endif
end
??? that's my guess...i haven't a clue how the cell script works XD
In the future, please use the edit button instead of making back-to-back posts; it reduces clutter and won't bring the ire of the moderators down upon you.
As far as updating when the player reaches a cell, there are a couple of ways to do it. IMHO the best way would be to attach a GetDistance script to an object in the cell to update the journal when the player gets near it. For instance, if the player is supposed to find a dead body in that cell, attach the script to the body and have it trigger the entry when the player is close enough to see the body; the same principle applies regardless of what the object is. That way, there's a reason for a journal update instead of the player just randomly popping out their journal and writing something just because they're in a new area. It can also be done with a cell detection script (OnCell is NOT the command, BTW), but I prefer my method.
All that being said, you'd probably get much more accurate and specific help if you posted a showcase thread like I suggested in the other thread you started here. That way, you could upload your file, tell us what you want to accomplish, and we would help you with your specific problem rather than just stabbing in the dark at hypothetical situations. Just a suggestion.
As far as updating when the player reaches a cell, there are a couple of ways to do it. IMHO the best way would be to attach a GetDistance script to an object in the cell to update the journal when the player gets near it. For instance, if the player is supposed to find a dead body in that cell, attach the script to the body and have it trigger the entry when the player is close enough to see the body; the same principle applies regardless of what the object is. That way, there's a reason for a journal update instead of the player just randomly popping out their journal and writing something just because they're in a new area. It can also be done with a cell detection script (OnCell is NOT the command, BTW), but I prefer my method.
All that being said, you'd probably get much more accurate and specific help if you posted a showcase thread like I suggested in the other thread you started here. That way, you could upload your file, tell us what you want to accomplish, and we would help you with your specific problem rather than just stabbing in the dark at hypothetical situations. Just a suggestion.
Q1-77-Tel current progress:
[url=http://tamriel-rebuilt.org/old_forum/viewtopic.php?p=266462#266462]Journals 100% done.[/url]
Practical implementation is now underway.
[url=http://tamriel-rebuilt.org/old_forum/viewtopic.php?p=266462#266462]Journals 100% done.[/url]
Practical implementation is now underway.
ah ok i will do that then. lol and sorry XD i didn't see the 'edit' button for topics before XD i'll start using that from now on. as for the mod, i'm pretty much wrapping things up, but i'm going to make the destination for the gate to oblivion. i'll probably have this mod up on the showcase within a day or two. thanks for your help