[MOD] Call Of House Hardabar

Are you looking for fun Custom Dungeons that you could play or do you want to share your mod with others? Then this forum is for you!
olavimuff.ee
Posts: 194
Joined: Thu Aug 08, 2019 12:17 pm

Re: [MOD] Call Of House Hardabar

Post by olavimuff.ee »

sapientCrow wrote: Tue Jul 11, 2023 8:41 pm Yes i did find that one. just no others for droid.
What was the output of that command when holding the disk you found?
When holding the found disk use this in the console
print(getMouseItem().go.id)

Does it output another name than disk_data_droid ?
Ok, I took that droid disk located and the place on the pic and it gave me answer for command: LVL54disk_data_droid_1
Its not numeric. I spawned potion_wisdom too, but for this it shows number.

Was it that what you were looking for?
User avatar
sapientCrow
Posts: 608
Joined: Sun Apr 22, 2012 10:57 am

Re: [MOD] Call Of House Hardabar

Post by sapientCrow »

olavimuff.ee wrote: Tue Jul 11, 2023 8:54 pm
sapientCrow wrote: Tue Jul 11, 2023 8:41 pm Yes i did find that one. just no others for droid.
What was the output of that command when holding the disk you found?
When holding the found disk use this in the console
print(getMouseItem().go.id)

Does it output another name than disk_data_droid ?
Ok, I took that droid disk located and the place on the pic and it gave me answer for command: LVL54disk_data_droid_1
Its not numeric. I spawned potion_wisdom too, but for this it shows number.

Was it that what you were looking for?
yah exactly what I needed and sadly it returns nothing as there is no other disk with that name.
I wonder if it is another level and needs the level too

sigh and uggh
olavimuff.ee
Posts: 194
Joined: Thu Aug 08, 2019 12:17 pm

Re: [MOD] Call Of House Hardabar

Post by olavimuff.ee »

sapientCrow wrote: Tue Jul 11, 2023 9:18 pm
olavimuff.ee wrote: Tue Jul 11, 2023 8:54 pm
sapientCrow wrote: Tue Jul 11, 2023 8:41 pm Yes i did find that one. just no others for droid.
What was the output of that command when holding the disk you found?
When holding the found disk use this in the console
print(getMouseItem().go.id)

Does it output another name than disk_data_droid ?
Ok, I took that droid disk located and the place on the pic and it gave me answer for command: LVL54disk_data_droid_1
Its not numeric. I spawned potion_wisdom too, but for this it shows number.

Was it that what you were looking for?
yah exactly what I needed and sadly it returns nothing as there is no other disk with that name.
I wonder if it is another level and needs the level too

sigh and uggh
Hmm, didnt you try disk 2?

Can you share which command you use?
User avatar
sapientCrow
Posts: 608
Joined: Sun Apr 22, 2012 10:57 am

Re: [MOD] Call Of House Hardabar

Post by sapientCrow »

olavimuff.ee wrote: Tue Jul 11, 2023 9:32 pm
sapientCrow wrote: Tue Jul 11, 2023 9:18 pm
olavimuff.ee wrote: Tue Jul 11, 2023 8:54 pm
Ok, I took that droid disk located and the place on the pic and it gave me answer for command: LVL54disk_data_droid_1
Its not numeric. I spawned potion_wisdom too, but for this it shows number.

Was it that what you were looking for?
yah exactly what I needed and sadly it returns nothing as there is no other disk with that name.
I wonder if it is another level and needs the level too

sigh and uggh
Hmm, didnt you try disk 2?

Can you share which command you use?
yes and yes tried the 2 up to 5 and also all the levels in ARC 53 54 55 and 64
this command checks entire mod for an item though
just change local_item_id to what you want the name to be
below I am looking for the 4th Gem of the Moon I am missing
I did find it but locked behind a chest and i dont know where key is

Did you happen to find some key named Aldan Maric key?

Code: Select all

do 
	local_item_id = "gm_gem_green_feanor_4" 
	
	for index = 1, Dungeon:getMaxLevels() do 
		for item in Dungeon.getMap(index):allEntities() do 
			if item.id == local_item_id then 
				hudPrint("A matching item was found in "..item.map:getName().." ".."(level "..item.level..") @ tile X:"..tostring(item.x)..",Y:"..tostring(item.y))
				playSound("secret") party:spawn('blob') 
				return 	
			end 
		end 
	end 
	hudPrint("No matching item was found")
end
User avatar
sapientCrow
Posts: 608
Joined: Sun Apr 22, 2012 10:57 am

Re: [MOD] Call Of House Hardabar

Post by sapientCrow »

basically it will chime for you and show where x y the item is located and what map

however for items spawned or items that return numeric IDs it will not find the item.
Numeric IDs seem to store the name but it is not accessible and the numeric ID is just a item number for when it was found so they will be different for everyone I think
olavimuff.ee
Posts: 194
Joined: Thu Aug 08, 2019 12:17 pm

Re: [MOD] Call Of House Hardabar

Post by olavimuff.ee »

I dont know or dont remember aldan key.

Can you better tell me which chest is closed for you.
olavimuff.ee
Posts: 194
Joined: Thu Aug 08, 2019 12:17 pm

Re: [MOD] Call Of House Hardabar

Post by olavimuff.ee »

sapientCrow wrote: Tue Jul 11, 2023 10:01 pm

Code: Select all

do 
	local_item_id = "gm_gem_green_feanor_4" 
	
	for index = 1, Dungeon:getMaxLevels() do 
		for item in Dungeon.getMap(index):allEntities() do 
			if item.id == local_item_id then 
				hudPrint("A matching item was found in "..item.map:getName().." ".."(level "..item.level..") @ tile X:"..tostring(item.x)..",Y:"..tostring(item.y))
				playSound("secret") party:spawn('blob') 
				return 	
			end 
		end 
	end 
	hudPrint("No matching item was found")
end
Good code.

What happen if you change "if item.id ==" to "if item.name ==" ? ;)
olavimuff.ee
Posts: 194
Joined: Thu Aug 08, 2019 12:17 pm

Re: [MOD] Call Of House Hardabar

Post by olavimuff.ee »

I reloaded previous save to find out jean bart letter 7 which was not digged up yet. That code didnt find it until I digged it up.

So digging will create item, not teleporting these from below or something. Such thing may happen with other items too in other conditions.
User avatar
sapientCrow
Posts: 608
Joined: Sun Apr 22, 2012 10:57 am

Re: [MOD] Call Of House Hardabar

Post by sapientCrow »

olavimuff.ee wrote: Tue Jul 11, 2023 11:32 pm I reloaded previous save to find out jean bart letter 7 which was not digged up yet. That code didnt find it until I digged it up.

So digging will create item, not teleporting these from below or something. Such thing may happen with other items too in other conditions.
the Jean Bart items are numerical so they cant be found sadly. it sucks.

the chest is out on Guagamiel fields on the side with red barrier in corner.
according to the search code the last gem of the moon is in it
olavimuff.ee
Posts: 194
Joined: Thu Aug 08, 2019 12:17 pm

Re: [MOD] Call Of House Hardabar

Post by olavimuff.ee »

sapientCrow wrote: Wed Jul 12, 2023 12:33 am
olavimuff.ee wrote: Tue Jul 11, 2023 11:32 pm I reloaded previous save to find out jean bart letter 7 which was not digged up yet. That code didnt find it until I digged it up.

So digging will create item, not teleporting these from below or something. Such thing may happen with other items too in other conditions.
the Jean Bart items are numerical so they cant be found sadly. it sucks.

the chest is out on Guagamiel fields on the side with red barrier in corner.
according to the search code the last gem of the moon is in it
OO, I wonder how did you found it. I have searched all sides previously, but somehow I skipped that edge there.

Next mysterious key needed, maybe digging up whole area to find it. :D

I think you cant find buried things. Or you managed to find that gem before you digged up this chest?
Post Reply