dubird

Beginner scripting?

Recommended Posts

Ok, I created a mod for a bit of armor I'm fond of, and I would really like to add it to the footlocker in the Exile's room on the Harbringer. Problem is, I can't figure out how to place. I did manage to work on a dialogue addition that adds it to your inventory at one point, but I can't figure out what the reference is for the footlocker. I was wondering if anyone else has done this or knows how to find it. I've tried every variation of the reference that I can think of, and it keeps telling me it's not valid. Here's what I have:

 

void main () {
    object oContainer = g_gresmillow007(2389);

    int nQuantity = 1;

    CreateItemOnObject("exilearmor", oContainer, nQuantity);

    }

 

Yes, I know that's not correct, but that's the footlocker as stated in KT, so I'm unclear what exactly I should be using. In case it's not odvious, I'm not familar with scripting, so it's probally something simple, but I can't find any sytanx tutorials or references.

Share this post


Link to post
Share on other sites

It's still giving me an error.

 

void main () {
    object oContainer = g_tresmillow007(2389);

    int nQuantity = 1;

    CreateItemOnObject("exilearmor", oContainer, nQuantity);

    }

 

Error: Undeclared identifier "g_tresmillow007"

Share this post


Link to post
Share on other sites

Try

object oContainer = GetObjectByTag("g_tresmillow007(2389)");

 

Not sure why you include those numbers though, what's that for?

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.