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 / Dont really know what to write as subject, but i need help! :)

Author
Message
shuggee
14
Years of Service
User Offline
Joined: 22nd Aug 2010
Location: sweden
Posted: 23rd Aug 2010 04:51
Is it possible to make so that the character only attacks me when im outside of the room, and only patrol outside when im in the room?
Thanks for the help!

Attachments

Login to view attachments
DiDiT
14
Years of Service
User Offline
Joined: 30th May 2010
Location: England
Posted: 23rd Aug 2010 16:52 Edited at: 23rd Aug 2010 17:04
Please don't make threads with titles like this, you make it harder for everyone else who wants to ask the same question to find it, and thus, we get more people asking the same question.

I suppose the title of this thread would be 'guard patrol script'

yes, it seems simple, splice a non-aggressive patrol script (aka following way-points) then have a trigger zone out side the room that triggers the second half of the script where guard is told to attack you.

if you want them to stop if you back in the room again, set up the script so that it activates and changed state, then make another trigger zone to reactivate it, which sends it back to the first state...

hang on, let we write up what I mean...

EDIT: here we go.



Its only rough and it needs to be edited to be used, but, you should see what I mean..

good luck. :3

Yeah, It was me... :3

Flatlander
FPSC Tool Maker
17
Years of Service
User Offline
Joined: 22nd Jan 2007
Location: The Flatlands
Posted: 23rd Aug 2010 17:44
The subject title could have been:

Quote: "make character only attack me when im outside of the room"


In fact, that was a couple of less characters than the title you came up with.

Please, everybody have searchable subject titles.

I reject your reality and substitute my own!

Add more adventure to your game -- use RPG Mod
shuggee
14
Years of Service
User Offline
Joined: 22nd Aug 2010
Location: sweden
Posted: 23rd Aug 2010 19:01 Edited at: 23rd Aug 2010 19:59
yeah sorry about the title! going to give it a try, dont think i'll manage it tho! thanks for the help
shuggee
14
Years of Service
User Offline
Joined: 22nd Aug 2010
Location: sweden
Posted: 23rd Aug 2010 19:58
sorry about the titel name! im going to give it a try, dont think i'll manage it tho! hehe thanks for the help
shuggee
14
Years of Service
User Offline
Joined: 22nd Aug 2010
Location: sweden
Posted: 23rd Aug 2010 21:26
Hehe i tried my best, but of course it doesnt work properly!

I tried to make 2 scripts from the pace script. Script 1 works, he patrols outside. But when it comes to script 2 nothing happens when i enter the trigger zone.

This is how script 1 looks like:


And this is how script 2 looks like:


Just so u know, i cant script at all, i just tried my best with copy and paste
DiDiT
14
Years of Service
User Offline
Joined: 30th May 2010
Location: England
Posted: 23rd Aug 2010 23:08
Please go over what you did.

Did you apply script 2 to the trigger zone or something?

Did you create a new script and string them together into one like I suggested above?

and, you should look into script writing, it is good for... well,everything FPCS really.

Yeah, It was me... :3

shuggee
14
Years of Service
User Offline
Joined: 22nd Aug 2010
Location: sweden
Posted: 23rd Aug 2010 23:27
Well, first i right clicked on the character and changed the name to dude1, then i changed the script to my test1 script in the 'main' field. After that i made a trigger zone, right clicked it, and changed the script to the test2 script also in the 'main' field. Then i changed in the 'if used' field to dude1.
Quote: "Did you create a new script and string them together into one like I suggested above?"
Didnt really get that one Sorry for not understanding very mutch..feel kinda stupid

Also, sorry about the three double posts, my first posts in the forums
DiDiT
14
Years of Service
User Offline
Joined: 30th May 2010
Location: England
Posted: 24th Aug 2010 00:27
Ah, thats your problem.

You cant do that with trigger zones. what you want is a single script, which, when not activated, is pace, and when it is activated is attack. the trigger zone is only there to provide activation, not to change the codes around.

FPSC coding can be daunting at first, but please, read into it, i will make a lot of things easier.

cause, what I said above wont work, and needs to be modded slightly and I would write the command for you but its late, and I don't have the time. so...

good luck with working it out.

Yeah, It was me... :3

Login to post a reply

Server time is: 2024-11-24 19:36:17
Your offset time is: 2024-11-24 19:36:17