Requesting help with a script

Post » Tue Dec 29, 2009 6:17 pm

Hiya.

I've got a little script(think Cannibal) in my mod. It's basic, it works, it does what it should.
But I would like a little extra; hence, is it possible to make the script dismember the target as well?

That's all I wanted to know, really. I have tried looking through the scripts already in game, but I haven't found anything that could help.

Thanks in advance. :)
User avatar
Jessica Colville
 
Posts: 3349
Joined: Wed Oct 18, 2006 6:53 pm

Post » Tue Dec 29, 2009 6:29 am

Hiya.

I've got a little script(think Cannibal) in my mod. It's basic, it works, it does what it should.
But I would like a little extra; hence, is it possible to make the script dismember the target as well?

That's all I wanted to know, really. I have tried looking through the scripts already in game, but I haven't found anything that could help.

Thanks in advance. :)

Well, assuming you're not eating alive targets, you may be able to use http://geck.gamesas.com/index.php/KillActor, as it's dead already you can just use the Dismember limb integer. Not sure if this will work on already dead targets though.
User avatar
naomi
 
Posts: 3400
Joined: Tue Jul 11, 2006 2:58 pm

Post » Tue Dec 29, 2009 12:29 pm

Thanks, I'll try it out. :)

Edit:
Didn't seem to work, atleast, I couldn't seem to make it work.

This is how the script looks so far, it's activated through an "Activate - Add Activate Choice - Button" entry from a perk:
StartCannibal Player
Player.AddItem NVCannibalFood2 1

User avatar
Shirley BEltran
 
Posts: 3450
Joined: Wed Jul 26, 2006 4:14 pm

Post » Tue Dec 29, 2009 12:50 pm

Thanks, I'll try it out. :)

Edit:
Didn't seem to work, atleast, I couldn't seem to make it work.

This is how the script looks so far, it's activated through an "Activate - Add Activate Choice - Button" entry from a perk:
StartCannibal Player
Player.AddItem NVCannibalFood2 1


Not sure what you mean. I assume you're activating a dead human/creature in sneak mode, then give the option to eat a body part?
User avatar
-__^
 
Posts: 3420
Joined: Mon Nov 20, 2006 4:48 pm

Post » Tue Dec 29, 2009 9:08 am

Yes, exactly. :)

I tried to follow the instructions from the page you linked me to, but it wouldn't allow me to close the script pop-up box after adding that line, so I assume that means it wasn't accepted/working.
User avatar
Charlotte Lloyd-Jones
 
Posts: 3345
Joined: Fri Jun 30, 2006 4:53 pm

Post » Tue Dec 29, 2009 11:15 am

Well, assuming you're not eating alive targets, you may be able to use http://geck.gamesas.com/index.php/KillActor, as it's dead already you can just use the Dismember limb integer. Not sure if this will work on already dead targets though.


That would work for Actors irrespective of their GetDead state, yeah.

That is, KillActor, when paired with the appropriate parameter, will dismember limbs. Remember to check Body Part Data numbers to know which limb you want to dismember. Since it sounds like you just want it to work on humanoids then this part will be easy - otherwise, you'd have to run checks for any possible actor-type whose Body Part Data differs from the standard before specifying the limb to dismember.

The function call would look like this:

DudeToBeEatenREF.KillActor DudeThatEatsREF 1;

In humanoids, the above call would dismember the head.

O.
User avatar
Genevieve
 
Posts: 3424
Joined: Sun Aug 13, 2006 4:22 pm

Post » Tue Dec 29, 2009 8:46 pm

Excellent, I'll try it out again, thanks. :)
User avatar
Heather M
 
Posts: 3487
Joined: Mon Aug 27, 2007 5:40 am


Return to Fallout: New Vegas