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 / Kravenwolf Random Weapons Chest Help!

Author
Message
The Master D
15
Years of Service
User Offline
Joined: 20th Feb 2009
Location:
Posted: 4th Apr 2013 01:57
So I installed everything in the right place and set everything up exactly as was stated in the document, but all of my weapons appear stationary inside of the bow and cannot be picked up. Can anyone help me at all? I was really hoping to use this in an upcoming project of mine but I can't if I can't get it to work lol.

As always, anyone who can try to help will be greatly appreciated and you will be the potential savior of my game project

AMD FX-6300 Vishera 3.5GHz, Radeon HD 7850 2GB, 8 GB RAM, Win 7 Pro 64 Bit
Burger
12
Years of Service
User Offline
Joined: 22nd Jun 2012
Location: New Zealand
Posted: 4th Apr 2013 07:43
I can visualise how such a script would be done, its not impossible, but maybe you should display the current script so we can see how to take it from there.

- An Instinctive Fear IndieDB page, download demo today!
The Master D
15
Years of Service
User Offline
Joined: 20th Feb 2009
Location:
Posted: 4th Apr 2013 23:10
Okay, here's the script that I'm using.
[desc = random weapon

:state=0:localvar=20
:state=0:hudreset,hudx=50,hudy=90,hudimagefine=gamecore\text\generateweapon.tga,hudname=use,hudhide=1,hudmake=display
:state=0,plrdistwithin=60:hudshow=use
:state=0,plrdistwithin=60,scancodekeypressed=18:state=1
:state=1,varless=50,random=5:hudunshow=use,globalvar=99,setvar=1,localvar=20,setvar=51,state=2
:state=1,varless=51,random=10:hudunshow=use,globalvar=99,setvar=2,localvar=20,setvar=52,state=2
:state=1,varless=52,random=15:hudunshow=use,globalvar=99,setvar=3,localvar=20,setvar=53,state=2
:state=1,varless=53,random=20:hudunshow=use,globalvar=99,setvar=4,localvar=20,setvar=54,state=2
:state=1,varless=54,random=25:hudunshow=use,globalvar=99,setvar=5,localvar=20,setvar=55,state=2

:state=2,plrdistfurther=60:state=0
:plrdistfurther=60:hudunshow=use]

AMD FX-6300 Vishera 3.5GHz, Radeon HD 7850 2GB, 8 GB RAM, Win 7 Pro 64 Bit
Burger
12
Years of Service
User Offline
Joined: 22nd Jun 2012
Location: New Zealand
Posted: 5th Apr 2013 09:43
Hmm, I don't quite understand how this existing script works with those variables, are there other parts to it? For example, what changes have been made to trigger the weapon or where is the script that spawns the weapon?

- An Instinctive Fear IndieDB page, download demo today!
Corno_1
14
Years of Service
User Offline
Joined: 3rd Nov 2010
Location:
Posted: 5th Apr 2013 14:01
First which version you use? I can be done a lot easier...
But we neednĀ“t the box script. We need the weapon scripts you use!!
If you do it like kravenwolf said, it should work. Use for the weapons weapon1.fpi and so on

Corno_1


The Master D
15
Years of Service
User Offline
Joined: 20th Feb 2009
Location:
Posted: 5th Apr 2013 22:47

This is the script that you put into the main script slot on the weapon.

@Corno_1 I use the latest version, v1.20

AMD FX-6300 Vishera 3.5GHz, Radeon HD 7850 2GB, 8 GB RAM, Win 7 Pro 64 Bit
The Master D
15
Years of Service
User Offline
Joined: 20th Feb 2009
Location:
Posted: 15th Apr 2013 01:49
I hate to double post, but I looked this problem over dozens of times and I just can't seem to come up with any kind of solution. If anyone reads this thread and might have an idea of what the problem may be, please don't hesitate to offer a solution, I'd greatly appreciate it!

AMD FX-6300 Vishera 3.5GHz, Radeon HD 7850 2GB, 8 GB RAM, Win 7 Pro 64 Bit

Login to post a reply

Server time is: 2024-11-23 16:55:27
Your offset time is: 2024-11-23 16:55:27