![]() |
|
Star Wolves 3D space RPG with deep strategy and tactical elements |
![]() |
|
Thread Tools | Display Modes |
|
#1
|
|||
|
|||
![]() Quote:
I have not written the script yet, though. I spent most of yesterday doing additional experiments with specials.script. Quote:
|
#2
|
|||
|
|||
![]()
Yes, that's tricky. SetAllDied function needs all flights to be called by name but you don't know which flight the escort will meet. Now the only idea is time trigger like about 5 mins after escorted ship died all remaining escort goes out. It should be more than enough to end the battle. Not really a solution but still better than instant despawn or infinite hanging in space.
|
#3
|
|||
|
|||
![]()
Infinite hanging in space is probably not all that bad, it already occurs with trader fleets/Convoy fleets that lose their mothership, usually the remaining escorts are destroyed by other random contacts.
|
#4
|
|||
|
|||
![]()
True, and unless you can't manage to kill escorts within 5 mins then it means that you're running away!
Either way, once the host ship is killed either the escorts win or they have to rabbit... 5 mins is more than enough to see if a conflict is going your way, however I wonder at a random variable being introduced that might call for convoy-specific faction re-enforcements.... somewhat like ternie's call for precursors but occurs on a random 1-10 chance of the convoy host despawning/destroyed? |
#5
|
|||
|
|||
![]()
Any further progress nanaki?
|
#6
|
|||
|
|||
![]()
I tried actually implimenting the script, and it ended up being a total failure. I cannot figure out why even a basic flight spawn script fails to spawn anything whatsoever. Logs are telling me nothing, so I have no clue why its not working.
At this point, I am very close to just giving up on the whole thing. local escort1 = NewNavyFlight(groupName, "escort1_"..__formation_number, currentContact[3][portalStartIndex]:GetEntryPoint(10), 1, 6, currentContact[3][portalStartIndex]:GetOrientation()); local mainship; mainship = getglobal("flight_randomformation_"..__formation_n umber); local _pilot = mainship:GetPilotByNumber(1); local _ship = _pilot:GetShip(); escort1:Escort(_ship); This was directly inserted into the trigger generator function. This is the most simplified script that generates no errors. This is -supposed- to spawn a Old Empire flight with every random contact, and escort the flight it spawns with. However, when I actually go in-game, nothing happens. Last edited by Nanaki; 04-19-2010 at 10:26 PM. |
#7
|
|||
|
|||
![]()
It's really hard to say anything. Looks like some tables are involved too. IMO If it works in SW2 you should start modifying there until you understand every part of the script.
|
![]() |
Thread Tools | |
Display Modes | |
|
|