Salk Posted July 1, 2022 Author Share Posted July 1, 2022 (edited) Well, I noticed that the container added by the EE has the "EE: Don't clear" (6) flag, which I cannot obviously set for the classic game. Does anyone know what happens if I proceed without it? I found an example in the WeiDu documenation about how to add a container to an .ARE file but I am a bit confused by some of the required parameters: INT_VAR fj_loc_x to the X coordinate INT_VAR fj_loc_y to the Y coordinate INT_VAR fj_trap_loc_x to the trap launch X coordinate INT_VAR fj_trap_loc_y to the trap launch Y coordinate What's the difference betwee the first set of X, Y coordinates and the second one? Thanks! Edited July 1, 2022 by Salk Quote Link to comment
Daulmakan Posted July 1, 2022 Share Posted July 1, 2022 13 hours ago, Salk said: @Daulmakan, thanks for the advice. If I cannot find a way to go for the best solution (see above), then I guess I could follow your advice but the item is not magical. The current flags are: droppable (2), displayable (3) and not copyable (5). I want to make it a plot item so that it wouldn't disappear if spawned but at the same time, for narrative reasons, it cannot be made unsellable. So perhaps there is no possibility this way. Try this one, then: COPY_EXISTING ~ITEM.itm~ ~override~ WRITE_SHORT 0x18 45 BUT_ONLY Is it a vanilla item or not? Quote Link to comment
Daulmakan Posted July 1, 2022 Share Posted July 1, 2022 (edited) 8 hours ago, Salk said: Well, I noticed that the container added by the EE has the "EE: Don't clear" (6) flag, which I cannot obviously set for the classic game. Does anyone know what happens if I proceed without it? I found an example in the WeiDu documenation about how to add a container to an .ARE file but I am a bit confused by some of the required parameters: INT_VAR fj_loc_x to the X coordinate INT_VAR fj_loc_y to the Y coordinate INT_VAR fj_trap_loc_x to the trap launch X coordinate INT_VAR fj_trap_loc_y to the trap launch Y coordinate What's the difference betwee the first set of X, Y coordinates and the second one? Thanks! You can just use a macro to add your item to a container: COPY_EXISTING ~ARXXXX.are~ ~override~ PATCH_IF SOURCE_SIZE > 0x28f BEGIN LAUNCH_PATCH_FUNCTION ADD_AREA_ITEM INT_VAR container_to_add_to = 1 // LOOK FOR THIS NUMBER IN INFINITY EXPLORER or NEAR INFINITY STR_VAR item_to_add = ITEM // Your item name without the .itm extension, so it needs to exist already in the game or in override before doing this END END BUT_ONLY Edited July 1, 2022 by Daulmakan Quote Link to comment
Salk Posted July 2, 2022 Author Share Posted July 2, 2022 Hello, Daulmakan! 8 hours ago, Daulmakan said: Is it a vanilla item or not? It's a duplicate of a vanilla item (AMUL13.ITM). I created a container and put it into it so perhaps I don't need to add any additional flag to this duplicate item of mine? Quote Link to comment
Daulmakan Posted July 2, 2022 Share Posted July 2, 2022 11 hours ago, Salk said: I created a container and put it into it so perhaps I don't need to add any additional flag to this duplicate item of mine? I don't see why you'd need to. Quote Link to comment
temnix Posted July 10, 2022 Share Posted July 10, 2022 To Salk: forget containers. What you need is an invisible minion - a creature without an animation or foot circle and a script that says DropInventory() DestroySelf() Then spawn it through the area script or whatever other script you use. Quote Link to comment
jastey Posted July 11, 2022 Share Posted July 11, 2022 9 hours ago, temnix said: forget containers temnix, you noticed the discussion about the item not being flagged as critical and that it should remain on the floor and not vanish, yes? Quote Link to comment
temnix Posted July 11, 2022 Share Posted July 11, 2022 Nope. Was that said here somewhere? I glanced down the discussion and the minion drop method was not mentioned for anything. Instead the talk veered off to realms remote and awkward. In my opinion, Salk should curve his expectations a little and either give the crucial item in another way than throwing it on the ground or accept that it might not be found. This engine has limitations, to say the least. Quote Link to comment
jastey Posted July 11, 2022 Share Posted July 11, 2022 On 6/30/2022 at 9:32 PM, Salk said: CreateItem() seems to require a creature as parameter. I guess I could spawn a creature with the item in the inventory and then destroy it? First post. Just sayin'. Quote Link to comment
Salk Posted July 12, 2022 Author Share Posted July 12, 2022 Thanks for the suggestions, y'all! This has been done. Quote Link to comment
Recommended Posts
Join the conversation
You are posting as a guest. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.