Author Topic: basic questions - displaying text  (Read 614 times)

Legacy_TD1415

  • Newbie
  • *
  • Posts: 2
  • Karma: +0/-0
basic questions - displaying text
« on: October 19, 2011, 03:15:46 am »


               I am just starting out designing modules and have what I think is a pretty basic question.  I would like to display a brief background message when the module is started, like in a text box.  Can anyone help me with this?

I also don't know anything about scripting but have the sense that I need to learn at least a little.  Does anyone know of a good online resource for this?

Thanks!
               
               

               
            

Legacy_Builder_Anthony

  • Hero Member
  • *****
  • Posts: 786
  • Karma: +0/-0
basic questions - displaying text
« Reply #1 on: October 19, 2011, 06:51:30 am »


               Sure i assume you know how to copy and paste things.Download lilacs souls script generator.Just google what i typed there.Thats basicly a thing that creates script and you just copy paste your script when your done createing it.Its real easy but heres some help for starting you off.

In the mod your createing draw a generic trigger where you want the text to start displaying when a player walks over the trigger you drawn it will create your message.So draw the trigger a box by drawing the 3 sides of the box then double click your mouse and it will close the box.Then click on your generic trigger youve just drawn and find the scripts tab.Since u want the script to work when a player enters it you will put your script in the on enter tab.It will just be the script name you save it as.So lets create the script.Open the generator and hit create normal script then on enter then click create floating text and type in what you want it to say.copy your script........go to the toolset and go to that trigger you made and enter a name for the script you just made........name it something and when it sayss no script exsists by that name it will take you automaticly to the script creator page.paste your script there and save it.Thats it.its kind of a fast rundown of things but that should be the basics of things im sure you will get the hang of the script generator very fast.
               
               

               
            

Legacy__Knightmare_

  • Full Member
  • ***
  • Posts: 191
  • Karma: +0/-0
basic questions - displaying text
« Reply #2 on: October 19, 2011, 12:08:50 pm »


               You may also want to check out my scripting tutorial linked below. Written with NWN2 in mind but the script language is the same, 95% + of the stuff in there applies to NWN1 as well. Also, it contains a link in it to download LS Script Generator.
               
               

               
            

Legacy_The Amethyst Dragon

  • Hero Member
  • *****
  • Posts: 2981
  • Karma: +0/-0
basic questions - displaying text
« Reply #3 on: October 19, 2011, 03:02:37 pm »


               Try this simple trick:

Place an invisible object near your start point.  Give it a unique tag (for example, ""startingtext") and change it's name (this can be a single blank space if you like) and description to what you want visible in the text box ("In a world...").

Place a trigger near your start point that the PC will have to walk through within a few steps of starting.  In the "on enter" event, add this script:


// Quick descriptive text box
// activated from a trigger
void main()
{
object oPC = GetEnteringObject();
object oText = GetNearestObjectByTag("startingtext");
AssignCommand(oPC, ClearAllActions());
DelayCommand(0.1, AssignCommand(oPC, ActionExamine(oText)));
}

Have fun.
               
               

               
            

Legacy_Hardcore UFO

  • Full Member
  • ***
  • Posts: 157
  • Karma: +0/-0
basic questions - displaying text
« Reply #4 on: October 19, 2011, 03:12:37 pm »


               For information on specific wording to use and how in scripting, nwnlexicon.com is very helpful.
               
               

               
            

Legacy_Knight_Shield

  • Hero Member
  • *****
  • Posts: 812
  • Karma: +0/-0
basic questions - displaying text
« Reply #5 on: November 01, 2011, 12:02:23 pm »


               I like this The Amethyst Dragon.Very clean and simple way for text.

I have a mod I work on TD1415 and I dont know how to script.I am a cut-n-paste warrior.So between this awesome community and the plentiful other resources I have put together my own project.
               
               

               
            

Legacy_Vanturi

  • Newbie
  • *
  • Posts: 6
  • Karma: +0/-0
basic questions - displaying text
« Reply #6 on: January 06, 2012, 02:03:13 pm »


               Thanks Amethyst Dragon.  That's exactly what I was looking for too.  Awesome!