![]() |
Show all 11 posts from this thread on one page |
VWBB (https://volitionwatch.game-warden.com/vwbb/index.php)
- The Babylon Project (https://volitionwatch.game-warden.com/vwbb/forumdisplay.php?forumid=16)
-- Fred 2 sexp repeats (https://volitionwatch.game-warden.com/vwbb/showthread.php?threadid=4971)
Fred 2 sexp repeats
As I asked in the other thread that has just been closed, how do you make a repeating function like a variable changing (e.g. Shadow Battlecrab firing) when a vessel repeatedly moves in and out of range of the target (with say a telepath on board)?
The question is not how to set up the variable but how to get it to repeat by a means that isn't just putting in lots of the same sexps chained?
__________________
When the final reckoning comes only the damned will be there to see it.
Re: Fred 2 sexp repeats
quote:
Originally posted by Triggy
As I asked in the other thread that has just been closed, how do you make a repeating function like a variable changing (e.g. Shadow Battlecrab firing) when a vessel repeatedly moves in and out of range of the target (with say a telepath on board)?
The question is not how to set up the variable but how to get it to repeat by a means that isn't just putting in lots of the same sexps chained?
From what I know, you'd have to script things like a Battlecrab doing that. I mean ... it's not standard AI behavior, so it'd have to be scripted, and I don't know if a chain of sexps with a repeat would do it - I've never tried anything like that in FRED2 
I'm sure somebody else has - or will, anyway ...
__________________
[url="http://www.dopefish.com"]swim...swim...hungry...[/url]
Yes I think that it is possible to do. There should be above of chained a repeat. Put there some number, but remember that it must not be linked in any event-is-true-delay, because it causes replay in all linked events. It would be like this:
Event name
when
facing
Shadow ship
White star
10-120
clear-orders
Shadow ship
add-order
Shadow ship
stay-still (Play-dead also do the thing)
White star
89
and then put it in repeat (I think that they used this method in Derelich when they wanted to repair ships).
__________________
Thats all folks!
Lady Rose, the repeat makes it simply repeat n times at intervals of x seconds, it doesn't check those conditions when repeating.
That's right... now, if this has been done in Derelict, perhaps you should take a look how it was done?
Or, if IceFire can drop a few tips... 
__________________
[URL=http://freespace.volitionwatch.com/babylon/]The Babylon Project homepage[/URL] <> [URL=http://freespace.volitionwatch.com/babylon/faq.php]The Babylon Project FAQ[/URL] <> [URL=http://freespace.volitionwatch.com/fsscp/]Please support FreeSpace Source Code Project[/URL]
quote:
Originally posted by pera
Lady Rose, the repeat makes it simply repeat n times at intervals of x seconds, it doesn't check those conditions when repeating.
If I'm right about events checking the conditionals before going ahead with a repeat, then Lady Rose's method would be one of the most efficient ways of going about it.
Oh geezzz, I hit "quote" on the post above when I meant to hit "edit". Sorry.
---
Lady Rose, the repeat makes it simply repeat n times at intervals of x seconds, it doesn't check those conditions when repeating.
---
Wrong.
In TBP, the missions use
when
<
distance
alpha1
jumpgatecentre:1
1000
to enable the warp, (and a corresponding > to disable it) with a repeat count of 999999.
that makes it so that every time those conditions are true, that event happens.
Therefore it's perfectly reasonable to assume that
<
distance
telepaths
shadowship
1000
could be used to stop the shadow vessel from firing, and
>
distance
telepaths
shadowship
1000
could be used to enable the shadow's weaponry again.
__________________
Forgive my stupidity.
---
The Fish Institution
http://www.fishinstitution.com
Maybe it is true. It was just a idea, I have never personaly used it. So I just say how I thinked it, you know that it is good to have visions. Am I right? There might be really good chance that it doesn´t work, but in other hand Slasher made it work yes. And that Xaphod_X´s method will work I have tried it in orginal FS2.
Cheers everyone, I'll try it out tonight 
__________________
When the final reckoning comes only the damned will be there to see it.
| All times are EST. The time now is 07:54 AM. | Show all 11 posts from this thread on one page |
Powered by: vBulletin Version 2.2.6
Copyright © Jelsoft Enterprises Limited 2000, 2001.