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 / Mr.illusionest's Official Scripts Checking and Fixing Thread

Author
Message
Mr illusionest
17
Years of Service
User Offline
Joined: 5th Mar 2009
Location: Cairo , Egypt
Posted: 2nd Oct 2010 16:28 Edited at: 2nd Oct 2010 16:30
Mr.illusionest's Official Scripts Checking and Fixing Thread


Greeting all FPSC forum members ....

This thread is a sequel to my requests thread , which you can check HERE .
The point of this thread is to help The FPSC forum members to get experienced with FPI scripting language , and to make their own scripts by their own selves , Which is what is this community was made for at the 1st place .

Thread Rules :

1- The scripts are posted either in Code snippits , or post the link to any thread about it .
PLEASE don't attach it only because it's kinda annoying , Okay ?

2- The poster should give a full , clear paragraph descriping the problem\bug he is facing , so It is easier to fix ( Optional )

3- Members who are willing to post should read FPSC community guide first , That saves a lot of time and conatains the answers to about 70% of questions .
It can be found in the Docs folder , named ofpscguide.pdf

4- The poster holds fall responsibilty of posting a script that his author didn't give permission for it to be posted .

Fixed Scripts List :
A scripts list will be made once any script is posted , contains all of the fixed scripts .


Cheers

"I am the night visitor when everyone is sleep , and when the last light fades"
The illusionest
Norion
16
Years of Service
User Offline
Joined: 14th Jun 2010
Location: The Netherlands.
Posted: 2nd Oct 2010 20:49
this is very nice of you Mr illusionest.

keep it up !!!

(send you an email)

Cheers


Norion

The universe is everything around this but you are everything around the universe.

by Norion.
Michael Thompson
17
Years of Service
User Offline
Joined: 15th Aug 2008
Location: Behind you (if not, in australia)
Posted: 3rd Oct 2010 09:16 Edited at: 3rd Oct 2010 09:43
Well isnt it nice that Mr Illusionest is still helping the community?
Good on you for setting ground rules too btw.

Now, as you know, i have been working on a script, with the very little knowledge of the language that I know, and I have run into loads of trouble now, where it doesnt display some of the huds (again). I have checked hud names, health, and states and they all seem to be correct, and I was hoping that you would be able to help me, as you know a lot more about this than me. It is pretty much a lenghtened version of the first one i needed help with, and that is why I am having these problems, because I made it longer. Problem is though, it is to make a health bar, without having to edit the setiplevel file, as that was more trouble than it was worth for me (it actually didnt display the huds at all). So here is the script, and I hope you will be able to spot something i couldnt, and then I will learn from my mistake, and possibly go on to make the next version which requires 2 times as many huds, without needing help.

Thanks, and here is the script.



Thanks again, and if possible, I will attach a youtube link showing the problem.

BTW, as for the state 0 thing, which one do you mean?




Thanks.

Windows 7 ultimate x64, Intel i7, 4 GB RAM, NVIDIA GEFORCE 330m 1GB
Flash Star Game Creations
Mr illusionest
17
Years of Service
User Offline
Joined: 5th Mar 2009
Location: Cairo , Egypt
Posted: 3rd Oct 2010 11:37 Edited at: 3rd Oct 2010 11:40
@norion:
Thanks man , E-mail replied .

@Michael Thompson:

Let's fix your script step by step :
1- For state=0 , I meant the 1st one man , not the second .

2- I don't understand why are you calling the health less condition twice , You could have made it really simple , Example for it this part of script :

You should combine the 3rd line with the 2nd , as they have the same conditions , no need to increase lines or states , so this part become like this :


3- By looking at the script mechanism , let's assume that the health of the player increased from 33 to 93 , It will go back from state=27 to state=3 , on that journey , there was no commands AT ALL to display any HUD , that's why the HUDS will disappear but nothing will appear in place of it , so what's the soulotion ?
On each state , the hud you want should appear , so on every state , place a line that determines if state is x , then show the HUD of this state .

Make these 3 steps step by step , read them carefully , If you couldn't fix it , shoot me a post .

Cheers

"I am the night visitor when everyone is sleep , and when the last light fades"
The illusionest
Norion
16
Years of Service
User Offline
Joined: 14th Jun 2010
Location: The Netherlands.
Posted: 3rd Oct 2010 13:09
sorry Mr illusionest but there is no email

The universe is everything around this but you are everything around the universe.

by Norion.
Michael Thompson
17
Years of Service
User Offline
Joined: 15th Aug 2008
Location: Behind you (if not, in australia)
Posted: 3rd Oct 2010 13:13 Edited at: 3rd Oct 2010 14:39
Thanks, that makes sense, but I still find that there are problems.
It does not show the HUD when on 100, and then when recharging health, again, it does not display the HUD, and the HUD will not change, as in, it only will display hhud20, which will not disappear.
I changed all the states around so that it is easier to tell what should go where, and I hope that thats not what is doing it, but I have checked, double checked, and triple checked, still, i can find nothing. But your previous post atleast helped a little, i didnt think to;
A Combine the 2 lines, and
B Set them to go to the line where the huds should appear not dissapear.



Thanks.

Windows 7 ultimate x64, Intel i7, 4 GB RAM, NVIDIA GEFORCE 330m 1GB
Flash Star Game Creations
Mr illusionest
17
Years of Service
User Offline
Joined: 5th Mar 2009
Location: Cairo , Egypt
Posted: 3rd Oct 2010 15:39
@norion:
Whoops ! I forgot to send it , I saved it to drafts ! Sent .


@Michael Thomson:

Michael , dude , I feel you don't read my words carefully , you always understand me in a wrong way .
You posted me 2 examples at your 1st post , I told you the first is right , Why didn't you do it then ?
Let's leave it now , and go to the other point : you ruined your script totally !!!! Leave that version you posted and work on the 1st one from your 1st post , do the steps I told you and it will be fixed .

For example :
This part

Should look like this :


I hope I was clear and you understood what do I mean .

Cheers

"I am the night visitor when everyone is sleep , and when the last light fades"
The illusionest
Delusional Games
15
Years of Service
User Offline
Joined: 2nd Oct 2010
Location: Serbia, Sometimes Finland
Posted: 3rd Oct 2010 22:48
Mr illusionest

I have flashlight problem again and this time its with flashlight script made by s4real and freak16. I need that script to be active only after player picks up flashlight weapon. Nothing before that This is the script.


Please help me cause I barely understand my math lessons.
And this seems too hard for me.
Michael Thompson
17
Years of Service
User Offline
Joined: 15th Aug 2008
Location: Behind you (if not, in australia)
Posted: 4th Oct 2010 10:26
OK, I have finnished the script and it works properly now. Thankyou for all of your help Mr illusionest, I owe you. If you need help with anything that I might be able to help you with, let me know.

Thanks a tonne m8.

Windows 7 ultimate x64, Intel i7, 4 GB RAM, NVIDIA GEFORCE 330m 1GB
Flash Star Game Creations
Jonez Games
16
Years of Service
User Offline
Joined: 19th Feb 2010
Location: Finland
Posted: 6th Oct 2010 13:14 Edited at: 6th Oct 2010 14:41
Okay, so I got a script.
Actually a working script, but I have some problems.

Its objectives script, showing objectives by pressing "o".
It works, and it shows the objectives HUD just like it supposed to be.

But the problem is, I want to show multiple objectives with same script and button, activated trough a trigger/story zones.
When I test it with only one hud and script it works, but when I try to add more than one the huds doesnt appear.

So what I, tryin to do, is:
show new objectives by huds with different Y postition, using the same button and script, activated trough zones.

Take a look of this thread(includes the script and other stuff):
http://forum.thegamecreators.com/?m=forum_view&t=176440&b=23

I hope you can help

EDIT:
And one extra guestion:



Thanks

Jonez

Mr illusionest
17
Years of Service
User Offline
Joined: 5th Mar 2009
Location: Cairo , Egypt
Posted: 6th Oct 2010 21:30
@Delusional Games:

I'm sorry man , your post wasn't there for some reason , just saw it now .
All what you need to do is to give this script to a Dynamic entity , change it's key to the name of your Flashlight Pickup , And edit your script to determine if the player has the key using plrhaskey=x .


@Jonez Games:

To change your script's path , you can use 2 things :
Activation - Variables .
For this scripts , Activation is the better way because you are using a trigger zone , but in other cases , Variables are better .
Here is the steps to do what you want :

1- Edit the script to read the HUDs you want ( Blank paper - Objective 1 , 2 .... etc. )

2- Now you need to make different paths depending on how many HUDs you have , for example :
If the state is 1 , then show Blank Paper , but if the state is 1 and The entity is activated by 1 , then go to state 2 .
If the state is 2 , then show Objective 1 , but if the state is 2 and the script activated by 2 , then go to state 3 .
You get what I want to say ?

3- Now give your script to a Dynamic entity's main , and set it to Always Active

4- Place Trigger zones equaling to your Huds' number , and give them all the name of the entity that holds the script in thier IfUsed Field , BUT don't forger to edit thier scripts depending on which HUD you want when the player gets to THIS zone , for example :
Trigger zone 2 is the one that gives you the second objective when pressing O , so you give it this script :

The activation value varies ofcourse between each script .

I hope I wan't so mysterious and you got my point .
Cheers

"I am the night visitor when everyone is sleep , and when the last light fades"
The illusionest
Slayer267
15
Years of Service
User Offline
Joined: 6th Sep 2010
Location: Non of your beez wax
Posted: 10th Oct 2010 02:39
Hey i need a script that throws a dead colonal X through a window using ragdoll...

- Kindest Regards, Ervin
whats wrong with this script!
15
Years of Service
User Offline
Joined: 23rd Sep 2010
Location: TOP SECRET
Posted: 13th Oct 2010 08:14 Edited at: 13th Oct 2010 08:19
so your not making anymore scripts for the last thread? i need some real help with my stealth game im making.

i understand that we need to learn ourselves but how do we learn unless you teach? i need a tutor. can you tutor me?

your awesome plz help!

Mr illusionest
17
Years of Service
User Offline
Joined: 5th Mar 2009
Location: Cairo , Egypt
Posted: 13th Oct 2010 18:14
I'm sorry guys , School grabbed me for the last week , But I'm back now .

@Slayer267:

I'm sorry , your request cannot be made yet , the reason is that ragdoll is still self-placed , That means you can't throw characters using ragdoll , it happens in place only .
Maybe in the next patches , maybe ...


@whats wrong with this script!:

No , I'm not making any scripts at my last thread , I can only explain a method to do it , That might seem harder , but It's what this forum was made for and this will make a lot of people do a lot of good games ...
Anyway you just ask is you want anything , I will tell you how to do it .
I guess you found my stealthy scripts thread , And I replied there , I hope I can finish and release my AI stealth soon .

Cheers all

"I am the night visitor when everyone is sleep , and when the last light fades"
The illusionest
Michael Thompson
17
Years of Service
User Offline
Joined: 15th Aug 2008
Location: Behind you (if not, in australia)
Posted: 27th Oct 2010 14:11
@slayer267
I have an idea.
What you want to do is import 3 models into a modeling program (say fragmotion, that is what many people here seem to be using) - your colonelX, the other person who throws him, and a window. I think the window would do best if it were to be 'broken up' or in many peices, which have been assembled together. Then, you animate the first person (whoever it is) throwing ColonelX through the window (dont forget to have the window shatter). A good idea would also be to have glass shards go into your ColonelX and then he lands in a ragdoll state.
What do you think?

Windows 7 ultimate x64, Intel i7, 4 GB RAM, NVIDIA GEFORCE 330m 1GB
Flash Star Game Creations
Delusional Games
15
Years of Service
User Offline
Joined: 2nd Oct 2010
Location: Serbia, Sometimes Finland
Posted: 7th Nov 2010 17:04
I thought you could help me with this, when you got the time of course.
I wanted my ladder to show HUD when I`m 50 units within and then if I press Enter to end level.
So it would be something like this.


But is there a command to end level? I could not find anything at manual.

That is not dead which can eternal lie. And with strange aeons even death may die.
H.P.L
Seth Black
FPSC Reloaded TGC Backer
21
Years of Service
User Offline
Joined: 22nd Feb 2005
Location: Pittsburgh, PA
Posted: 7th Nov 2010 18:01 Edited at: 7th Nov 2010 19:01
@Delusional Games,

Historically, vanilla FPSC has designated winzones to be objectives.

For some reason, I'm sure I've seen something in the way of a command
to call the end of a level, but I can't recall or find the reference.

Perhaps such a command will be incorporated into future FPSC updates
(if it hasn't been included already)
.

One simple workaround to the problem you're encountering would be:

1. Place INVISIBLE ENTITY into level

2. Set INVISIBLE ENTITY's PROPERTIES:

NAME = INVISIBLE ENTITY

STATIC = NO

MAIN SCRIPT = ACTIVATE & DESTROY AT SPAWN.fpi



SPAWN AT START = NO

ISOBJECTIVE = 1



3. Set TRIGGERZONE's PROPERTIES:

MAIN SCRIPT = YOUR CUSTOM SCRIPT.fpi



IFUSED = INVISIBLE ENTITY


When the player enters the TRIGGERZONE, the HUD will display prompting
the player to press the ENTER Key.

Once the ENTER Key is pressed, the INVISIBLE ENTITY will be spawned,
activated, instantly destroyed, and the level will end, as the objective has been met.

The Zoq2
16
Years of Service
User Offline
Joined: 4th Nov 2009
Location: Linköping, Sweden
Posted: 8th Nov 2010 16:17 Edited at: 8th Nov 2010 16:17
Hi im trying to make a COD4 health script but their is 2 errors:

The first error is that once the HUD has apeared it doesn't disapear once the health is up again.

The other error is that the timer that's preventing the player heath to increase if the player takes damage doesn't reset if the player takes damage.



Srry about my english im from sweeden
BeauPratten
16
Years of Service
User Offline
Joined: 16th Feb 2010
Location: Newy, Australia
Posted: 11th Nov 2010 06:02 Edited at: 12th Nov 2010 09:10
Can you tell me what's wrong with this?
It's based on storyteller's adventure script



A dude
16
Years of Service
User Offline
Joined: 15th Mar 2010
Location: The Solar System
Posted: 29th Nov 2010 21:29 Edited at: 30th Nov 2010 16:44
Ignore me!
zeza
18
Years of Service
User Offline
Joined: 27th Jun 2008
Location:
Posted: 29th Nov 2010 21:40
You really need to let threads die
Quote: "When I get hurt, the health bar doesn't move"

The script your using is based on having 100 health, as long as your health is greater than 100, the health bar wont move

I'd change the world, but I don't have the source code
R.I.P. heltor, we will miss you
A dude
16
Years of Service
User Offline
Joined: 15th Mar 2010
Location: The Solar System
Posted: 29th Nov 2010 21:45 Edited at: 30th Nov 2010 16:44
Ignore me! It works
recon cmmdo
15
Years of Service
User Offline
Joined: 7th Nov 2010
Location:
Posted: 7th Dec 2010 01:50
I was wondering if you could provide me with a script that creates an ivisible barrier (preferably a trigger zone) that blocks that player, but lets other entities pass through, like a character. Thank you very much!

I can blow stuff up... with my mind
OutdoorGamer
16
Years of Service
User Offline
Joined: 23rd Dec 2009
Location: everywhere...
Posted: 8th Dec 2010 03:04
Nice thing your doing here MI great job. I have done a few scripts if you need any help let me know.

the best,
OutdoorGamer

signatures are dumb.....
idk why....
Mr illusionest
17
Years of Service
User Offline
Joined: 5th Mar 2009
Location: Cairo , Egypt
Posted: 13th Dec 2010 13:29 Edited at: 13th Dec 2010 13:31
Hello Community .....

I have no idea what to say , And I know some people are angry with me , My last post was 13th of October and today is 13th December ...
2 long months I deserted the community without providing any execuses or announcements , which some of you found it rude ( And I think it was ) .
But the last two months was a terreible mix of Connection problems , bad events , school exams and inner feel of sadness that I felt it pushing my soul out of my body , While I'm seeing the dark future my country is heading to with wide steps , And some problems on my father's work that threats of huge losses coming on the way ....
I apologize to everone that I was late on giving a reply , And I deeply thank everyone who replied instead of me sometimes .
I don't expect you to forgive me for such rudeness , But at least you won't be so mad of me .


@Recon cmmdo:

Here is what to do :
Place an invisible barrier ( Pick any wall entity or barrier and change it's texture to a costum 100% transperet one ) , Then change it's properties to immopile=1 .
Place a trigger zone in both sides of the barrier , make a script at both of them that if the player is within the zone , turns the barrier's collision on , And if he isn't , Turn the barrier's collision off .
It has a bug though , And it is that if the player is within the zone and an entity tries to cross the barrrier , It won't be able to , But this is the only way I know to do it .
Commands used : plrwithinzone=<1,0> , colon , coloff

@Outdoor Gamer:
Thanks , I appreciate your offer , I just want you to help me replying the request , as it's hard for me due to school and some other things .

Cheers

"I am the night visitor when everyone is sleep , and when the last light fades"
The illusionest
recon cmmdo
15
Years of Service
User Offline
Joined: 7th Nov 2010
Location:
Posted: 14th Dec 2010 00:08
thank you very much for that, i will get right to making it.

Im sure we all forgive you, after all, you are not required to help us, you do it out of the goodness of your heart.

We are not mad, we just welcome you back!

I can blow stuff up... with my mind
OutdoorGamer
16
Years of Service
User Offline
Joined: 23rd Dec 2009
Location: everywhere...
Posted: 14th Dec 2010 22:42
Already, I'll help you out and I'm sure when I say for us all there is no need to apologize you helped people and did it without asking a thing. I will do my best to assist anyone who needs help for you.

Regards,
OutdoorGamer

signatures are dumb.....
idk why....

Login to post a reply

Server time is: 2026-07-21 17:44:34
Your offset time is: 2026-07-21 17:44:34