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 / Press enter to use Health instead of automatic use

Author
Message
Tom0001
18
Years of Service
User Offline
Joined: 30th Dec 2005
Location:
Posted: 1st May 2006 19:56
I saw this done in Conker Bunker a while back. When I place a health entity, in test game when I touch it, it is used automatically. How do I change it so when you are near it, the door hud: Press Enter to Use is displayed, and when the player presses Enter it is used (and obviously disappears and cannot be re-used)?
I tried changing it's AIMain to Healthuse but when I walked near it, no hud saying: Press Enter to Use was displayed, and upon pressing Enter 5 health was restored and I could keep pressing Enter to restore 5 health each time and the health entity I placed would never run out. Please help me.

Tom

Jiffy
20
Years of Service
User Offline
Joined: 5th Mar 2004
Location: Hiding in the bushes in your backyard
Posted: 2nd May 2006 07:57 Edited at: 2nd May 2006 07:57
It would technically be as simple as adding "plrusingaction=1" to the start of the script, but that won't show up the "Press Enter To Use" text. I tried doing essentially the same thing, but making Enter need to be pressed to trigger a story zone, but it simply isn't that easy to get the text displayed.

If you can deal with no "Press Enter to Use" HUD, then just save this to an .fpi:



If you need the Enter to Use HUD, you'll need to wait until someone more experienced like OnePost answers.


Evil has a new name.
Tom0001
18
Years of Service
User Offline
Joined: 30th Dec 2005
Location:
Posted: 2nd May 2006 10:15
Thanks for the reply, Jiffy and yes I need the Enter to use HUD, but thanks for the script.

Tom

ctm
19
Years of Service
User Offline
Joined: 25th Feb 2005
Location:
Posted: 2nd May 2006 12:23
Hi,
that's the script i used in Conker Bunker:



You'll have to check if the path "audiobank\scifi\items\healthup.wav
" is still correct in FPSC V1.
Jiffy
20
Years of Service
User Offline
Joined: 5th Mar 2004
Location: Hiding in the bushes in your backyard
Posted: 2nd May 2006 13:44
ctm!

That's great! Strange, though, because I used a script virtually the same with the story zone script I mentioned earlier, but it didn't work.

Odd.


Evil has a new name.
Tom0001
18
Years of Service
User Offline
Joined: 30th Dec 2005
Location:
Posted: 2nd May 2006 18:29
Thanks, ctm, can it be used in commercial games?

Tom

ctm
19
Years of Service
User Offline
Joined: 25th Feb 2005
Location:
Posted: 2nd May 2006 21:04
Jiffy,
this one seems to work. I testet it only in the "Test-Mode" but i am sure it'll work in a built game too.
Only the path to the soundfile isnt correct anymore.
I think it should be: audiobank\items\healthup.wav now.

@Tom0001:
Quote: "can it be used in commercial games?"


Yes certainly
This script is nothing special.
You can find the first part of it in every dooruse or switchscript.
Tom0001
18
Years of Service
User Offline
Joined: 30th Dec 2005
Location:
Posted: 2nd May 2006 21:06
ctm,
Thanks a lot =)

Tom

Les Horribres
18
Years of Service
User Offline
Joined: 20th Nov 2005
Location: My Name is... Merry
Posted: 5th May 2006 07:19 Edited at: 5th May 2006 07:25
I can post a health up that increments... not a big deal, but does look 'cooler'... if you don't want to wait till tommorrow, look for arnec in the showcase, I should have a bunch of scripts in the zip that is uploaded to apollo... this summer I will Restart the project... I was happer when I was misserably trying to get it working then now... or mabey it is just end-of-my-life-as-I-know-it-eitus...

P.S. to all script entrepeneurs... NEVER USE PLRTAKE EVER...
only take if you need to, other wise you are filling up the plr inventory array with redundant data.

Take Keys, Take Weapons... Take Enemys for use AS keys but don't pickup a onetime use health pack. Destroy it.

We all have our inner noob. Join the NJL, and have more fun!
I believe society is flawed; our notions on life, on child rearing, stem too far back to be of relevance in this day and time.

Attachments

Login to view attachments
Lizblizz
18
Years of Service
User Offline
Joined: 13th Dec 2005
Location:
Posted: 9th May 2006 02:08
omg plz plz i beg of you!!! this is what i need omg omg omg!!!!!!!!

so this script is 4 health thta you can pik up and keep and not use like when you get to it like when your hurt you can use it only there and not pic up? you know what i mean

Les Horribres
18
Years of Service
User Offline
Joined: 20th Nov 2005
Location: My Name is... Merry
Posted: 9th May 2006 02:43
basically...

:state=0:setalphafade=0,state=1
:state=1,plrdistwithin=60:state=2
:state=2:followplr
:state=2,plrhealthless=100:plraddhealth=100,destroy

Skulls... again...

We all have our inner noob. Join the NJL, and have more fun!
I believe society is flawed; our notions on life, on child rearing, stem too far back to be of relevance in this day and time.
Lizblizz
18
Years of Service
User Offline
Joined: 13th Dec 2005
Location:
Posted: 9th May 2006 02:47
can you make it fpi ready plz

Tom0001
18
Years of Service
User Offline
Joined: 30th Dec 2005
Location:
Posted: 9th May 2006 03:33
fpi ready? You're a lot more stupid than I thought, Liz. Just PUT IT INTO NOTEPAD AND SAVE AS A DAMN .fpi

Tom

Lizblizz
18
Years of Service
User Offline
Joined: 13th Dec 2005
Location:
Posted: 9th May 2006 04:02
TOM! stop now!!! you are the one that starts stuff this is proof!!! you are a flamer you should xe more worse then the devil in flameing!!!!

FredP
Retired Moderator
18
Years of Service
User Offline
Joined: 27th Feb 2006
Location: Indiana
Posted: 9th May 2006 21:27
First of all OnePost did make it FPSC ready and I think Tom in his own way told you that.
Quote:"omg plz plz i beg of you!!! this is what i need omg omg omg!!!!!!!

so this script is 4 health thta you can pik up and keep and not use like when you get to it like when your hurt you can use it only there and not pic up? you know what i mean"
No I really didn't but apparently OnePost did.
Maybe Tom was a little harsh.Or maybe,like me,he couldn't believe you have been around this long and haven't copied a script off the forums.Either way,I've seen worse,and a lot of it from you.
BTW that was pretty nice for Tom.
Quote:
"TOM! stop now!!! you are the one that starts stuff this is proof!!! you are a flamer you should xe more worse then the devil in flameing!!!!"
That is the pot calling the kettle black.
On our forums we have a few members that have trouble spelling.Most of them speak a foreign language and use a translation program.
Please use Spellcheck or whatever.Half the time I don't understand what you are trying to say.
These may be reasons why no one wants to help you.Try being nice.Everyone else is.

FLa
Where you can find my demo:http://www.savefile.com/files/6970524
Les Horribres
18
Years of Service
User Offline
Joined: 20th Nov 2005
Location: My Name is... Merry
Posted: 10th May 2006 00:07
Quote: "so this script is 4 health thta you can pik up and keep and not use like when you get to it like when your hurt you can use it only there and not pic up? you know what i mean"
No I really didn't but apparently OnePost did."


I think she means like the Duke3D health that you keep and can use if you get low on health... this script is just setup to have everything in place... if the plr has less then x health (first 100) then it autoheals him and destroys itself...

But to get it, the plr has to be within 60 units...

In order for it to work propperly, you should have it follow the plr, that way it heals him when he should be healed... and a Skull is the lowest poly enemy there is... that is why I like it so much.

We all have our inner noob. Join the NJL, and have more fun!
I believe society is flawed; our notions on life, on child rearing, stem too far back to be of relevance in this day and time.
Lizblizz
18
Years of Service
User Offline
Joined: 13th Dec 2005
Location:
Posted: 10th May 2006 00:45
so your saying it cant be carried? what i meen is like in 3rd person games were you pic up a health and if your health is low you can press a letter to reheal you. but diffrent catagories of health like the small heal you 25% medium heal 50% and large health heals you 100%

something like that...dose that script do that?

Les Horribres
18
Years of Service
User Offline
Joined: 20th Nov 2005
Location: My Name is... Merry
Posted: 10th May 2006 03:04
it heals you if you have lower then 100 health... add in a random=30 and then you can 'technically' carry around 15 of these guys without them interfering...

We all have our inner noob. Join the NJL, and have more fun!
I believe society is flawed; our notions on life, on child rearing, stem too far back to be of relevance in this day and time.
Lizblizz
18
Years of Service
User Offline
Joined: 13th Dec 2005
Location:
Posted: 10th May 2006 03:14
1. so you are saying you can pic them up and carry them were evr you go and if you get hurt you can press a letter to heal you

or

2. you can pic them up and if you get hurt it heals you automaticly without pushing a button?

wich one is it? 1 or 2

Les Horribres
18
Years of Service
User Offline
Joined: 20th Nov 2005
Location: My Name is... Merry
Posted: 10th May 2006 03:19
2,

although you might want to adjust the plrhealthless and the plraddhealth.

We all have our inner noob. Join the NJL, and have more fun!
I believe society is flawed; our notions on life, on child rearing, stem too far back to be of relevance in this day and time.
Lizblizz
18
Years of Service
User Offline
Joined: 13th Dec 2005
Location:
Posted: 10th May 2006 03:25
oh thats cool were can i download can u post another plz onepost cause my notepad or notebook has an erore in it and pluse i dont know how to make it ready

Tom0001
18
Years of Service
User Offline
Joined: 30th Dec 2005
Location:
Posted: 11th May 2006 22:12
Download? Just copy and paste the Code Snippet. I do not start these things, you start them by asking something stupid and I agree highly with I has returned-use Spell Check so we actually understand what the hell you are saying.

Tom

Lizblizz
18
Years of Service
User Offline
Joined: 13th Dec 2005
Location:
Posted: 12th May 2006 00:29
ook tom gosh so anoying little kid. so i got my notepad to work again yaaye!! so i copy and paste...what do i do now?

ultraplex
18
Years of Service
User Offline
Joined: 8th Dec 2005
Location: cyberspace
Posted: 12th May 2006 00:38 Edited at: 12th May 2006 00:39
wow noob question tom,not like u anti noob league crap and all that...

Never eat yellow snow
Lizblizz
18
Years of Service
User Offline
Joined: 13th Dec 2005
Location:
Posted: 12th May 2006 01:21
umm who r u talking to? so can someone help?

Tom0001
18
Years of Service
User Offline
Joined: 30th Dec 2005
Location:
Posted: 12th May 2006 02:22
Save it in the Scriptbank as a .fpi, Liz

Tom

Lizblizz
18
Years of Service
User Offline
Joined: 13th Dec 2005
Location:
Posted: 12th May 2006 03:57
thats it? but what encodeing? ANSI,Unicode,Uunicode big endia or UTF-8?

FredP
Retired Moderator
18
Years of Service
User Offline
Joined: 27th Feb 2006
Location: Indiana
Posted: 12th May 2006 04:08
Does anybody have any idea what in blazes she means?
You copy the script to the Notebook.
Then you click on "file" and "save as"
Then you click on "file type" and select "all files"
Then when you type in a name for your script make sure you type ".fpi" (no quotation marks)after the name you give it.
Select "C:\Program Files\The Game Creators\FPS Creator\Files\scriptbank" as the place you want to save the file to.
Then you click on save.
I hope this helps.

FLa
Where you can find my demo:http://www.savefile.com/files/6970524
Lizblizz
18
Years of Service
User Offline
Joined: 13th Dec 2005
Location:
Posted: 12th May 2006 04:19
nope dang!!! can someone plz do it for me cuz im haveing a hard time

FredP
Retired Moderator
18
Years of Service
User Offline
Joined: 27th Feb 2006
Location: Indiana
Posted: 12th May 2006 05:57 Edited at: 12th May 2006 06:00
Okay.Here is the script as OnePost made it.Download it to The Game Creators\FPS Creator\Files\scriptbank and then do whatever OnePost told you to do with it.
BTW I called it Lizzsscript so you would remember which one it is.

FLa
Where you can find my demo:http://www.savefile.com/files/6970524

Attachments

Login to view attachments
Lizblizz
18
Years of Service
User Offline
Joined: 13th Dec 2005
Location:
Posted: 12th May 2006 07:50
got it but what dose it exacly do? it just disspears what am i doing wrong?

Tom0001
18
Years of Service
User Offline
Joined: 30th Dec 2005
Location:
Posted: 12th May 2006 10:32
You need to edit the paths. Two of them are incorrect: The enter one which calls for the Press Enter to use Hud and the audiobank one which plays the healthup the schi-fi audiobank.

Tom

Lizblizz
18
Years of Service
User Offline
Joined: 13th Dec 2005
Location:
Posted: 13th May 2006 01:31
hmm didnt help much is there one you can use by just pressing "H" to heal u up and stay wit u forever tell you use it up?

Tom0001
18
Years of Service
User Offline
Joined: 30th Dec 2005
Location:
Posted: 13th May 2006 16:54
No.

Lizblizz
18
Years of Service
User Offline
Joined: 13th Dec 2005
Location:
Posted: 13th May 2006 21:24
ok gosh dont have to bee so mean. can someone fix them?

Tom0001
18
Years of Service
User Offline
Joined: 30th Dec 2005
Location:
Posted: 13th May 2006 21:57
Be so mean? All I said was no, meaning it's not possible. You keep asking that in this thread and keep being told it's not possible, so stop asking.

Tom

Lizblizz
18
Years of Service
User Offline
Joined: 13th Dec 2005
Location:
Posted: 13th May 2006 21:58
well im sencitive and i took that mean so tom plz say nice things that dont sound mean ok

Tom0001
18
Years of Service
User Offline
Joined: 30th Dec 2005
Location:
Posted: 14th May 2006 00:10
Sorry, I only meant it as a short, simple and straight to the point reply.

Tom

Login to post a reply

Server time is: 2024-05-07 18:53:04
Your offset time is: 2024-05-07 18:53:04