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 / Why does the same image show all the time?

Author
Message
Meows
13
Years of Service
User Offline
Joined: 12th Oct 2011
Location: Totally over the Rainbow
Posted: 1st Apr 2012 00:08 Edited at: 1st Apr 2012 01:15
EDIT.. This was fixed thanks to bruce3371 and Black Fox, If you want to use it feel free. I got it off the forums and edited.
Just change all timer code to etimer.

Ver 1.9.009
I made 3 scripts. each with different images. each with different hudname. Placed each in a trigger zone. Now you go to the first Trigger zone, It displays.... You go to the second Trigger Zone. It displays OVER the first image. The Third Displays over the 1st and second images!
How do we stop this?


The FPM file is attached.
Images are here,

[img][href=http://78ez.com/images/open.dds[/img]
http://78ez.com/images/open.dds

http://78ez.com/images/startHint1.dds



http://78ez.com/images/startHint2.dds

Life is a short trip to another world

Attachments

Login to view attachments
bruce3371
14
Years of Service
User Offline
Joined: 4th Aug 2010
Location: Englishland
Posted: 1st Apr 2012 00:32 Edited at: 1st Apr 2012 00:32
Try using the etimers instead of the timers, i.e. change timerstart to etimerstart and timergreater to etimergreater. The etimer allows you to use multiple timers.

I can't see anything else at a quick glance, but then I'm not the greatest of scripters!! If there's anything else wrong, I'm sure someone else will be along shortly to help out

Meows
13
Years of Service
User Offline
Joined: 12th Oct 2011
Location: Totally over the Rainbow
Posted: 1st Apr 2012 01:13
Oh my I am in trouble. Black Fox will kill me.. etimers. I should have caught that.


So I changed timergreater to etimergreater and it works!

Many thanks bruce3371 and
So sorry Black Fox

Life is a short trip to another world
bruce3371
14
Years of Service
User Offline
Joined: 4th Aug 2010
Location: Englishland
Posted: 1st Apr 2012 02:00
Quote: "Oh my I am in trouble. Black Fox will kill me.. etimers. I should have caught that."


lol, I only know about etimers thanks to BlackFox as well!!

Just one thing, is that the fully modified script? Because I can see etimerstart has been changed, but timergreater is still there.

BlackFox
FPSC Master
16
Years of Service
User Offline
Joined: 5th May 2008
Location: Knight to Queens Bishop 3
Posted: 2nd Apr 2012 00:13
Quote: "Oh my I am in trouble. Black Fox will kill me.. etimers. I should have caught that."


Quote: "lol, I only know about etimers thanks to BlackFox as well!!"


I seem to have made either a slight impression, or scared people.

Using the "timergreater" and "timerstart" is okay, providing you only have one running in a script at a time. The moment you have two or more scripts using these commands, there will be conflicts. That's why "etimerstart" and "etimergreater" are the best to use- avoid any possible conflicts, and when it comes to debugging a script issue, people always forget these two commands and how they conflict in multiple instances and think it is something else in their script; and they tear it apart to rewrite and it still doesn't work... You get my point.

I use one script only that uses "timerstart/timergreater" and it works fine.


Twitter: @NFoxMedia
bruce3371
14
Years of Service
User Offline
Joined: 4th Aug 2010
Location: Englishland
Posted: 2nd Apr 2012 00:18
I've got into the habit of using the etimers whether or not I'm using multiple scripts with timers. Just seemed like a good habit to get into

rolfy
18
Years of Service
User Offline
Joined: 23rd Jun 2006
Location:
Posted: 2nd Apr 2012 04:09
I've never really figured why they introduced etimers when they could simply have made the old basic timer work in multiple, it confused and continues to confuse folks.

Awesome! Its one of those threads.
bruce3371
14
Years of Service
User Offline
Joined: 4th Aug 2010
Location: Englishland
Posted: 2nd Apr 2012 04:23
Quote: "I've never really figured why they introduced etimers when they could simply have made the old basic timer work in multiple, it confused and continues to confuse folks."


Either that, or they should get rid of the old timer, now that the new(ish) etimer has been implemented and fulfills the function of both...

Ched80
14
Years of Service
User Offline
Joined: 18th Sep 2010
Location: Peterborough, UK
Posted: 3rd Apr 2012 21:59 Edited at: 3rd Apr 2012 22:00
I like the timer property. The etimers are limited to individual entities/trigger zones, but timers can be actioned and tested by different entities, but each to their own I guess

Flatlander
FPSC Tool Maker
17
Years of Service
User Offline
Joined: 22nd Jan 2007
Location: The Flatlands
Posted: 4th Apr 2012 00:13
And then, if you work with RPGmod you will see rpg_entity timers. :LOL:

Of course, Ched could delete them.

Login to post a reply

Server time is: 2024-11-24 02:30:57
Your offset time is: 2024-11-24 02:30:57