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 first script!

Author
Message
The Fps Creator rocks!
16
Years of Service
User Offline
Joined: 24th Oct 2008
Location: Sneaking down your chimney.
Posted: 4th Mar 2009 21:52 Edited at: 4th Mar 2009 21:53
This is my first script


Read "desc" to know what it does.

I can't texture. I'm not an artist.
The Fps Creator rocks!
16
Years of Service
User Offline
Joined: 24th Oct 2008
Location: Sneaking down your chimney.
Posted: 5th Mar 2009 01:45
Do you hate this script?
Doesn't anyone think this is a good script for my first script?

I can't texture. I'm not an artist.
Apple Slicer
16
Years of Service
User Offline
Joined: 14th Nov 2008
Location: Oregon, in the rain...
Posted: 5th Mar 2009 01:46
Jeeze man, Just wait for replys. No one hates them, because no one has really looked yet.

Till Thy Migration Come...

Brian In Korea
15
Years of Service
User Offline
Joined: 1st Mar 2009
Location:
Posted: 5th Mar 2009 04:33
Did it work? Did you build a simple room and watch the character walk the path? I've only seen the action :waypointreverse used after the :waypointstate=5 condition.

I'm assuming that the :waypointstate=5 condition is only true when the character has reached a waypoint with no path leading out of it so its only choice would be to turn around (:waypointreverse).

But I'm curious, if you had a red waypoint chain going from West to East and blue waypoint chain going North to South and they made a T shape (the last blue waypoint overlaps a waypoint in the middle of the red chain) and the character started at the first blue wavepoint (way down south) and starting walking north, would the condition (:waypointstate=5) be true at the end of the blue chain. If so, then using your script would be useful. Then the character would make a random choice to go west, east, or south.
X10 User
15
Years of Service
User Offline
Joined: 21st Jan 2009
Location:
Posted: 5th Mar 2009 05:09
just the follow.fpi from the default scripts with the last line deleted

- Why is everyone on here so rude? -
The Fps Creator rocks!
16
Years of Service
User Offline
Joined: 24th Oct 2008
Location: Sneaking down your chimney.
Posted: 5th Mar 2009 14:34 Edited at: 5th Mar 2009 17:35
Quote: "No one hates them, because no one has really looked yet."


Well I had 8 views.


Quote: "Did it work? Did you build a simple room and watch the character walk the path?"


Yes. I saw it walk and then at the end of the waypoint, it stopped.




EDIT: Ok, somethings up with this script. He doesn't walk anymore! And if he does, he just walks but doesn't move!

I can't texture. I'm not an artist.
Brian In Korea
15
Years of Service
User Offline
Joined: 1st Mar 2009
Location:
Posted: 5th Mar 2009 15:33
Well, if it stopped, it didn't work. It didn't choose a random direction then.
Plystire
21
Years of Service
User Offline
Joined: 18th Feb 2003
Location: Staring into the digital ether
Posted: 5th Mar 2009 20:34
@Brian:

Read the description of his script again. It says that the entity is supposed to stop once it reaches the end of the waypoints.


@TFpsCR:

It sounds like your guy is getting stuck in the ground. Try using "Pg UP" to lift him a little bit higher in the editor to see if you can "unstuck" him.


The one and only,


Brian In Korea
15
Years of Service
User Offline
Joined: 1st Mar 2009
Location:
Posted: 5th Mar 2009 22:38
True but wouldn't waypointstop or waypointnext also stop at the end of the chain?

From my understanding (which is rather limited):
waypointrandom should be used when the bot is at a waypoint with 2 or more possible waypoints to move forward towards.

waypointnext should be used when the bot is at a waypoint with only one possible waypoint to move forward towards.
The Fps Creator rocks!
16
Years of Service
User Offline
Joined: 24th Oct 2008
Location: Sneaking down your chimney.
Posted: 6th Mar 2009 20:46 Edited at: 7th Mar 2009 14:53
Ok I changed his script now he moves. But to make him move you can't have a straight waipoint you need to make some turns. Nice for a first script?

Script:




EDIT: DESC CHANGED!

I can't texture. I'm not an artist.
Brian In Korea
15
Years of Service
User Offline
Joined: 1st Mar 2009
Location:
Posted: 7th Mar 2009 08:25 Edited at: 7th Mar 2009 08:27
Its looking better. First, update the description. Maybe,


Then maybe add


Now he will not stop at the end of the chain. He will turn around.

I'm assuming that you created two different way point lines and have overlapped them "connected them" at some point in the middle of at least one chain.

If you had a red waypoint chain going from West to East and blue waypoint chain going North to South and they made a T shape (the last blue waypoint overlaps a waypoint in the middle of the red chain) and the character started at the first blue wavepoint (way down south) and starting walking north, the condition :waypointstate=5 will no longer be true at the northern "end" of the blue chain. Now, the condition :waypointstate=4 will be true and the entity will need to make a random decision on which direction to go .

Both ends of the red chain and the southern end of the blue chain will trigger


Certain waypointstates seem to always go with the same action.
The Fps Creator rocks!
16
Years of Service
User Offline
Joined: 24th Oct 2008
Location: Sneaking down your chimney.
Posted: 7th Mar 2009 14:52
Quote: "He will turn around."



I know. But I don't want him to reverse.

I can't texture. I'm not an artist.
Brian In Korea
15
Years of Service
User Offline
Joined: 1st Mar 2009
Location:
Posted: 7th Mar 2009 17:03
Okay, you want him to stop at the end.

Try
The Fps Creator rocks!
16
Years of Service
User Offline
Joined: 24th Oct 2008
Location: Sneaking down your chimney.
Posted: 7th Mar 2009 17:19 Edited at: 7th Mar 2009 17:19
Script:


I can't texture. I'm not an artist.

Login to post a reply

Server time is: 2024-11-24 21:45:01
Your offset time is: 2024-11-24 21:45:01