Author Topic: Switching targets  (Read 2463 times)

0 Members and 1 Guest are viewing this topic.

Offline CommanderDJ

  • Software engineer
  • 210
Hey all, it's me again. I'm beginning to dominate this board with my request for help threads. Here's the situation:

I've got a jump node in a mission named "unknown jump node". At some point in the mission, the destination of the node becomes known and so the node is renamed. This is done by having another hidden jump node in the same place with the name, and at the point of renaming, the unknown one is hidden and the named one is shown. Fairly simple. However, if the player has the unknown node targeted when it is "renamed" then it is de-targeted (obviously, as it has disappeared). What I would like to happen is for the player's target to switch from the unknown node to the named one at the moment of renaming, but I can't seem to find a way to do it. AFAIK, the targeted SEXP only works for ships. How would I go about doing this?

Thanks,
CommanderDJ
[16:57] <CommanderDJ> What prompted the decision to split WiH into acts?
[16:58] <battuta> it was long, we wanted to release something
[16:58] <battuta> it felt good to have a target to hit
[17:00] <RangerKarl> not sure if talking about strike mission, or jerking off
[17:00] <CommanderDJ> WUT
[17:00] <CommanderDJ> hahahahaha
[17:00] <battuta> hahahaha
[17:00] <RangerKarl> same thing really, if you think about it

 

Offline General Battuta

  • Poe's Law In Action
  • 214
  • i wonder when my postcount will exceed my iq
Hey all, it's me again. I'm beginning to dominate this board with my request for help threads. Here's the situation:

I've got a jump node in a mission named "unknown jump node". At some point in the mission, the destination of the node becomes known and so the node is renamed. This is done by having another hidden jump node in the same place with the name, and at the point of renaming, the unknown one is hidden and the named one is shown. Fairly simple. However, if the player has the unknown node targeted when it is "renamed" then it is de-targeted (obviously, as it has disappeared). What I would like to happen is for the player's target to switch from the unknown node to the named one at the moment of renaming, but I can't seem to find a way to do it. AFAIK, the targeted SEXP only works for ships. How would I go about doing this?

Thanks,
CommanderDJ

Can't you just use change-alt-name? No need for any of this business!

 

Offline CommanderDJ

  • Software engineer
  • 210
Bam. I literally learn something everyday on these forums.
[16:57] <CommanderDJ> What prompted the decision to split WiH into acts?
[16:58] <battuta> it was long, we wanted to release something
[16:58] <battuta> it felt good to have a target to hit
[17:00] <RangerKarl> not sure if talking about strike mission, or jerking off
[17:00] <CommanderDJ> WUT
[17:00] <CommanderDJ> hahahahaha
[17:00] <battuta> hahahaha
[17:00] <RangerKarl> same thing really, if you think about it

 

Offline The E

  • He's Ebeneezer Goode
  • 213
  • Nothing personal, just tech support.
    • Steam
    • Twitter
Here's a handy tip. In the Launcher's features section, under Dev Tools, mark the "Output SEXPs to sexps.html" checkbox. That way, you'll get an html file that'll contain all sexps the current build supports.
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 CommanderDJ

  • Software engineer
  • 210
Here's a handy tip. In the Launcher's features section, under Dev Tools, mark the "Output SEXPs to sexps.html" checkbox. That way, you'll get an html file that'll contain all sexps the current build supports.

I will do that. Thank you

Can't you just use change-alt-name? No need for any of this business!

Unfortunately, I'm still having problems with this. I can only find ship-change-alt-name, which unsurprisingly only works for ships, at least as far as I can tell. Sadface. Is there an alternate method?
[16:57] <CommanderDJ> What prompted the decision to split WiH into acts?
[16:58] <battuta> it was long, we wanted to release something
[16:58] <battuta> it felt good to have a target to hit
[17:00] <RangerKarl> not sure if talking about strike mission, or jerking off
[17:00] <CommanderDJ> WUT
[17:00] <CommanderDJ> hahahahaha
[17:00] <battuta> hahahaha
[17:00] <RangerKarl> same thing really, if you think about it

 

Offline Trivial Psychic

  • 212
  • Snoop Junkie
He's right.  Ship-change-alt-name only works with objects, not jumpnodes.  Sounds like we need a new sexp... node-change-alt-name.
The Trivial Psychic Strikes Again!

 

Offline CommanderDJ

  • Software engineer
  • 210
I will put in a SEXP request. In the meantime, I'll have to find a workaround.
[16:57] <CommanderDJ> What prompted the decision to split WiH into acts?
[16:58] <battuta> it was long, we wanted to release something
[16:58] <battuta> it felt good to have a target to hit
[17:00] <RangerKarl> not sure if talking about strike mission, or jerking off
[17:00] <CommanderDJ> WUT
[17:00] <CommanderDJ> hahahahaha
[17:00] <battuta> hahahaha
[17:00] <RangerKarl> same thing really, if you think about it

 

Offline FUBAR-BDHR

  • Self-Propelled Trouble Magnet
  • 212
  • Master Drunk
    • 165th Beer Drinking Hell Raisers
Could you use a Knossos instead of a jump node?  Since it's a ship the name change should work.
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

 

Offline CommanderDJ

  • Software engineer
  • 210
A Knossos wouldn't really be compatible with the storyline.

I think I'll just stick with the workaround I listed in my first post, and the player will just have to retarget the node. Unless someone has another suggestion.
[16:57] <CommanderDJ> What prompted the decision to split WiH into acts?
[16:58] <battuta> it was long, we wanted to release something
[16:58] <battuta> it felt good to have a target to hit
[17:00] <RangerKarl> not sure if talking about strike mission, or jerking off
[17:00] <CommanderDJ> WUT
[17:00] <CommanderDJ> hahahahaha
[17:00] <battuta> hahahaha
[17:00] <RangerKarl> same thing really, if you think about it

 

Offline General Battuta

  • Poe's Law In Action
  • 214
  • i wonder when my postcount will exceed my iq
Try using ship-change-alt-name in a when-argument, and have the name of the node be the only argument. See if that works.

 

Offline Shivan Hunter

  • 210
  • FRED needs lambdas!
I don't think that'll work either as a jump node is not a hip ship, and possibly can't even support an alt name.

brb testing

[EDIT] Yeah, doesn't work. And um. Crazy typo in my FREDding haste
« Last Edit: September 28, 2010, 03:05:30 pm by Shivan Hunter »