Jump to content

Photo

Item Array Help

item help skse skyrim array objectreference scripting

  • Please log in to reply
2 replies to this topic

#1
ArrowFX

ArrowFX

    Fan

  • Premium Member
  • 252 posts

Hello, Thank you for taking time out of your day to read this. I am currently working on a mod called "MCM Cheat Menu", My ultimate aim is to add as many commands and option you could possibly want whether you are a modder, mod creator or cheater. But I have run into a problem and I will start with that stuff now. Thanks again for reading this and possibly helping me out.

 

So I have to features which I am currently working on one is an NPC spawner/placeatme/moveto option and the other one is going to be similar to additemmenu. The problem I am currently facing, however, is that I can't find any good way of getting items to be added to my array automatically, Which is a big problem because it wouldn't add items from other mods, I am facing a similar problem with the NPC one but if I find the solution to one then the other one will be easily fixed as well.

 

Anyway, If I didn't make something clear enough please just ask.

 

PS: I know I could probably download someone else mod that does this and copy their code but it would feel like I am stealing stuff, Which would kill my motivation to make this mod.



#2
IsharaMeradin

IsharaMeradin

    The Pale Redguard

  • Members
  • PipPipPipPipPip
  • 9,082 posts

I know a script could be created to be ran by the user in SSEEdit / TES5Edit to fill formlists with the data you are looking for.  But then your mod relies on the user actually doing that.

 

I have no idea how AddItemMenu functions as I have never used it.  But it certainly wouldn't hurt to download it and take a look at how it does it.  Just because you looked at their process does not mean that you have to use the exact same code.  Certainly might have to have similar coding but there is always room for personal adjustment / flare.

 

Arrays are limited to a single object type.  You can have a weapon array, armor array, etc but you cannot have one that combines weapons and armor. For a mixed list, you will need a formlist instead of array.

 

Not very helpful I am sure.  Wish you the best in figuring this out.



#3
ArrowFX

ArrowFX

    Fan

  • Premium Member
  • 252 posts

I know a script could be created to be ran by the user in SSEEdit / TES5Edit to fill formlists with the data you are looking for.  But then your mod relies on the user actually doing that.

 

I have no idea how AddItemMenu functions as I have never used it.  But it certainly wouldn't hurt to download it and take a look at how it does it.  Just because you looked at their process does not mean that you have to use the exact same code.  Certainly might have to have similar coding but there is always room for personal adjustment / flare.

 

Arrays are limited to a single object type.  You can have a weapon array, armor array, etc but you cannot have one that combines weapons and armor. For a mixed list, you will need a formlist instead of array.

 

Not very helpful I am sure.  Wish you the best in figuring this out.

Thanks for the quick response. Might have to go with SSEEdit until I figure it out. As for AddItemMenu you could probably get the code for it but they also use a DLL file which I don't have a lot of experience with.







Also tagged with one or more of these keywords: item, help, skse, skyrim, array, objectreference, scripting

Page loaded in: 1.085 seconds