GetDead or GetDeacCount

Post » Mon Mar 14, 2011 11:40 pm

I just made about 650 random conversation threads, and suddenly thought there might be something wrong with my use of GetDeadCount. I am using it to check whether an actor is dead, and thence whether or not someone should be talking about them. Did I chose wrong? Should I have used GetDead with specific references? Or is GetDeadCount okay, irregardless of whether it is being called on the subject or target of a dialogue.

Having trouble finding any clear documentation on this, and it is not easy to test whether or not the conversation is being started correctly, as it is random to begin with and might only appear once every couple of hours anyways.

Any wisdom on this area would be appreciated.
User avatar
tiffany Royal
 
Posts: 3340
Joined: Mon Dec 25, 2006 1:48 pm

Post » Mon Mar 14, 2011 3:49 pm

Hey

Ok so GetDeadCount Will get the number of NPCs(With the same EditorID) So if you only have 1 person of Say Example myman01(EditorID)
and he is dead, The getDeadCount Will return 1 if he is dead, if you have 2 of the same editorID GetDeadCount will return 2 Hence Forth.

And
GetDead Returns 1 if the object reference is dead. So you will have to have his object reference.

I know i dont explain things well but im trying to lol

Go to This Site http://geck.gamesas.com/index.php/Category:Functions That has every single Function known to standard fallout 3 NOT FOSE

Thanks Persidon - Hope It Helps
User avatar
Dale Johnson
 
Posts: 3352
Joined: Fri Aug 10, 2007 5:24 am

Post » Tue Mar 15, 2011 2:33 am

Thanks for the info persidon, but actually I've read over all the documentation there already. I think I am looking for more specific info regarding GetDeadCount, and specifically whether or not it needs to be called on the Subject or the Target. It seems to me that since it is checking for the current total number of dead NPCs (with identical EditorIDs), whether or not it is being called on the subject or target should be irrelevant. But is it? I used GetDeadCount in the first place as I noticed Bethesda used it, though for the life of me I can't find the place that I saw it used.
User avatar
Laura
 
Posts: 3456
Joined: Sun Sep 10, 2006 7:11 am

Post » Tue Mar 15, 2011 4:15 am

Use >Edit >Find Text...
User avatar
DAVId MArtInez
 
Posts: 3410
Joined: Fri Aug 10, 2007 1:16 am

Post » Mon Mar 14, 2011 6:21 pm

Ok, i have just done some exclusive testing.

I found a solution, though it might be hard for our 650 conversations.

Ok open up your
1.Open the GECK
2.Load your Plugin
3.Go to the quests : Actor Data -> Quests
4.Scroll down to you main dialogue(Where you have all the greetings ect...)
5.Go to the topics tab
6.Do not select GREETING
7.Go to your topic
8.Make a condition : GetDeadCount [Your actor] > 0.0000
9.And that will work

Ok i found a way to add it into greeting

1.Go to to the topic GRETTING.
2.Find the topic you want said if he is dead.
3. Add this condition : GetDeadCount [YourActor] > 0.0000
4. On the greeting for that NPC(Or numerous like me) and Add this condition : GetDeadCount [yourActor] < 1.0000

It works for me.
If you have downloaded Vault18 - Module 1 Then you will know that all the Trainers have "Cant Stop"
witch is all the same topic. i just added IsInFormList And put all my NPC's into a form

Thanks Persidon - Hope it helps

Also It works For Me


Persidon
User avatar
Emmie Cate
 
Posts: 3372
Joined: Sun Mar 11, 2007 12:01 am

Post » Mon Mar 14, 2011 7:13 pm

I found a couple of cases where it is being used in Vanilla quests/conversations. It seems that it is able to return a number, regardless of whether it is being called on the subject or the target. However, the vanilla examples have it being called on the subject. This is despite that fact that the NPC they are checking is evidently not the subject. It is merely referenced in the text of the dialogue. So from this I am going to assume that it is okay to just leave all my GetDeadCount calls set on the subject. Which means they are set up just like vanilla calls of a similar type. And which also means I don't have to do any work. Yay!
User avatar
emily grieve
 
Posts: 3408
Joined: Thu Jun 22, 2006 11:55 pm

Post » Tue Mar 15, 2011 4:16 am

lol ok
User avatar
Bambi
 
Posts: 3380
Joined: Tue Jan 30, 2007 1:20 pm


Return to Fallout 3