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 / My Understanding Of Scripts

Author
Message
Skynet Games
16
Years of Service
User Offline
Joined: 20th Sep 2008
Location: At home, building stuff.
Posted: 24th Feb 2011 22:55
Ok, so. Instead of banging my head against the wall trying to figure out what all the "Acronyms" for the scripts stand for, i have been able to figure out that plrdistfuther stands for player distance further. and I'm guessing that =300 or =30 is the set feet away from an entity correct?

So, plrdistfurther=30 is player distance further (Than) 30 feet. Correct? now the way the FPI edit pad is set up it confuses me A LOT but i still manage to use scripts that people put out for my game. But what i am trying to do is actually learn FPI edit pad my self, and I'm trying to get a basic understanding of all these acronyms. Some parts of fpi edit pad confuse me. Heck scripting is self confuses me, so any suggestions to my question?

Speed of the wolf, power of the pack!!
http://www.wolfgames.110mb.com/home.html
Design Runner
14
Years of Service
User Offline
Joined: 16th Oct 2010
Location: In my own little world.
Posted: 24th Feb 2011 23:01
You are close. It is actually 30 units, and is a very much smaller amount than 30 feet. It is smaller than a segment actually.

"If you can't handle me at my worst, you sure as hell don't deserve me at my best"
Skynet Games
16
Years of Service
User Offline
Joined: 20th Sep 2008
Location: At home, building stuff.
Posted: 25th Feb 2011 01:49
So, 30 units are.. The units on the grid? like those squares? on the grid?

Speed of the wolf, power of the pack!!
http://www.wolfgames.110mb.com/home.html
Bootlicker
15
Years of Service
User Offline
Joined: 29th Mar 2009
Location: Germany
Posted: 25th Feb 2011 01:52
100 units is the size of a square in the grid.


Skynet Games
16
Years of Service
User Offline
Joined: 20th Sep 2008
Location: At home, building stuff.
Posted: 25th Feb 2011 01:57
100 pixel units?

Speed of the wolf, power of the pack!!
http://www.wolfgames.110mb.com/home.html
Ched80
14
Years of Service
User Offline
Joined: 18th Sep 2010
Location: Peterborough, UK
Posted: 25th Feb 2011 07:11
I created a document all about the differebt script commands. you can get it here: http://forum.thegamecreators.com/?m=forum_view&t=180924&b=23

[url="http://raptr.com/No_Turn_Right?src=em_forum"][/url]
Gencheff
14
Years of Service
User Offline
Joined: 12th Jun 2010
Location: UK by way of USSR
Posted: 25th Feb 2011 09:36
Quote: "100 pixel units?"

No,just units.

Consider it an abstract value.
One square on the grid has a width of 100 units and a height of 100 units.


PC Specs:Windows 7 Ultimate 64-bit,Intel Core i7 960 @ 3.20GHz,NVIDIA GeForce GTX 480,12GB RAM,2x Western Digital 997GB HDD
Skynet Games
16
Years of Service
User Offline
Joined: 20th Sep 2008
Location: At home, building stuff.
Posted: 25th Feb 2011 10:35 Edited at: 25th Feb 2011 11:10
OH! like in fpsc how the grid is 40 x 40 right?
My first guess

what is the max value of x?
ok, im getting two different thoughts. One of them being 00 is
infinity
My Second Guess

OR!

what is the max value of x
might be, the max of 5 x 10, you got five but you cant go any higher then 10.. thats another concept im thinking
My Third Guess

better yet, 50 x 400. Greater range but you CANT go past 400.

Speed of the wolf, power of the pack!!
http://www.wolfgames.110mb.com/home.html
Ched80
14
Years of Service
User Offline
Joined: 18th Sep 2010
Location: Peterborough, UK
Posted: 25th Feb 2011 13:13
I'm not sure your understanding of "plrdistfurther=X" is correct.

"plrdistfurther=X" is not a parameter for the player; it is a 'test' of how far away the player is from the entity performing the test.

For example: if you have a door and in that door's MAIN *.fpi script you use "plrdistfurther=100" the FPSC engine will test how far away the player is from the door. If the player is further away than 100 units (or 1 segment square) then the test will return 'TRUE', otherwise it will return 'FALSE'.

X can be set to any value. FPSC used DB Pro float values so technically you can set it to 3.4x10^38, but the maximum distance you can be away from any entity in a level is 540,000.

[url="http://raptr.com/No_Turn_Right?src=em_forum"][/url]

Login to post a reply

Server time is: 2024-11-24 12:05:51
Your offset time is: 2024-11-24 12:05:51