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 / Need a little scripting help if you could. spawn char

Author
Message
Candle_
18
Years of Service
User Offline
Joined: 29th May 2006
Location: kindergarten
Posted: 17th Oct 2006 06:10
I want to have when a gold block is pickup it spawns a NPC .
Looked around but didn't find anything and I could see how to do it in the scripts I look at.
Thanks for the help.

FredP
Retired Moderator
18
Years of Service
User Offline
Joined: 27th Feb 2006
Location: Indiana
Posted: 17th Oct 2006 08:52
I am thinking this off the top of my head so I don't know if it will work or not but if you use a trigger zone to spawn the character and put the gold bar in the if used section that might make the character appear when you pick up the gold bar.
Won't swear to it,though.
If I remember (hard to do when you get old) I will check and see if I can figure it out in a few.

Candle_
18
Years of Service
User Offline
Joined: 29th May 2006
Location: kindergarten
Posted: 17th Oct 2006 09:04
Wow let me know it works and how you did it.

Candle_
18
Years of Service
User Offline
Joined: 29th May 2006
Location: kindergarten
Posted: 18th Oct 2006 00:41
FredP
Retired Moderator
18
Years of Service
User Offline
Joined: 27th Feb 2006
Location: Indiana
Posted: 18th Oct 2006 01:50
No it didn't.
I tried two or three ways.
I did learn something though.
If you place an entity in a trigger zone and set spawn at start to no it doesn't matter what the name of the entity is it will spawn when you enter the trigger zone.

Silent Thunder
18
Years of Service
User Offline
Joined: 6th Feb 2006
Location: The Ship
Posted: 18th Oct 2006 02:26
I found that out a long time ago, that was before I could get enemies to spawn at intervals.

Nue B
19
Years of Service
User Offline
Joined: 20th Nov 2005
Location: Indy
Posted: 18th Oct 2006 04:40 Edited at: 18th Oct 2006 05:01
You all need some help... here ya go.



add that code as the main script for your gold bar. place the name of your NPC in the "if used box" of the gold bar item. Set the NPC's "Spawn at start" to "NO"

enjoy!

Nue B. or not Nue B. That is the question.
Candle_
18
Years of Service
User Offline
Joined: 29th May 2006
Location: kindergarten
Posted: 18th Oct 2006 05:06
Nue B, would you like a few bucks for that script? it works great and I think you should get something.
email me and I'll paypal you some money.

Nue B
19
Years of Service
User Offline
Joined: 20th Nov 2005
Location: Indy
Posted: 18th Oct 2006 05:20 Edited at: 18th Oct 2006 05:20
LOL! No thanks, I like to help others who share my interest in game making. If you view the script closely, you'll see I only added one thing to the pickup item script that comes with FPSC.
"activateifused=1" that's it.

Nue B. or not Nue B. That is the question.
Candle_
18
Years of Service
User Offline
Joined: 29th May 2006
Location: kindergarten
Posted: 18th Oct 2006 05:27
Ok, but the offer still stands if you want it.
Thanks for the help

Nue B
19
Years of Service
User Offline
Joined: 20th Nov 2005
Location: Indy
Posted: 18th Oct 2006 05:39
I was thinking of offering my HUD creating services for those without the software and/or know how, but I think that would keep me too busy.

Nue B. or not Nue B. That is the question.
FredP
Retired Moderator
18
Years of Service
User Offline
Joined: 27th Feb 2006
Location: Indiana
Posted: 18th Oct 2006 06:48
Nue B,
Thanks a lot for the script.

Login to post a reply

Server time is: 2024-11-23 01:30:33
Your offset time is: 2024-11-23 01:30:33