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 / Project Blue Scripting Questions

Author
Message
chidem
15
Years of Service
User Offline
Joined: 13th Jan 2009
Location:
Posted: 18th Feb 2010 14:09
Hi All

I think I am ready to trying upping my scripting skills with project blue but I was hoping some of you could help point me in the right direction of some scripts to help get me started. For instance, I understand this mod allows you to select which level your game will load next allowing players to backtrack through the game but I am struggling to find a script for this. Has anyone any ideas where I can find it?

Also, the variable system in this script requires you to declare variables in each level - does that mean that variables from previous levels are not carried over? Do they then need to be declared again?

Finally, I read somewhere someone had modified Conjured Entertainment's cash/purchase system to run on PB - was this posted in this forum?

Sorry for all the questions - I've searched the forum to no avail and any help would be greatly appreciated.

Pioneering: Explore the Early American West - Website: http://www.thehistoryforge.com
zeza
16
Years of Service
User Offline
Joined: 27th Jun 2008
Location:
Posted: 18th Feb 2010 15:45
Quote: "I understand this mod allows you to select which level your game will load next allowing players to backtrack through the game "

Yes, the command is nextlevel=X, from the manual
Quote: "
Nextlevel=X
o Makes it so when the current level is completed, Level X will begin."


Quote: "does that mean that variables from previous levels are not carried over"

From my experience, yes they do carry over.

Quote: "I read somewhere someone had modified Conjured Entertainment's cash/purchase system to run on PB"

I'm not sure,but it is very easy to make.

This was my setup to display the money, then all you need for purchase is to add, vargreater=money X, to the script.

Hope This Helps
chidem
15
Years of Service
User Offline
Joined: 13th Jan 2009
Location:
Posted: 18th Feb 2010 17:52
Ah, Thanks so much Zeza - that is an amazing help!

Pioneering: Explore the Early American West - Website: http://www.thehistoryforge.com
Plystire
21
Years of Service
User Offline
Joined: 18th Feb 2003
Location: Staring into the digital ether
Posted: 26th Feb 2010 01:22
I do believe PB comes with a nice collection of scripts for users to look at. Perhaps dissecting and playing around with those would help out with learning the new commands?

If nothing else, trolling through the manual might give you some ideas for scripts to try making!


The one and only,


Bootlicker
15
Years of Service
User Offline
Joined: 29th Mar 2009
Location: Germany
Posted: 27th Mar 2010 20:10 Edited at: 27th Mar 2010 20:23
when it says next level=x

does 'x' mean you put a number, name or directory?

could someone please write an example script?
Plystire
21
Years of Service
User Offline
Joined: 18th Feb 2003
Location: Staring into the digital ether
Posted: 1st Apr 2010 04:34
X is the level number. You choose the level order when you build the game. Give the script the number of the level you want to go to next.


The one and only,


Bootlicker
15
Years of Service
User Offline
Joined: 29th Mar 2009
Location: Germany
Posted: 2nd Apr 2010 20:47
is there a command I can use for a HUD to fade in?
Marc Steene
FPSC Master
18
Years of Service
User Offline
Joined: 27th Mar 2006
Location: Bahrain
Posted: 3rd Apr 2010 12:48
Quote: "is there a command I can use for a HUD to fade in? "


Yep, but you have to script it. The script below I wrote will do this for you:

desc = Fade in HUD

;Triggers

:state=0:hudreset,hudx=50,hudy=50,hudimagefine=gamecore\huds\yourhud,hudname=yourhud,hudhide=1,hudmake=display,state=1

:state=1:dimvar=myhudalpha,setvar=myhudalpha 0,hudshow=yourhud,state=2

:state=2,varless=myhudalpha 255:addvar=myhudalpha 1

:state=2:hudalpha=yourhud %myhudalpha,hudshow=yourhud


[b]FPSC MIGRATION: http://forum.thegamecreators.com/?m=forum_view&t=142497&b=21
Bootlicker
15
Years of Service
User Offline
Joined: 29th Mar 2009
Location: Germany
Posted: 3rd Apr 2010 13:42
Thanks,

I always knew you were cool
Bootlicker
15
Years of Service
User Offline
Joined: 29th Mar 2009
Location: Germany
Posted: 11th Apr 2010 16:49
is there something that I can add to that to make the level win after 10 seconds?
Les Horribres
19
Years of Service
User Offline
Joined: 20th Nov 2005
Location: My Name is... Merry
Posted: 12th Apr 2010 06:00
Uhh, yeah...

I forgot how the "winzone" worked... but just edit that script to do whatever

:plrwithinzone=1:"actions"

the actions are after 10 seconds. (Hmm, might need a win object)

I know I had enemies activate the zone, and incriment state, to force players to kill x amount of enemies before winning... but I can't seem to find a command that looks like "nextlevel"

Its not who you are or what you've done... its WHY you did it and how far you are willing to go.
If you fear speaking for yourself, make use the words of others while discovering your own voice.
Plystire
21
Years of Service
User Offline
Joined: 18th Feb 2003
Location: Staring into the digital ether
Posted: 13th Apr 2010 05:46
@Bootlicker:

Make an entity that can be picked up. Hide it some place in your levela nd amke it ALWAYS ACTIVE. Script that entity to be picked up when it has been activated. Then give it an Objective Number and make SURE that there are no other "Objective" entities in your level.

Now, simply activate that entity to win the level at any time.


@Les Horribres:

NextLevel is a command in Project Blue.


The one and only,


Bootlicker
15
Years of Service
User Offline
Joined: 29th Mar 2009
Location: Germany
Posted: 13th Apr 2010 18:21
Thanks, ply I got it working

Yet now (another request) is there a way I can get a movie to play without occupying the whole screen?

Login to post a reply

Server time is: 2024-11-24 23:29:06
Your offset time is: 2024-11-24 23:29:06