Author Topic: The reprobator's fred noobsih question emporium  (Read 12430 times)

0 Members and 2 Guests are viewing this topic.

Re: The reprobator's fred noobsih question emporium
I see, something that disturb me a bit is the presence of both repair subsystem and set sbsystem strengh i mean : if the repair subsystem call for a support ship, why does "set subsystem strengh" act exactly the same? i don't see the difference between them.
If set subsystem strengh simply set directly the new subsystem strengh value that would make sense no?
$Formula: ( every-time
   ( has-time-elapsed "0" )
   ( Do-Nothing
   )
   ( send-message
      "#Dalek"
      "High"
      "Pro-crasti-nate"
   )
   )
)
+Name: Procratination
+Repeat Count: 99999999999
+Interval: 1

 
Re: The reprobator's fred noobsih question emporium
Those sexp now work as intended , that's perfect,
$Formula: ( every-time
   ( has-time-elapsed "0" )
   ( Do-Nothing
   )
   ( send-message
      "#Dalek"
      "High"
      "Pro-crasti-nate"
   )
   )
)
+Name: Procratination
+Repeat Count: 99999999999
+Interval: 1

 
Re: The reprobator's fred noobsih question emporium
OK,
Hi again everyone,
I'm actually working on a sexp sequence that allow the player to reload it's weapon without support ship (we have no support ship yet, and planned that fighter and bomber have to come back to the closest carrier to reload.)
It's working for now, but I'm looking for a way to improve it,
For now it check the distance to a given subsystem
"evertime
<
 distance to ship subsystem
50
etc..."

What is bad right now with this, it's that you just have to run to the hangar bay at full speed and you get instantly reloaded.
I'd like to check more things in order to trigger the rearm thing :
So I've added a speed checking , but what i'm looking for to finish it, is a time check,
Basically from what i understood "has time elapsed" is based on mission time,
I d like to create a sequence that check :
when alpha 1 is Under a distance of 40 m
and alpha 1 speed under 30
those two condition where true for 5 second
then rearm.
The first two condition are checked already, but the last one, i did not find solution yet , Any idea?


$Formula: ( every-time
   ( has-time-elapsed "0" )
   ( Do-Nothing
   )
   ( send-message
      "#Dalek"
      "High"
      "Pro-crasti-nate"
   )
   )
)
+Name: Procratination
+Repeat Count: 99999999999
+Interval: 1

 

Offline FUBAR-BDHR

  • Self-Propelled Trouble Magnet
  • 212
  • Master Drunk
    • 165th Beer Drinking Hell Raisers
Re: The reprobator's fred noobsih question emporium
Well it's 5:30am so this may not come out too well.

You probably need 3 events and a variable (call it rearm)

First one:
When
->or
-->distance to ship subsystem alpha 1 > 39
-->current speed alpha 1 > 29
->modify variable rearm 0
repeating 99999999 delay 1

second
when
->and
-->distance to ship subsystem alpha 1 < 40
-->current speed alpha 1 < 30
->modify variable rearm rearm + 1
repeating 9999999 delay 1

third
when
->rearm > 4
-> do your rearming

No-one ever listens to Zathras. Quite mad, they say. It is good that Zathras does not mind. He's even grown to like it. Oh yes. -Zathras

 
Re: The reprobator's fred noobsih question emporium
That Seems a clever way to adress the issue.

Is there a limit of sexp that can be stored in a signle mission?

right now i ve a lot of sexp in my mission's template and yeet nothing happen in those mission :p
$Formula: ( every-time
   ( has-time-elapsed "0" )
   ( Do-Nothing
   )
   ( send-message
      "#Dalek"
      "High"
      "Pro-crasti-nate"
   )
   )
)
+Name: Procratination
+Repeat Count: 99999999999
+Interval: 1

 
Re: The reprobator's fred noobsih question emporium
I'm doing it right now, what i don't get is wich sexp to use to check a variable value (i mean for the last part
Oh i think i got it!
« Last Edit: February 03, 2010, 11:06:49 am by Reprobator »
$Formula: ( every-time
   ( has-time-elapsed "0" )
   ( Do-Nothing
   )
   ( send-message
      "#Dalek"
      "High"
      "Pro-crasti-nate"
   )
   )
)
+Name: Procratination
+Repeat Count: 99999999999
+Interval: 1

 

Offline The E

  • He's Ebeneezer Goode
  • 213
  • Nothing personal, just tech support.
    • Steam
    • Twitter
Re: The reprobator's fred noobsih question emporium
Variables can be checked using the same operators you would use for fixed numbers or strings.
If I'm just aching this can't go on
I came from chasing dreams to feel alone
There must be changes, miss to feel strong
I really need lifе to touch me
--Evergrey, Where August Mourns

 

Offline Thaeris

  • Can take his lumps
  • 211
  • Away in Limbo
Re: The reprobator's fred noobsih question emporium
This sounds like something Diaspora would benefit from...
"trolls are clearly social rejects and therefore should be isolated from society, or perhaps impaled."

-Nuke



"Look on the bright side, how many release dates have been given for Doomsday, and it still isn't out yet.

It's the Duke Nukem Forever of prophecies..."


"Jesus saves.

Everyone else takes normal damage.
"

-Flipside

"pirating software is a lesser evil than stealing but its still evil. but since i pride myself for being evil, almost anything is fair game."


"i never understood why women get the creeps so ****ing easily. i mean most serial killers act perfectly normal, until they kill you."


-Nuke

 

Offline The E

  • He's Ebeneezer Goode
  • 213
  • Nothing personal, just tech support.
    • Steam
    • Twitter
Re: The reprobator's fred noobsih question emporium
Given that FUBAR and Karajorma are on that team, I'd say they know about this already.
If I'm just aching this can't go on
I came from chasing dreams to feel alone
There must be changes, miss to feel strong
I really need lifе to touch me
--Evergrey, Where August Mourns

 
Re: The reprobator's fred noobsih question emporium
Resurecting this thread from ashes,  key pressed does not work in multiplayer coop.
I was  working on a sexp sequence that increment a variable by +1 each time the player press the key ,  each number from  1 to 5 is used to "select a ship class " then when you fill some given  condition your own ship get swapped by the one you selected, when the variable get to 6 the the sequence reinitialise it to 1

Is there another way to achieve that kind of stuff with using something else that key pressed, i mean is there any possibility to use some sort of communication menu instead ?

I may create 6 special  subsystem in a ship's fighterbay and check distance for the selection but i'd prefer a more civilised solution.
« Last Edit: August 22, 2011, 05:07:26 pm by Reprobator »
$Formula: ( every-time
   ( has-time-elapsed "0" )
   ( Do-Nothing
   )
   ( send-message
      "#Dalek"
      "High"
      "Pro-crasti-nate"
   )
   )
)
+Name: Procratination
+Repeat Count: 99999999999
+Interval: 1

 

Offline Lester

  • 27
Re: The reprobator's fred noobsih question emporium
Can you post the actual event here in code tags?

Also, key-press will only work for the host in multiplayer, as other players just cant send any sexp information back to the host.

 
Re: The reprobator's fred noobsih question emporium
Well it works fine in solo, the same doesn't work in the multiplayer version of the mission
everytime
->key press "B"
  ->modify variable
        "ship select"
        +1
 ->Send message
 Command blah
 blah
 Fighter selected

then  i have
When is event true delay (event abobe with delay 1)
key reset B

all with repeat count of 20000
The problem is that i do not even receive the message in multiplayer, so it seems to me that the key pressed sexp do not work in coop mission.
$Formula: ( every-time
   ( has-time-elapsed "0" )
   ( Do-Nothing
   )
   ( send-message
      "#Dalek"
      "High"
      "Pro-crasti-nate"
   )
   )
)
+Name: Procratination
+Repeat Count: 99999999999
+Interval: 1

 

Offline Lester

  • 27
Re: The reprobator's fred noobsih question emporium
That's because the variable you're using isn't a network variable. Edit the variable and choose the "Network-Variable" option. It should work that way. If it still doesn't, either open the mission file with notepad and paste the event in question here or upload the whole mission as an attachment.

 
Re: The reprobator's fred noobsih question emporium
The network variable is ticked already ;)
But normally even if the variable is problematic, the way the sequence is done, i should receive the message no?
As it is for a total conversion sending the mission would be frustating ^^
Anyway here it is :


The variable itself
« Last Edit: August 22, 2011, 05:59:55 pm by Reprobator »
$Formula: ( every-time
   ( has-time-elapsed "0" )
   ( Do-Nothing
   )
   ( send-message
      "#Dalek"
      "High"
      "Pro-crasti-nate"
   )
   )
)
+Name: Procratination
+Repeat Count: 99999999999
+Interval: 1

 

Offline Lester

  • 27
Re: The reprobator's fred noobsih question emporium
You don't need that second event, just dump that key-reset in the same every-time. You'll also need to use key-reset-multiple, as it's designed specifically for events which get called multiple times.

 
Re: The reprobator's fred noobsih question emporium
It use to be in the same everytime at the beginning but when i tryed the first time i moved it away to ensure the problem do not come from there :)
But it s part of the same everytime right now.
$Formula: ( every-time
   ( has-time-elapsed "0" )
   ( Do-Nothing
   )
   ( send-message
      "#Dalek"
      "High"
      "Pro-crasti-nate"
   )
   )
)
+Name: Procratination
+Repeat Count: 99999999999
+Interval: 1

 

Offline Lester

  • 27
Re: The reprobator's fred noobsih question emporium
Can you please post the mission? If you don't like showing your content to the public, feel free to PM me with it. There's only so much I can do without looking at the mission file.

 
Re: The reprobator's fred noobsih question emporium
No problem :D

[attachment deleted by ninja]
« Last Edit: August 22, 2011, 06:23:52 pm by Reprobator »
$Formula: ( every-time
   ( has-time-elapsed "0" )
   ( Do-Nothing
   )
   ( send-message
      "#Dalek"
      "High"
      "Pro-crasti-nate"
   )
   )
)
+Name: Procratination
+Repeat Count: 99999999999
+Interval: 1

 

Offline Lester

  • 27
Re: The reprobator's fred noobsih question emporium
I have no idea what's causing this. I even turned the thing into a when with a large trigger count, switched the variable to a non-network, and even mapped it to some other key. Nothing worked.

We'll see what someone more experienced will have to say on this.

 
Re: The reprobator's fred noobsih question emporium
^^ Did you managed to use keypressed in coop mission to work before?
$Formula: ( every-time
   ( has-time-elapsed "0" )
   ( Do-Nothing
   )
   ( send-message
      "#Dalek"
      "High"
      "Pro-crasti-nate"
   )
   )
)
+Name: Procratination
+Repeat Count: 99999999999
+Interval: 1