Jump to content

Recommended Posts

Posted

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?

Posted

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

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.

×
×
  • Create New...

Important Information

By using this site, you agree to our Guidelines.