Hard Light Productions Forums
Modding, Mission Design, and Coding => The FRED Workshop => Topic started by: FUBAR-BDHR on February 08, 2009, 01:27:54 am
-
Basically right now there are only a couple of ways to add data to a when-argument list such as any-of. You either have to add data string then edit in what you want, cut and past, or use notepad.
At some point after the code freeze would it be possible to get the entire pick list of ships, wings, waypoints, etc to choose from? It would not only cut down on a lot of typing but prevent errors caused by typos.
-
The problem with that is that there's no sensible way to determine what is meant to be in an argument list so we'd need to come up with a whole new system to determine what the player wants to be on there, having them pick from a list of options for instance and then find a way to store that information somehow (probably per session as it would be a pain to make it save that to the mission file most likely).
It might be possible but I doubt it would be simple.
-
What about the same list get-object-position brings up? Isn't that just about everything? I know it has ships, wings, and waypoints.
-
Doesn't have weapon names, Personae, Message names and a whole bunch of other things.But yeah. It might be possible to just add a big list to the argument and get it to a t least display more option.
I'm still worried about error checking but it should be okay.
-
Doesn't have jump nodes either. Not sure why on that one since that would probably be pretty useful for get-object-position.
Anyway I do see your point for weapon or ship types, species, etc. Still something is better than nothing. Even with it I'll probably still end up using notepad for the big lists. It's those 4 and 5 object ones that you can't remember the name of or how to spell that are a pain in the but.
That reminds me of another thing I've looked for a few times. Is there any way to add a string? Or for that matter convert a number to a string? Basic idea:
When
--has-arrived-delay
---0
--- +
----"Alpha "
----char
-----shipnum[1]
--ship-subsystem-guardian-threshold
----"Alpha "
----char
-----shipnum[1]
----weapons
----6
--modify-variable
---shimpum[1]
--- +
-----shipnum[1]
----- 1
So basically as each ship in Alpha wing arrive it protects the weapons subsystem. The only way I could figure out how to do that otherwise was a when-argument in-sequence with every ship in the wing listed separately. Which when your dealing with the possibility of 99 waves is at least 2 big lists.
-
What you basically want it the concatenate SEXP IP Andrews asked for a while back. That's possible by hacking in a new version of modify-variable. Problem with that is that modify variable is rather messy once you get into sexp-tree.cpp and I don't particularly fancy doing that.
So basically, no. Maybe later if I can figure out an easier/better way of doing it.
-
Yea concatenation. I get the impression that it would take more than that unless there are other string functions (besides val) already in existence. Like the ability to convert number to string.
You really think of a lot of "You know it would be nice" ideas when you are making several lists of 297 ships each. Even with notepad and copy/paste/replace it takes quite awhile.
-
...when you are making several lists of 297 ships each.
:wtf:
-
Multiplayer gauntlet mission that's not winnable. Wings of 4 ships, threshold of 1, and 99 respawns.
I actually quit at around 250 since that was the max I could fit into 2 when-argument events.