Jump to content

Photo

How to get Object ID for Player Made Potions?

object id id formid potions item id mod

  • Please log in to reply
31 replies to this topic

#21
DavidSkx

DavidSkx

    Regular

  • Members
  • PipPip
  • 77 posts

This is what you have right?

~before stuff~
int potion_val

Begin GameMode
   let tnoHSB.potion_val := Call HUDPotion
   ~after stuff~

And you are running CS through script extender mode or using CSE right?
 

 

I just opened up the Construction Set. I don't have CSE. Is that the issue?



#22
Striker879

Striker879

    YAOF ... just what the world needed

  • Premium Member
  • 11,021 posts

Does your shortcut for opening the CS have "...\Oblivion\obse_loader.exe" -editor at the end?



#23
DavidSkx

DavidSkx

    Regular

  • Members
  • PipPip
  • 77 posts

Does your shortcut for opening the CS have "...\Oblivion\obse_loader.exe" -editor at the end?

 

Oh I see. Yes it does. I usually use Wrye Bash's quick links at the bottom of the program to open up varies programs, and it already has TESCS + OBSE already bundled together.



#24
Striker879

Striker879

    YAOF ... just what the world needed

  • Premium Member
  • 11,021 posts

OK ... then the CS should have access to OBSE's functions. I'm more of a one task at a time type dinosaur so I work from a desktop shortcut to open the CS.



#25
FireTehVahu

FireTehVahu

    Old hand

  • Members
  • PipPipPip
  • 572 posts

Why not use Refscope?



#26
KatsAwful

KatsAwful

    Enthusiast

  • Supporter
  • PipPip
  • 137 posts

That wouldn't solve the issue. Each custom potion is its own unique ID. You need to parse every healing potion in the players inventory on the fly in order to get a proper count. That's what I did



#27
DavidSkx

DavidSkx

    Regular

  • Members
  • PipPip
  • 77 posts

That wouldn't solve the issue. Each custom potion is its own unique ID. You need to parse every healing potion in the players inventory on the fly in order to get a proper count. That's what I did

 

Any Idea why I still get the error?



#28
KatsAwful

KatsAwful

    Enthusiast

  • Supporter
  • PipPip
  • 137 posts

Try adding the variable, save, and see what happens. If its good then add the part in the GameMode block. It's probably something weird with CS in obse mode, it worked fine doing it at once in CSE



#29
DavidSkx

DavidSkx

    Regular

  • Members
  • PipPip
  • 77 posts

Try adding the variable, save, and see what happens. If its good then add the part in the GameMode block. It's probably something weird with CS in obse mode, it worked fine doing it at once in CSE

 

Ok, that worked. When I save the plugin, I doesn't let me overwrite the original HUD Status Bars.esp, so I have to make a new one. And in the new plugin, it only contains the scripts, 'HUD Potion' and 'HUDmain'.



#30
KatsAwful

KatsAwful

    Enthusiast

  • Supporter
  • PipPip
  • 137 posts

Merge it with TES4Edit







Also tagged with one or more of these keywords: object id, id, formid, potions, item id, mod

Page loaded in: 1.032 seconds