Jump to content

Need Help With This


Korodic

Recommended Posts

So I've come to a problem I'm not sure how to fix.

 

I'm trying to use a terminal to resurrect an actor, which in this case is a creature.

 

I have 3 creatures, their ref's are:

L1C1

L1C2

L1C3

 

How would I go about this?

 

I tried this in the terminal script area:

begin OnActivate

 

if L1C1.GetDead == 1

L1C1.Resurrect 1

endif

 

if L1C2.GetDead == 1

L1C2.Resurrect 1

endif

 

if L1C3.GetDead == 1

L1C3.Resurrect 1

endif

 

end

 

 

However... being OnActivate freezes the console and still doesn't give the desired effect. Help? :'(

Link to comment
Share on other sites

I would set the condition of the terminal option to check if they are dead, like you've done in your script. Then you just need three lines in the terminal script area - the resurrect commands.

ah yes, I understand what you are saying...

 

Yes it did work. However, I have new questions.

 

When they began to resurrect, they didn't get back their missing limbs (the console command for resurrect is definitely better; but I'm assuming this may be the best I get as far as scripting?) Also their animations are really off... Am I not setting something? I did read a little bit from here: "http://geck.bethsoft.com/index.php/ResurrectActor" but I didn't understand it fully.

Link to comment
Share on other sites

I would set the condition of the terminal option to check if they are dead, like you've done in your script. Then you just need three lines in the terminal script area - the resurrect commands.

ah yes, I understand what you are saying...

 

Yes it did work. However, I have new questions.

 

When they began to resurrect, they didn't get back their missing limbs (the console command for resurrect is definitely better; but I'm assuming this may be the best I get as far as scripting?) Also their animations are really off... Am I not setting something? I did read a little bit from here: "http://geck.bethsoft.com/index.php/ResurrectActor" but I didn't understand it fully.

I think the problems are caused by the 1 after the resurrect, try just resurrect by itself?

Link to comment
Share on other sites

I would set the condition of the terminal option to check if they are dead, like you've done in your script. Then you just need three lines in the terminal script area - the resurrect commands.

ah yes, I understand what you are saying...

 

Yes it did work. However, I have new questions.

 

When they began to resurrect, they didn't get back their missing limbs (the console command for resurrect is definitely better; but I'm assuming this may be the best I get as far as scripting?) Also their animations are really off... Am I not setting something? I did read a little bit from here: "http://geck.bethsoft.com/index.php/ResurrectActor" but I didn't understand it fully.

yes that seemed to do it. You saved me a good amount of time with tinkering with it :P

 

New problem, (while im at it) While scrolling through the functions page, which function will accomplosh this problem?

 

If my character has a specific item on him (a pass) what function will get a count, or a true/false of whether the item is in the PC's inventory?

Link to comment
Share on other sites

Ran into a new issue (sorry not used to scripting fully :( )

 

ok so I'm making a terminal that will revive creatures. It costs money, but you can redeem a voucher, or you can use a card that will not cost a thing.

 

Here is my script so far (doesn't work...):

 

int watchvariable

set watchvariable to 0 ;meaning no requirements have been met

 

if (player.GetitemCount Caps001 > 25) ;Caps

set watchvariable to 1

end if

 

if (player.GetitemCount jdPassCardBluex1FREEResetArmory >= 1) ;Free pass

set watchvariable to 2

end if

 

if (player.GetitemCount jdPassCardRedPermFreeReset == 1) ;Infinite free pass

set watchvariable to 3 ;so the watchvariable won't exit due to 0 var.

end if

 

if (watchvariable==1)

player.RemoveItem Caps001 25

endif

 

if (watchvariable==2)

player.RemoveItem jdPassCardBluex1FREEResetArmory 1

endif

 

if (watchvariable==0) ;You have no cash/cards/vouchers

end

endif

 

L1C1.Resurrect

L1C2.Resurrect

L1C3.Resurrect

 

 

NOTE: My issue might be the conditionals... I'm thinking they are kinda like JAVA but idk.

Link to comment
Share on other sites

  • Recently Browsing   0 members

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