Jump to content

Script variable to know your follower killed someone?


Vortaka

Recommended Posts

Hi... Well, the explosion seems to be the trouble here... I played with the script, changed one thing after another (always keeping the default value at hand) without anyluck what so ever... The scripts themselves aren't "executed" (except the Quest one).

 

So, if I understand correctly, the way this "explosion" works is this:

 

It makes you the target and launch "KillerToken" (an object (here my unplayable armor))

that starts my "KillerTokenScript" when touching the npc.

With the help of the Actor Effet and the Base Effect (or the other way around) (BaseEffect launch a script to see if a token is to be added).

 

But it doesn't go "down" to there... It's like the explosion itself isn't started by the Quest Script...

I even tried, after checking the forum, to add an object effect (that lauched the base effect too) but it didn't help... (My scripts all start with a showmessage, to help me out, but even if they kill 10 ants and even a rat, nothing happens...). And, to be on the safe side, I don't even touch the ants or the rat...

 

Vortaka

 

P.S.

 

After giving my desk some head bunt, I kind of a though of something... (Just notify me if it isn't right). The explosion (ref explosion bla bla bla) is an object right? It's a explosion object right? And it's THAT object that makes the explosion happen, right? If so, I've been running around in circle looking for a problem that WASN'T there... (I had NO explosion object... I though the explosion was a "made up" game thing... Ouch... Now that's low...)

 

I think I understand why my explosion never worked... UUrrgg... Well, I'm gonna try to create one (maybe as big as the Megaton nuke or something). That might work, right?

 

And, by any chance, would by being a reference of my KillerTokenExplode, I would call it as: ref KillerTokenExplodeREF ??? (I don't understand what the references are pointing to... If I "ref KillerTokenExplode" it tells me that it's an invalid variable).

Link to comment
Share on other sites

Well, now all my scripts work! Yippi! However, the "KillerTokenScript" (the one that check if the kill was made by Kelsey or Jessi) is run only once, and that, at the beginning... I'll check with my other scripts and everyone if there is a reason for it... One thing I remember, I saw it in my scripts and on the net... Begin ScriptEffectStart, or something like that, and Begin ScriptEffectUpdate, or something like that again... Might change something...

 

Well, we're one step closer to victory! (If I ever send my mod public, you'll have your thanks in the txt file as well as Reneer...). Oh, hey, before I forget! Thanks again!!! :)

 

Vortaka

 

Well, It seems to get better and better!

News time children! Things are progressing nicely... If only the builder was a little faster... Anyway! The only problem now is that the ItemCount doesn't really work... My "if" with IsActor gives me my message... The one with GetDead gives me my message... But the GetItemCount doesn't... And, of course, the Item cannot be added by such means...

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

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