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 / game not ending

Author
Message
antsrocks
11
Years of Service
User Offline
Joined: 6th Jul 2013
Location:
Posted: 16th Aug 2013 14:51
in the trial game i put killing the monster objective 1 the game ends when i kill the monster but then in the exe file it dosent why
antsrocks
11
Years of Service
User Offline
Joined: 6th Jul 2013
Location:
Posted: 16th Aug 2013 17:13
can u make a script for me in which while follwing someone if the player gets out of range in more than 2 or more blocks a warning comes saying that u will lose
the game if u are not in range and after 5 blocks u lose the game
antsrocks
11
Years of Service
User Offline
Joined: 6th Jul 2013
Location:
Posted: 23rd Aug 2013 14:13
why isnt anyone replying
ncmako
12
Years of Service
User Offline
Joined: 19th Feb 2012
Location: Hendersonville,NC
Posted: 23rd Aug 2013 17:23
Hi antsrocks
First, this is a "scripting" question and belongs in the "Scripts" forum. Not to sound harsh, but you shouldn't just ask people to make a script for you without at least first trying.
To help you along, looking into the syntax "plrdistfurther=x"
You would have to add that to your npc character's main script.
At a certain distance it would call for a hud to display your "warning" message. At more of a distance you would
use "newgame" to end the game.
best
s4real
VIP Member
18
Years of Service
User Offline
Joined: 22nd Jul 2006
Location:
Posted: 23rd Aug 2013 17:30
Quote: "in the trial game i put killing the monster objective 1 the game ends when i kill the monster but then in the exe file it dosent why"


Post a link to your game and we could see whats going on or post a fpm with stock stuff and the script you using so we could build and test it for ourself.

best s4real

Pack ya games with vishnu packer its free. Vishnu game launcher is now released.
Help keep vishnu free by pledging now :- http://vishnu.chipin.com/vishnu
antsrocks
11
Years of Service
User Offline
Joined: 6th Jul 2013
Location:
Posted: 25th Aug 2013 16:00
guess u guys are right maybe i should do somethin atleast any ways here it goes
;header

;triggers

desc=none

:state=0=plrdistfurther=2,:plraddhealth=-10;
:state=1=plrdistfurther=5:quitgame;

it didnt work when i scripted it at first so i asked u guys plz find the error.and ihave n knowledge of scripting
antsrocks
11
Years of Service
User Offline
Joined: 6th Jul 2013
Location:
Posted: 25th Aug 2013 16:16
yay i found out the way to end the game

now the scripting part i also need the script for i can use only 1 shot or else game over i tried to script this one but couldnt get it
ncmako
12
Years of Service
User Offline
Joined: 19th Feb 2012
Location: Hendersonville,NC
Posted: 25th Aug 2013 22:57
Hi antsrocks
As I understand you had two problems going on. Did you get the "game not ending" in the exe sorted out?
As for the "following" script, grab a copy of the latest Syntax list here..http://forum.thegamecreators.com/?m=forum_view&t=180924&b=23 It really helps a lot.
"plrdistfurther=2" is way too small a number. Note,100=1 segment. You wanted 2 blocks(2 segments?) So that would be "plrdistfurther=200". 5 blocks "plrdistfurther=500".
Yeah, I wasn't sure if it's "quitgame or endgame"?

Also, remember this has to be in the characters "main" script that you are following. Is the character a "stock" one?
Teabone
Valued Member
18
Years of Service
User Offline
Joined: 8th Jun 2006
Location: Canada
Posted: 26th Aug 2013 02:03 Edited at: 26th Aug 2013 02:05
You need to download and use FPI Editpad. I noticed several mistakes in your coding syntax already.

Remove the semi-colons at the end of each of your lines of code.
Remove the comma after plrdistfurther=2
Replace your equal signs after state=0 and state=1 with semi colons.

As followed:



antsrocks
11
Years of Service
User Offline
Joined: 6th Jul 2013
Location:
Posted: 26th Aug 2013 13:25
i actually use fpi editpad and i dint get anything wrong and i read the guide a bit i can script now but not without ur help any ways thnx

will ask help if needed
antsrocks
11
Years of Service
User Offline
Joined: 6th Jul 2013
Location:
Posted: 26th Aug 2013 13:32
help plz i took ai friend scriptfrom nicky dudes guide i edited it a bit and it dosent work plz help

[;Header

;Triggers
; *** YOU MUST GET WITHIN RANGE TO PICK UP YOUR ENTITY :state=0,plrdistwithin=60:state=1,rotatetoplr,animate=1
; *** ENTITY FOLLOWS YOU :state=1,plrdistfurther=150:animate=5,followplr
:state=1,plrdistwithin=75:freeze ;:state=1,plrdistwithin=75:freeze,animate=51
; *** Press Z TO ENGAGE ATTACK :state=1,scancodekeypressed=44:state=3,animate=5
; *** ENTITY REPOSITION TO ENGAGE ENEMY :state=3:rotatetoplr,rotatey=30,animate=5,runfore=60,rotatey=-30,state=4
; *** RANDOMIZE ANIMATIONS :state=4,random=1:state=10,setframe=3 :state=4,random=1:state=11,setframe=4
;*** ENTITY RETURNS FIRE :state=5,ifweapon=1,plrdistwithin=300:useweapon,rundecal=6 :state=5,ifweapon=0:state=6,setframe=6 :state=5,plrdistfurther=160:state=1 ***IF PLAYER SHOOTS ENTITY, ENTITY SHOOTS PLAYER :shotdamage=1:shootplr ;***Press X TO DISENGAGE ATTACK (Seth Black) :state=5,scancodekeypressed=45:state=1,animate=1
;***Press END TO DROP OFF YOUR ENTITY (Seth Black) :scancodekeypressed=207:state=0,animate=1
; *** ENTITY RELOAD IF EMPTY :state=6:incframe=6 :state=6,frameatend=6:state=4,reloadweapon,sound=audiobankgunsreload.wav
; *** PLAY ANIMATION :state=10:incframe=3 :state=10,frameatend=3:state=5 :state=11:incframe=4 :state=11,frameatend=4:state=5
;End of Script
]
antsrocks
11
Years of Service
User Offline
Joined: 6th Jul 2013
Location:
Posted: 26th Aug 2013 16:15
and how do i use the script i asked u guys

in trigger zone or main script of charecter
antsrocks
11
Years of Service
User Offline
Joined: 6th Jul 2013
Location:
Posted: 28th Aug 2013 10:55
plz reply and ncmako wht do u mean if the charecter is a stock one
ncmako
12
Years of Service
User Offline
Joined: 19th Feb 2012
Location: Hendersonville,NC
Posted: 28th Aug 2013 16:36 Edited at: 28th Aug 2013 16:38
Hi antsrocks
First again, this is turning into a scripting questions and is best answered on the Scripts boards.
What I meant by "stock" is any entity/character that comes with FPSC's initial install(not something bought or install afterward).
So if it's stock I have it also and can help you, but if it's custom I might not have it. Unfortunately the script looks like it was made for a custom character?
Quote: " trigger zone or main script of character"

The script you posted would go into the characters "main" script.
best
antsrocks
11
Years of Service
User Offline
Joined: 6th Jul 2013
Location:
Posted: 29th Aug 2013 14:05
thnx last question what if my charecter is already following a script

Login to post a reply

Server time is: 2024-11-23 10:48:05
Your offset time is: 2024-11-23 10:48:05