Jump to content


Photo

Placing an item on a map


  • Please log in to reply
14 replies to this topic

#1 temnix

temnix
  • Member
  • 983 posts

Posted 05 May 2018 - 06:02 PM

What are my options if I want to have a sword lying around somewhere in an area? Can this be done with area tools, or do I have to resort to spawning CREs who will drop the item and disappear?



#2 Almateria

Almateria

    most garbage person

  • Modder
  • 969 posts

Posted 06 May 2018 - 06:12 AM

I don't think you can add items lying on the ground through weidu.

 

Now that I think about it, I don't think there've been any item just laying on the ground in games. Probably because they count as a resource managed save-side, and are prone to refreshes.

 

So go nuts with an invisible minion! They're an answer to everything you can't do


Edited by Almateria, 06 May 2018 - 06:14 AM.


#3 Mirandel

Mirandel
  • Member
  • 64 posts

Posted 06 May 2018 - 06:29 AM

Out of curiosity - can you add a chest or a barrel to the map?



#4 temnix

temnix
  • Member
  • 983 posts

Posted 06 May 2018 - 07:11 AM

If you mean an actual container, yes. But you would have to define it visually somehow. Redraw that tile to put a chest there. But there are more of ready containers available than we get to see, not all are enabled on all maps. In some areas you see five chests but only two can be interacted with. That's because the others have been disabled. Another interesting possibility is a creature posing as an object. Something with a blue circle, immune to everything and nameless and equipped with a ring that plays a chest BAM over it. Start a conversation with it and interact with it there.

 

By the way, anybody know if free-lying items decay? Do they disappear with time?



#5 jastey

jastey
  • Administrator
  • 3219 posts

Posted 06 May 2018 - 08:12 AM

By the way, anybody know if free-lying items decay? Do they disappear with time?
I am very sure items the player drops to the ground disappear after some time. (At least it was like this in the classic engine.)

#6 Creepin

Creepin
  • Administrator
  • 1676 posts

Posted 06 May 2018 - 08:38 AM

My two cents:
- I think dropped items marked as game critical doesn't vanish with time, but they can't be sold
- I also think there was the sole case of a free-lying item in vanilla games - that axe in IWD 1 somewhere in the snake caves, but even if that is true there's surely no macros in WeiDU to add free-lying item so you'll have to code it old-fashioned way, with, like, 30 lines of code
not that it is of great help but still.
 
Edit: hmm, wasn't there also Heartstone Gem lying on the floor in NeJ part 1? If so, its code should be helpful.


Edited by Creepin, 06 May 2018 - 08:40 AM.

The Old Gold - v0.2 WIP (mod for BGT/BWP/BWS)


#7 Gwendolyne

Gwendolyne
  • Administrator
  • 1016 posts

Posted 06 May 2018 - 08:38 AM

You have to create a container (flag as a pile, without vertice and bounding box = 0), then fill it with one or more items. Ready made WeiDU  functions do it very easily : fj_are_structure.


CARPE DIEM ....
 

In progress : Menace sur le Royaume de Diamant Éternel there.


#8 Balquo

Balquo
  • Member
  • 43 posts

Posted 06 May 2018 - 10:00 AM

Mark the flag "EE: Don't clear" if you create a pile container - otherwise it will also disappear after a while.



#9 temnix

temnix
  • Member
  • 983 posts

Posted 06 May 2018 - 12:28 PM

How long is a while? Days, weeks?



#10 GeN1e

GeN1e

    A very GAR character

  • Modder
  • 1604 posts

Posted 06 May 2018 - 12:41 PM

You have to create a container (flag as a pile, without vertice and bounding box = 0)

I think I had to add 6x8 size to the pile to make it work. Could be wrong, though.

Easiest way to confirm is to drop something, save, then check what the pile looks in that save.

 

How long is a while? Days, weeks?

A day or a half, iirc.


Retired from modding.


#11 Gwendolyne

Gwendolyne
  • Administrator
  • 1016 posts

Posted 06 May 2018 - 12:53 PM

You have to create a container (flag as a pile, without vertice and bounding box = 0)

I think I had to add 6x8 size to the pile to make it work. Could be wrong, though.

Easiest way to confirm is to drop something, save, then check what the pile looks in that save.

 

I remember that for my first maps (a 6x6 square polygon), but... forgot it later when I created another set of maps and... it worked!

I installed those new maps, originally created for the classic games, in a EE install and everything seems to be fine.


Edited by Gwendolyne, 06 May 2018 - 12:54 PM.

CARPE DIEM ....
 

In progress : Menace sur le Royaume de Diamant Éternel there.


#12 temnix

temnix
  • Member
  • 983 posts

Posted 06 May 2018 - 03:24 PM

Let's say on topic. My topic. What would these containers look like? Nothing? Barrels in a forest?



#13 Gwendolyne

Gwendolyne
  • Administrator
  • 1016 posts

Posted 06 May 2018 - 03:42 PM

Nothing on the map. If your item has a ground icon, then you will see it on the floor, or the ground.


Edited by Gwendolyne, 06 May 2018 - 03:42 PM.

CARPE DIEM ....
 

In progress : Menace sur le Royaume de Diamant Éternel there.


#14 Truman

Truman
  • Member
  • 75 posts

Posted 06 May 2018 - 09:04 PM

There is at least one instance in BG2 where there is an item laying on the ground, that is in AR1200, The Windspear Hills. DLTCEP gives it an X,Y coordinate, (3632,1340), without a bounding box, and calls it Pile 1. According to DLTCEP it says that it is a Fire Agate gem.

 

In Icewind Dale, the Trials of the Luremaster section. There is a room loaded with treasure laying on the ground. None of these things have what are refered to as bounding boxes, there is only an X,Y grid point.

 

With regard to how you get it there using weidu, I haven't got a clue. I can only say that since there are instances where these things do exist, there must be a way.

 

My comment may not help you, but its what I got, sorry.



#15 temnix

temnix
  • Member
  • 983 posts

Posted 07 May 2018 - 11:11 PM

If not Weidu, then invisible minions will do the job. It's not a problem that items decay if they are plants.