Jump to content

Script help please. :(


ObLars

Recommended Posts

like i said, you can use this function to determine if the creature is dead or alive

so if you want to only get the urine if the creature is alive, then it should be

 

if ([ref].GetDead == 0)

Player.additem BighornUrin 3

Endif

 

this should do the trick :)

 

Hehe, i worked it out, somehow.

 


Scn BighornUrinGatherBigScript

Begin OnActivate

If getdead == 0

Player.additem BighornUrin 3

elseif getdead != 1

endif
end

 

One problem though. Once i killed the Bighorn, i cant get any more urine, which i was aiming for. But it wont let me search the animal either. :O

Link to comment
Share on other sites


Scn BighornUrinGatherBigScript

If getdead == 0
Begin OnActivate
Player.additem BighornUrin 3
elseif getdead != 1
endif
end


 

Maybe it should look like this? But it wont let me save it, even though its ok with the script validator. Bug?

Link to comment
Share on other sites

no

it should look like the first one, but instead of the elseif, just put an endif

you don't need an else, because you don't want to get anything when it's dead

 

now, there should be a tab for making the animal searchable (i'll look into that)

and if you want to still give some urine when it's dead, add the item to it's death items (which you will have to enable, before)

if you put a death item, then it should allow you to search the creature

Link to comment
Share on other sites

no

it should look like the first one, but instead of the elseif, just put an endif

you don't need an else, because you don't want to get anything when it's dead

 

now, there should be a tab for making the animal searchable (i'll look into that)

and if you want to still give some urine when it's dead, add the item to it's death items (which you will have to enable, before)

if you put a death item, then it should allow you to search the creature

 

The script won't work without the elseif statement :( Also, it has got a death item (DeathItemBigHorner100).

Link to comment
Share on other sites

i am telling you, it has to work without the elseif

show me how you wrote it, and i'll try to find the problem

 

and are you serious, that you can't search the corpse of your creature??

because that is really strange....

 

Scn BighornUrinGatherBigScript

Begin OnActivate

If getdead == 0

Player.additem BighornUrin 3

endif getdead != 1

end

 

Elseif changed to Endif. And yes, i can't loot the corpse. I think it is because of the OnActivate is still active o.O Somehow

Link to comment
Share on other sites

if you have an endif, just remove the getdead != 1

just endif is what you need

 

and it shouldn't still work after that

 

are you sure you made the creature as you should??

i don't know how you did it, but i would edit the original Bighorn, give him a new special ID, then create a new instance, so it will have all the info of the original Bighorn, which should save lot's of work and problems

and since the Bighorn is lootable, there shouldn't be a problem to loot the special one

Link to comment
Share on other sites

if you have an endif, just remove the getdead != 1

just endif is what you need

 

and it shouldn't still work after that

 

are you sure you made the creature as you should??

i don't know how you did it, but i would edit the original Bighorn, give him a new special ID, then create a new instance, so it will have all the info of the original Bighorn, which should save lot's of work and problems

and since the Bighorn is lootable, there shouldn't be a problem to loot the special one

 

Scn BighornUrinGatherBigScript

Begin OnActivate

If getdead == 0

Player.additem BighornUrin 3

endif
end

 

Even with this script it wont work. I get the Urine from it when its alive, and when its dead i still can't loot it. Which makes no sence at all to me. All i did was use a Vanilla Bighorn, change its ID and place the new ID into the world. Added the Script, and bam. None-Lootable. My guess is that the OnActivate is still active somehow.. :( Thanks for the help :)

 

When i remove the Script, i can loot it. Hmmmm

Link to comment
Share on other sites

just a little thought

 

try to open the creature's inventory, and just add an item there

let's say, add 1 urine there, and see if now you can loot it

 

Sure, i could try that. But once i removed the script from the Bighorn, i could search it right away. The script is making it impossible to search the bighorn, somehow..

Link to comment
Share on other sites

  • Recently Browsing   0 members

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