Jump to content


Help with the DisplayStringHead command


  • Please log in to reply
3 replies to this topic

#1 -Aroc-

-Aroc-
  • Guest

Posted 01 December 2003 - 02:04 PM

Hello to the whole BG community!

Months ago I have created a kit named Morituri and now I want to add some minor enhancements to it. What I want to accomplish precisely is floating text to appear above my PC head at levels 1,7,14,21,28,36 containing some of his bonuses gained due to level up.

What I have done so far, and failed, is to create a display3.spl everything set to innate with the spell effect Display String with variables: permanent after bonuses, duration 10 secs, 0-100 target , self, no saving throws,not dispellable and by pass resistance. Then I have placed the reference ap_display3 in the morituri.2da under the 14 level, and the morituri.tp2 looks like this:

COPY ~morituri/display3.spl~ ~override/display3.spl~
SAY NAME1 ~Display Expert Stats~
SAY NAME2 ~Display Expert Stats~
SAY 0x9e ~My text~

After the installation of the kit with WeiDU 142 the dialogue.tlk is succesfully referenced but when my PC levels up to 14 level no floating text appears above his head.

I have seen that there is a command DisplayStringHead used to create floating text but is only linked to .bcs and .tra files and to say the truth I wasn't able to fully comperhend its full usage :huh:

So my question is will it be possible to use the DisplayStringHead command in order to display floating text at certain levels of my Morituri progression and if yes how that little marvel can be achieved?

Any suggestions are highly well-comed!!!

#2 Loriel

Loriel
  • Member
  • 57 posts

Posted 01 December 2003 - 02:52 PM

You'll have to learn scripting for this one, but it's pretty simple. This should work for what you want...

IF
  Global("YourGlobalHere","LOCALS",0)       //  if I haven't done this yet
  Checkstat(Myself,1,LEVEL)                 //  if I'm level 1
  Kit(Myself,???)                           //  replace ??? with your kit's internal name
THEN
  RESPONSE #100
    SetGlobal("YourGlobalHere","LOCALS",1)  //  this is so I won't do it again
    DisplayStringHead(Myself,~Display Expert Stats~)
END

Make a block like this for every level. Then use EXTEND_BOTTOM with Weidu to add your script to the bottom of all the dplayer*.bcs scripts.

#3 -Aroc-

-Aroc-
  • Guest

Posted 02 December 2003 - 01:05 AM

Thank's a lot Loriel :D

I'll check it and see how it goes!!!

#4 -Aroc-

-Aroc-
  • Guest

Posted 04 December 2003 - 11:20 AM

Loriel, thank you for your help in my Morituri kit :rolleyes:

BTW If you have the time I have some more questions posted in the TeamBG forum!