Author Topic: What program is being used for writing plots?  (Read 318 times)

Offline JohnnyDmonic

  • Hero Member
  • *****
  • Posts: 627
    • View Profile
What program is being used for writing plots?
« on: March 25, 2010, 09:18:04 AM »
Was going to try hacking together copy-paste versions of Lancemate advancement plots just to have something people could use for now, but opening the plot files in notepad like I used to do results in zomg no formatting what the hell word jumble.  I had enough trouble following plot files in GH1 with everything nice and neat and seperated out into single lines with spaces in between sections.

Offline Frumple

  • Sr. Member
  • ****
  • Posts: 347
    • View Profile
Re: What program is being used for writing plots?
« Reply #1 on: March 25, 2010, 11:09:10 AM »
Vaguely remember Mr. H having an OS switch not too long ago, which is probably what's causing it. Notepad++ opens them up plenty legibly, though, along with who knows how many others. I'd say go with N++, it's done me pretty well so far.
Ask not!
What your country can hump for you.
Ask!
What you can hump for your country.

Online Francisco Munoz

  • Sr. Member
  • ****
  • Posts: 396
    • View Profile
    • http://www.wesnoth.org
Re: What program is being used for writing plots?
« Reply #2 on: March 25, 2010, 03:24:44 PM »
Try http://notepad-plus.sourceforge.net/ this as Frumple said.
I got n++ to colour GH2 script some time ago (in a lunch break, but lost it) so could be done easily, and really helps sometimes.

Offline JohnnyDmonic

  • Hero Member
  • *****
  • Posts: 627
    • View Profile
Re: What program is being used for writing plots?
« Reply #3 on: March 25, 2010, 09:13:32 PM »
N++ seems to work for most (although not all) of the series files, as far as sorting them into legibility.  Unfortunately, that doesn't help me as much as I thought it might.  In GH1 with pretty much everything self-contained in one file at a time I could eventually follow along, but so far I'm not having a lot of luck with GH2 figuring out what is calling what where and when and what triggers who how.  Found, I think, the Lancemate advancement itself, and the missions that lead to advancement, and a stub of something or another that I don't know what is, but for the life of me couldn't figure out where it sets triggers for the missions, or which lancemates get access to advancement plots or anything like that.  Eventually when I have free time I might try my hand at some stand-alone quests/missions, but for now it's probably a bit beyond me.

Online Joseph Hewitt

  • Administrator
  • Hero Member
  • *****
  • Posts: 2410
    • View Profile
    • http://www.gearheadrpg.com
Re: What program is being used for writing plots?
« Reply #4 on: March 26, 2010, 06:51:22 AM »
Let me see if I can give you a crash course to how plots work in GH2. In GH1 the plots were mostly atomic- everything needed by the plot was contained in one file. In GH2, this is no longer true. You still have a basic plot gear, but it can be expanded by using subplots and persona fragments. Plots are located in the "PLOT_*.txt" files.

A subplot is exactly what it sounds like- it has everything that a regular plot has, can be passed elements as parameters from its parent plot or may request its own. Subplots are located in the "MEGA_*.txt" files.

A persona fragment is a piece of a conversation. These get used in two cases: commonly repeated interactions (such as "goodbye", "nice to meet you", "I have information for you"), and places where you need the conversation to be different depending on circumstances (such as the mission tests, or the battle challenges issued by NPCs). Persona fragments are stored in the "PFRAG_*.txt" files.

The basic Lancemate event is stored in the file "PLOT_LancemateStuff.txt". You'll note that this plot does nothing but select a lancemate and then activate a "*LM_NonComCharDev" subplot. This subplot takes as its only parameter Element 1- the lancemate. To see what it does, we need to go to the file "MEGA_LM_CharDev.txt".

There, you'll find a type of subplot labeled "*LM_NonComCharDev". You can see what kind of a subplot something is by looking at its "Requires" attribute. In this case, there will usually be additional requirements, most of which are of the form "1:xxx", where xxx is something or another. The "1" refers to the parameter passed to the subplot, in this case the lancemate. The "xxx" describes something about the lancemate which must be true in order for this subplot to be selected. Let's look at an example to make things clear.

Scroll down and find the "Let Me Show You Something" subplot. This one requires "*LM_NonComCharDev 1:A.tha 1:TRAIN". The first item, "*LM_NonComCharDev", is simply the subplot type identifier. The next one, "1:A.tha", means that the lancemate's Attitude ("A") must be Thankful ("tha"). For a complete list of attitudes and motivations see the xxranplotgen.txt file or the character development matrix thread here. The third requirement, "1:TRAIN", indicates that this lancemate must be ready to receive training.

This subplot is a bit more complicated than the base plot, but still not very complex. The lancemate will strike up a conversation with the PC, then offer to take them somewhere. Accepting the lancemate's offer activates another subplot, "*LM_SecretPlace". You can find that subplot type in "MEGA_LM_Extras.txt".

The beautiful thing about this setup is that plots are way more flexible than they were in GH1. In this example, after the LM offers to bring you someplace you have no idea what's going to happen next- you could be brought to a junkyard, or to a shrine, or maybe the LM is planning to ambush you. Adding a new possibility is as easy as adding a new subplot. You don't have to recreate everything from scratch. Breaking things into subplots means that each component can be simpler, more stable, and reusable.

This is merely scratching the surface, of course, but hopefully it'll be enough info to get you started. One thing to note- subplots from the "MEGA_CORE_*.txt" files are for the core story, and shouldn't get used in regular plots. Let me know if you have any more questions... and if someone out there could wikify this, it'd be greatly appreciated.

Edited to add- The LM mission plots are all in "MEGA_LM_CharDev.txt", you can c/p the Mercenary or Seeker missions and change the text. Of course it'd help to know the attitude/motivation of your unutilized LM- with XXRANDEBUG turned on, press "`" (the single quote beneath the ~) and it'll give you a list of all your NPC relationships. Find the lancemate and note its "M." motivation and "A." attitude.
« Last Edit: March 26, 2010, 07:00:44 AM by Joseph Hewitt »

Offline JohnnyDmonic

  • Hero Member
  • *****
  • Posts: 627
    • View Profile
Re: What program is being used for writing plots?
« Reply #5 on: March 27, 2010, 08:28:47 AM »
Added a section to the Wiki for that, I probably need to change the name of the page, and it should be re-editted to properly attribute the quote and maybe put the text in one of those neat little quote boxes, but for now it's up there at least and people will be able to find it.

http://www.gearheadrpg.com/wiki/index.php?title=Development:GH2Scripting

Going to give it a shot and see what I can manage a bit later.  I'm easily distracted by, uh...playing the game rather than trying to make stuff work. =)

Online Joseph Hewitt

  • Administrator
  • Hero Member
  • *****
  • Posts: 2410
    • View Profile
    • http://www.gearheadrpg.com
Re: What program is being used for writing plots?
« Reply #6 on: March 27, 2010, 08:14:28 PM »
One last thing: The "Test Plot" command from GH1 has been moved to the "}" key. I think XXRANDEBUG has to be on for it to work... as a word of warning, this allows you to activate any plot, not just the *GENERAL types (i.e. you could attempt to load a core story plot outside of the core story). So, you can use it for testing your own plots, but be careful about activating plots you aren't familiar with.

Also, to test a specific subplot, you may need to activate the GIMMEGIMMECHOICE debugging option.