Go Back   Ryzom > English speaking community > The Ryzom Ring > Adventure designers hints and exchanges
Ryzom News FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old November 2nd, 2006, 10:09 PM   #5
nephy13
 
nephy13's Avatar
 
Join Date: Oct 2006
Posts: 136
Re: 101 ways to use a Tryker

For all of the situations I can imagine (I accept there could be many other situations...), you can avoid using "artificial" flags by properly querying the entities in the game. For example, to see if a timer has completed, then query "finished" on it rather then using the timer trigger to set an external flag. To flag that a specific zone has ever been entered, just deactivate the zone when it is triggered (since you only need to trigger the zone-entry once in this case, it would be correct to deactivate it when it triggers anyway).

If you *really* need to make a flag, I'd suggest the best way is to create a non-creature like a dialog (which is always invisible) and use active/inactive as your flag value. Be aware that doing this will put Trykers out of work...

For a counter, you could use a timer that is paused (Put it as active in the editor and add an on-activated event that pauses it). You set the initial timer value to, say, 5 "seconds" and then you can add or subtract from this value. You will get the timer triggering when value becomes 0. You can alternatively query the "finished" flag to see whether the current value == 0.

Please be aware that if you set the initial time to 5 seconds, then you can only count down 4 times before the timer is triggered (I've tested this a few times and it seems consistent). Presumably the timer counts down once before you can pause it. So, if you want a counter for 5, then set the intial value to 6. Additionally, you must be aware that it would be reasonable for Neveraxx to change this behaviour on a whim, since this is not really what timers are for.

*Warning! Using these tricks is an ungodly fudge of the highest order and will prevent you from ever getting to programmer heaven*
nephy13 is offline   Reply With Quote
 


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT +2. The time now is 03:56 AM.


Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.
Ryzom forums are part of the SoR service and subject to the EULA and Code of Conduct.

MMORPG