Elwood288

Help Adding Items to Onderon Museum

Recommended Posts

I'm making on mod that will distribute the crytals added by this mod throughout the game. I want to add a few of them to the Onderon Palace Museum but when I look in the RIM for the palace there are no placables... at all. Is the museum loot handled by a script or something?

Share this post


Link to post
Share on other sites

You're not looking in the right place. There are a bunch of placeables, including some invisible ones used for the Force items. They do use an OnUsed script to give the items to the player though, k_mus_treasure:

void main() {
	
	if (GetTag(OBJECT_SELF) == "mu_treasure1")
		{
			CreateItemOnObject("a_robe_21", GetFirstPC(), 1);
		}
	if (GetTag(OBJECT_SELF) == "mu_treasure2")
		{
			CreateItemOnObject("a_gloves_12", GetFirstPC(), 1);
		}
	if (GetTag(OBJECT_SELF) == "mu_treasure3")
		{
			CreateItemOnObject("u_l_crys_18", GetFirstPC(), 1);
		}
	if (GetTag(OBJECT_SELF) == "mu_treasure4")
		{
			CreateItemOnObject("u_l_colo_09", GetFirstPC(), 1);
		}
	
	SetGlobalNumber("506OND_MuseumThief", 1);
	DestroyObject(OBJECT_SELF);
}

So adding extra items is just a matter of editing the script and adding in some extra CreateItemOnObject instances for one or more of the placeables.

  • Like 1

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.