Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

FPSC Classic Scripts / Health huds?

Author
Message
Michael Thompson
16
Years of Service
User Offline
Joined: 15th Aug 2008
Location: Behind you (if not, in australia)
Posted: 27th Sep 2010 11:59
Hi everyone, I was hoping to set huds up to react in a certain way, like in quantum of solace, where there is a hud (i just want to use the hurt hud atm) that fades in as your health lessens and fades in as your health increases. Also, i would like a healthbar like the one in QOS where there is a human silhouette and it empties as your health does. Also, I would like a script where the health recharges after 10 seconds on not being increased / decreased, just like in QOS. how do I do this?

Whats this field for?
FSGC
Gencheff
14
Years of Service
User Offline
Joined: 12th Jun 2010
Location: UK by way of USSR
Posted: 27th Sep 2010 21:33
That's a lot of requests...

I suggest you read this : http://en.wikibooks.org/wiki/FPI_Script

And try to write the scripts yourself.That's what I did and haven't asked a question since.

Michael Thompson
16
Years of Service
User Offline
Joined: 15th Aug 2008
Location: Behind you (if not, in australia)
Posted: 28th Sep 2010 06:56
Thanks, but i dont really have a tonne of time to code aswell as make my own scripts which is why i was hoping that sum1 here could help. right now, i have sorted out how to show the hurt hud, by using another lot of scripts and huds, but i would really like the silhouette hud. Can anyone help plz? ill attach a picture so you all get the idea.

http://www.bing.com/images/search?q=QoS+PC+game&go=&form=QBIR&qs=n&sk=#focal=0f39b6f9eabd4517b07833e1f079aa60&furl=http%3A%2F%2Fwww.aeropause.com%2Fwordpress%2Farchives%2Fimages%2F2009%2F01%2F007qos004.jpg

Whats this field for?
FSGC
Michael Thompson
16
Years of Service
User Offline
Joined: 15th Aug 2008
Location: Behind you (if not, in australia)
Posted: 28th Sep 2010 06:58
By the way, it is the small human silhouette in the bottom left hand corner, for those of you who havent played QoS before.

Whats this field for?
FSGC
Plystire
21
Years of Service
User Offline
Joined: 18th Feb 2003
Location: Staring into the digital ether
Posted: 28th Sep 2010 21:09
This board is not explicitly for requests. In fact, many people frown upon those who depend upon others to do the work for them (AKA requests). I, personally, will not assist anyone unless they've tried to make the script themselves and are simply stuck with it.

However, there are a few people here who have fulfilled requests in the past, perhaps one of them will show up.


The one and only,


Michael Thompson
16
Years of Service
User Offline
Joined: 15th Aug 2008
Location: Behind you (if not, in australia)
Posted: 29th Sep 2010 05:54
Thanks plystire. i guess then i should mention that i have tried, but i have never had the time to learn the language, so i just looked at other people's scripts and tried to pick it up off that, but it was a massive fail.

Honestly, i tried to modify another script where it shows 5 huds, but i wanted 10 and got lost.

I already have my huds for the damage thing but not the health (i wasnt able to do this and i dont have a clue how).

If anyone can please help it will be greatly appriceated.

As I said, you will get your name (forum name unless otherwise specified) in the credits, even if your script or any other product is contributed to the game, even if it isnt used.

Again, thanks.

Windows 7 ultimate x64, Intel i7, 4 GB RAM, NVIDIA GEFORCE 330m 1GB
Flash Star Game Creations
Plystire
21
Years of Service
User Offline
Joined: 18th Feb 2003
Location: Staring into the digital ether
Posted: 29th Sep 2010 07:13
Offering credit is of little incentive around here I'm afraid. We would be much more satisfied to simply see you accel at helping yourself, making your own scripts. That's what we're here for really, to help others learn how to script and to help them succeed in making their own scripts.

If you have attempted any of your above scripts, please post the script code you're having trouble with and we will help you to find the problems and solve them as best we can. If you are just in need of guidance on where to start a script, I would be glad to write up some pseudo-code with suggestions of how a script may be attempted. That way you can have a small guide to get your script going, and if you run into problems, simply come back and explain what's going on with it and we can take it from there.

For example, taking your silhouette script, here's a basic outline of how it can be done in FPSC, just to help you get a basic idea of how a script could be made for it:
- Create many HUDs, each depicting a different level of health
- Detect what level of health the player has
- Depending on what amount of health they have, show the needed HUD to display that much health

Pretty much, what you're wanting is a health bar, just contained within a silhouette. If you search for "health bar" in this baord, I'm sure you can turn up a few script examples from others who have attempted it, and just apply their script logic to what it is you're after.


Hope all of that made sense to you.


The one and only,


lotgd
14
Years of Service
User Offline
Joined: 2nd Apr 2010
Location: italy
Posted: 29th Sep 2010 09:46 Edited at: 29th Sep 2010 09:48
see in this thread
http://forum.thegamecreators.com/?m=forum_view&t=171674&b=24
and and look at the 16° post

Michael Thompson
16
Years of Service
User Offline
Joined: 15th Aug 2008
Location: Behind you (if not, in australia)
Posted: 30th Sep 2010 11:31
Thanks, i have found another health regeneration script, however, when i edit it so it gives you less health more often, it continues to wait a certain amount of time, forcing me to up the added health, which i do not wish to do.

the script is assigned to a box just outside of the playing field, and it works, but it takes 5 seconds to do so. I dont know how to change this, even though i divided the timer by 1000 (no difference though)



Windows 7 ultimate x64, Intel i7, 4 GB RAM, NVIDIA GEFORCE 330m 1GB
Flash Star Game Creations
Michael Thompson
16
Years of Service
User Offline
Joined: 15th Aug 2008
Location: Behind you (if not, in australia)
Posted: 30th Sep 2010 12:48
Actually lotgd, your script is very good. I will play around with the values for a bit and maybe return here later, but thanks a tonne.XD

Windows 7 ultimate x64, Intel i7, 4 GB RAM, NVIDIA GEFORCE 330m 1GB
Flash Star Game Creations
Michael Thompson
16
Years of Service
User Offline
Joined: 15th Aug 2008
Location: Behind you (if not, in australia)
Posted: 1st Oct 2010 05:28
lotgd, i have looked at your script, and i quite like it, but i am wondering whether there is any way to speed it up so that it adds health every 1 second instead of 5?
thanks.

Windows 7 ultimate x64, Intel i7, 4 GB RAM, NVIDIA GEFORCE 330m 1GB
Flash Star Game Creations
Michael Thompson
16
Years of Service
User Offline
Joined: 15th Aug 2008
Location: Behind you (if not, in australia)
Posted: 1st Oct 2010 16:53
Ok everyone, i have found another forum page which asks for the same thing but didnt come up in searches.
http://forum.thegamecreators.com/?m=forum_view&t=114632&b=23
I am as yet not sure as to whether it works, but if not, i will try and use what little knowledge i have to make it work, and i will post it here. it is the download by avid (something like that) about half way down the page.

Windows 7 ultimate x64, Intel i7, 4 GB RAM, NVIDIA GEFORCE 330m 1GB
Flash Star Game Creations
lotgd
14
Years of Service
User Offline
Joined: 2nd Apr 2010
Location: italy
Posted: 1st Oct 2010 17:22
change the value timergreater=800 if you want to increase or decrease the charging time

Michael Thompson
16
Years of Service
User Offline
Joined: 15th Aug 2008
Location: Behind you (if not, in australia)
Posted: 1st Oct 2010 18:20
Thanks.
I believed so, so i changed it to 100, but i did not notice any difference though.
Is there any certain way i need to implement this, because i have it in a dynamic light and its not speeding up.
thanks.

Windows 7 ultimate x64, Intel i7, 4 GB RAM, NVIDIA GEFORCE 330m 1GB
Flash Star Game Creations
Michael Thompson
16
Years of Service
User Offline
Joined: 15th Aug 2008
Location: Behind you (if not, in australia)
Posted: 2nd Oct 2010 14:56 Edited at: 3rd Oct 2010 17:56
OK, I have done the health thing, and there is no need to edit the setuplevel file. Here is the URL;
http://forum.thegamecreators.com/?m=forum_view&t=176300&b=23

although it is glitchy, it works somewhat.

Windows 7 ultimate x64, Intel i7, 4 GB RAM, NVIDIA GEFORCE 330m 1GB
Flash Star Game Creations

Login to post a reply

Server time is: 2024-11-24 19:54:13
Your offset time is: 2024-11-24 19:54:13