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 / Display Image Script works for one Image but not 2 through 4 images, any advice?

Author
Message
Meows
13
Years of Service
User Offline
Joined: 12th Oct 2011
Location: Totally over the Rainbow
Posted: 1st Nov 2011 20:30
This script works great for displaying ONE image, How ever when I put two or more Light Switches it will only show the same Image over and over again.
I changed the hudname=to uses2 to uses4 in the lightswitch\'s then edited the scripts to reflect the same, and in the hudimagefine=gamecore\\huds\\info1.dds I changed each image file
to info2.dds info3.dds etc, then in the *.fpi files i named them info1.fpi to info4.pfi. I can not figure out why the other 3 images will not display.. Any advice please?
Meows


Life is a short trip to another world
BlackFox
FPSC Master
16
Years of Service
User Offline
Joined: 5th May 2008
Location: Knight to Queens Bishop 3
Posted: 2nd Nov 2011 05:12 Edited at: 2nd Nov 2011 05:16
First off, you *should* define your huds first in your ":state=0" lines, not mid-stream. Then you do the rest of your scripting.

Like this as an example:



In the above snippet you will see I define all my huds in the first block of lines, then after have the "state=0:state=1" to then do the rest of my scripting at ":state=1". Follow?

In your case, the script starts at state=0, then jumps to state=10 where you are defining the second hud. That is incorrect. You need to define the huds in the beginning.

If you have a chance, refer to the Official Community Guide (can download it here if not in your Docs folder). There are many example scripts to help you out. If you are still confused or having issues, post here and we'll give you a hand.


Twitter: @NFoxMedia
Meows
13
Years of Service
User Offline
Joined: 12th Oct 2011
Location: Totally over the Rainbow
Posted: 3rd Nov 2011 19:29
Thank you Black Fox. I will give it a try.. first week of trying to learn this.

"Mod, you can
lock this thread now."

Life is a short trip to another world
BlackFox
FPSC Master
16
Years of Service
User Offline
Joined: 5th May 2008
Location: Knight to Queens Bishop 3
Posted: 3rd Nov 2011 20:50 Edited at: 3rd Nov 2011 20:52
No problem. It's not that I won't give you the script, but I am attempting to help you understand the script language. By looking at some of the examples in the guide(s), and review your current scripts to see how they work, you will get a better understanding to the scripts, commands, etc. And for your first week, you seem to have some of the basics understood.

Any time you have questions or issues, post your script(s) and try to be descriptive to what it is suppose to do, what is happening instead, and what version of FPSC you are using. Some commands in v1.18 don't apply to v1.17 or lower, and it helps those of us when attempting to help you out.

I would also recommend FPI EditPad created by Flatlander. It will help you when writing scripts- we used it when we first started and it helped us to learn the "how's and why's". If you have issues with it or need help, email Flatlander and I'm certain he'd be willing to help you out.


Twitter: @NFoxMedia
Flatlander
FPSC Tool Maker
17
Years of Service
User Offline
Joined: 22nd Jan 2007
Location: The Flatlands
Posted: 4th Nov 2011 00:43
Hi Meows,

Oooops. I think you asked for the wrong thread to be locked.

I think you meant to lock your FPI Editpad 3.3.95 thread.



Use RPG Mod and create a world filled with adventure!

Login to post a reply

Server time is: 2024-11-24 05:04:21
Your offset time is: 2024-11-24 05:04:21