The Game Creators
The Game Creators Home Online Shop Click to Login
  Hot: Christmas CompetitionNovember NewsletterModel Pack 36DB Pro Pack 2009DGS BonanzaCharacter PackFPS Creator Bonanza;
The Game Creators
FPSC Scripts / Help with a health gun script (using ply's mod)

Go to the first page of this board Return to the Forum Menu Post Message
6 Messages - Page   of 1   
Bookmark and Share Search the Forum

Author Message
darimc

User


Joined: Fri Jan 19th 2007
Location: In a world so lonely and cold...
Posted: 3rd Nov 2009 19:14     Edited: 3rd Nov 2009 19:25     | link | toggle

Hey guys, I tried to make a basic script so that when a certain gun is fired, it gives you health... But I can't manage to get it to work. I am applying the script to a dynamic entity which is always active, but no luck...

Script:
+ Code Snippet
;Artificial Intelligence Script

;Header

desc          = Health Gun

;Triggers

:state=0,plrfiredweap=scifi\tavor, plraddhealth=2
:state=1,plrusingaction=0:state=0

;End of Script


Any help would be appreciated.

Back to top
Report this message as abusive
bass guy1669

User


Joined: Sat Mar 24th 2007
Location: Argleton
Posted: 3rd Nov 2009 22:59           | link | toggle

The script never gets to state 1.

come see night shift at http://forum.thegamecreators.com/?m=forum_view&t=106003&b=25 see you there
Back to top
Send AIM user a message
Report this message as abusive
Plystire

User


Joined: Tue Feb 18th 2003
Location: Staring into the digital ether
Posted: 4th Nov 2009 01:23           | link | toggle

Is this with Ply's Mod or Project Blue/Green?


If you're not able to make weapon scripts (like you can with both Project Blue and Green) then you're going about it the right way, just change this line:
:state=0,plrfiredweap=scifi\tavor, plraddhealth=2
To:
:state=0,plrfiredweap=scifi\tavor:plraddhealth=2

You need to have that second colon in there


If you are using Project Blue or Green, then I'd suggest doing this with a weapon script instead. Just make a script for your health-giving weapon and instead of using "fireweapon" to make the weapon shoot, set up a custom anim with your firing animation frames, play that custom animation and increase the player's health. It'll look much smoother and will work in ALL levels, not just the one with your script active.


The one and only,


Back to top
Report this message as abusive
Google Ad
Back to top
 
darimc

User


Joined: Fri Jan 19th 2007
Location: In a world so lonely and cold...
Posted: 4th Nov 2009 15:29     Edited: 4th Nov 2009 15:34     | link | toggle

@Plystire, Oh... Yeah, I am using Project Green... So how would I make a weapon script to give me health?

Back to top
Report this message as abusive
Plystire

User


Joined: Tue Feb 18th 2003
Location: Staring into the digital ether
Posted: 4th Nov 2009 17:13     Edited: 4th Nov 2009 17:14     | link | toggle

Whoops, my bad... Project Green doesn't have weapon scripting.
(PG has PB1.6, which didn't have weapon scripting either.)

Sorry, I don't have very good backtrack memory. PB1.7 has it, so I must have been thinking of that.


The one and only,


Back to top
Report this message as abusive
darimc

User


Joined: Fri Jan 19th 2007
Location: In a world so lonely and cold...
Posted: 4th Nov 2009 17:54           | link | toggle

Alright, this way works anyways. Thanks for the help, have one on me!

Back to top
Report this message as abusive

Go to the first page of this board Return to the Forum Menu Post Message
6 Messages - Page   of 1   
Search the Forum

You must be logged-in to post messages to this forum. You can register an account for free. Or click here to login.
Forum Search

Enter a word or phrase to search our Forum for:

Thread Subject Search
Search Phrase:
Search Scope: Entire forum
Just this board
 
Google Forum Search
Search Phrase:
 
Apollo v2.02


Dark Game Studio
Privacy Policy AUP Top of Page