Jump to content


Photo

Modding assistance request and rumination


  • Please log in to reply
46 replies to this topic

#41 Wisp

Wisp
  • Modder
  • 1353 posts

Posted 19 May 2013 - 11:33 AM

It's just EXTERN, no GOTO. GOTO is for going to another state in the same dialogue. EXTERN is for going to a state in another dialogue.

 

You also want a comma in front of <CHARNAME> in Minsc's line.



#42 smeagolheart

smeagolheart
  • Member
  • 278 posts

Posted 19 May 2013 - 11:38 AM

CHAIN IF ~InParty("minsc") InMyArea("minsc") !StateCheck("minsc",CD_STATE_NOTVALID)~ THEN ~S9VICGOL~ 0
~I am Vicgold Otterbight.  I am a fierce, bold and decisive Ranger.  Call me Vic!  Heed what Magstine tells you.  Say, have you seen any ferrets around here?~
== minsc ~Ferrets? This guy must be mad, right, <CHARNAME>?~ EXTERN ~S9MAGSTI~ 1

IF ~~ THEN BEGIN 1 // from:
SAY ~We've discovered a large amount of dangerous creatures.  Beware! You will face great danger throughout Cloakwood forest!~
	IF ~~ THEN EXTERN ~S9MAGSTI~ 5
END

 

Ok...  So now it errors out at the next if there, before "say~we've discovered... etc     I tried an EXIT and an END before that IF and neither worked, then I tried the Goto and Then replies etc...   



#43 Wisp

Wisp
  • Modder
  • 1353 posts

Posted 19 May 2013 - 11:43 AM

A state on its own is not valid D. You need a BEGIN or APPEND or whatever, depending on what you want to do with the state. Using numerical state labels is also not at all advisable.



#44 smeagolheart

smeagolheart
  • Member
  • 278 posts

Posted 19 May 2013 - 11:51 AM

I only plan to use numerical state labels on my own NPCs.   If I mess with Minsc's dlg I intended to use something else.  



#45 smeagolheart

smeagolheart
  • Member
  • 278 posts

Posted 19 May 2013 - 03:47 PM

 
This worked.   I made a new .d file and put this up in there..
 

 

INTERJECT S9VICGOL 0 S9Minscint0
 == MINSCJ IF ~IsValidForPartyDialog("Minsc")~ THEN
~<CHARNAME>, this guy seems a little bit mad.  Who ever heard of a Ranger's being friends with a ferret?~
END S9MAGSTI 1

 



#46 smeagolheart

smeagolheart
  • Member
  • 278 posts

Posted 21 May 2013 - 10:16 AM

First, you should resize your portrait to 38x60 pixels. In the current state it will crash the game when you move your mouse cursor over it (tested on BGT installation).

 

BGEE small portrait sizes are Small: 54x84.   Is there a way to make small portraits viable for both installs or did Beamdog burn that bridge by changing the resolution?

 

Do 38x60 images work in EE?  Does it look like junk?  This may not be ideal because small portrait size is close to double that in EE.

 

Are people (like me) considering including functionality to downsize portraits down to run them on BGT

 

Should I include two sets of small portraits on every install?

 

What's a modder to do?



#47 smeagolheart

smeagolheart
  • Member
  • 278 posts

Posted 25 May 2013 - 08:13 AM

I'm starting a new mod and I'd like to rename some areas.   I have not much idea what I'm doing and haven't found a relevant tutorial yet.

 

So I have two areas named ar9100 (the BGT one and the IWD one).   

 

I guess I need something like this (from weidu documentation): 

 

 

COPY_EXISTING_REGEXP ~sw1h..[^abc].*itm~ ~override~
  WRITE_LONG 0x88 "6"
  WRITE_LONG 0x8a "1" 

 

except modified for areas...   Any ideas where to look to get started?