Frictional Games Forum (read-only)
How to create a Energie Bar ? - Printable Version

+- Frictional Games Forum (read-only) (https://www.frictionalgames.com/forum)
+-- Forum: Amnesia: The Dark Descent (https://www.frictionalgames.com/forum/forum-6.html)
+--- Forum: Custom Stories, TCs & Mods - Development (https://www.frictionalgames.com/forum/forum-38.html)
+---- Forum: Development Support (https://www.frictionalgames.com/forum/forum-39.html)
+---- Thread: How to create a Energie Bar ? (/thread-25644.html)



How to create a Energie Bar ? - narutohokager - 07-09-2014

Hello ! Long time i didn't come in this section Smile

I am relaunching my project custom storie ! And i need to create a Energie Bar, i don't know if it's possible ?

Like, a full energie bar on the screen, and if the player, for example, touch a jar, the energie bar will decrease ?

Can you help me with this Huh

Thanks in advance Smile


RE: How to create a Energie Bar ? - DnALANGE - 07-09-2014

That's not possible!
Even if it would be a Full Conversion..
I know it can be done with the new MFP-Patch.. and use the comment StartSanityEvent..
Not sure, but i think i'm 1 of the very less guys who knows how it works.
1 : Very difficult
2 : loads of coding
3 : WHY?...
4 : You will need to create like5? different bars??
Just it's very hard!


RE: How to create a Energie Bar ? - narutohokager - 07-09-2014

Okay :O Well, i can't really tell you WHY, it's a secret for my custom storie.

What MFP mean ?

And if we can't create a energie bar, it is possible to move the Message when we create one with the command "SetMessage" ?


RE: How to create a Energie Bar ? - Daemian - 07-09-2014

You can make an item the player has to check in his inventory to see its energy level.
Let's say a battery icon. Like the one laptops have.

To increase/decrease its level you take the item away from the inventory and replace it with another.
That should work.


RE: How to create a Energie Bar ? - DnALANGE - 07-09-2014

Yeps, that is possible!
but NOT in the view itself.
So you have to create like 3 different percentages like 25% 60% 100%...
Then you can have a script that checks as Amn said.
If *** will be toutches change picture..
Hope you understand what we try to say.


RE: How to create a Energie Bar ? - Daemian - 07-09-2014

Yeap. Exactly, and 0% too.
Btw, you can call your mod Mental Memorial 2 if you want. xD
DnAlange will like that.


RE: How to create a Energie Bar ? - Romulator - 07-09-2014

You could toy around with the lantern graphics too. Saves creating a new item, but you have no lantern.


RE: How to create a Energie Bar ? - narutohokager - 07-09-2014

Yeah i understand what you are trying to say :o I'll think about that ! Thanks Big Grin

And the title is already choosen haha Tongue