Jump to content


Photo

Crossmod v12


7 replies to this topic

#1 Daulmakan

Daulmakan

    Comfortably numb

  • Members
  • 533 posts
  • Location:The Houses of the Holy

Posted 29 April 2010 - 03:49 AM

There's a mistake in one of the Auren-Amber banters:

DO ~SetGlobal("G#XB.AmberAurenBanter1","GLOBAL",1)~
== BM#AMBER ~Just lay off the formalities, kid. What do you want from me?~
== K#AURENB IF ~TimeOfDay(2)~ THEN ~Why, I simply wanted to know how you are faring tonight. No need for hostilities, Miss Amber.~
== K#AURENB IF ~TimeOfDay(3)~ THEN ~Why, I simply wanted to know how you are faring this fine morning. No need for hostilities, Miss Amber.~
== K#AURENB IF ~TimeOfDay(0)~ THEN ~Why, I simply wanted to know how you are faring this fine day. No need for hostilities, Miss Amber.~
== K#AURENB IF ~TimeOfDay(1)~ THEN ~Why, I simply wanted to know how you are faring this lovely evening. No need for hostilities, Miss Amber.~

What the above code does is merely repeat all lines with the appropriate time of day for each one, instead of only firing the actual one in game, as shown here.

Glancing at the IESDP, what I think you need is <DAYNIGHTALL> instead:

== K#AURENB ~Why, I simply wanted to know how you are faring this <DAYNIGHTALL>. No need for hostilities, Miss Amber.~


Edited by Daulmakan, 29 April 2010 - 03:56 AM.

I ain't evil, I'm just good looking.


#2 cmorgan

cmorgan

    journeyman investigator

  • Gibberlings
  • 6913 posts
  • Gender:Male
  • Location:Glencoe, IL, USA

Posted 29 April 2010 - 04:20 AM

Perhaps it is TimeODay.ids failing somehow?? odd...


0x401E Time(I:Time*Time)
Returns true only if the period of day matches the period in the 2nd parameter (taken from Time.ids). Hours are offset by 30 minutes, e.g. Time(1) is true between 00:30 and 01:29.

0x401F TimeOfDay(I:Time Of Day*TimeODay)
As above but less specific and uses TimeODay.ids.


TimeODay.ids =

0 DAY
1 DUSK
2 NIGHT
3 MORNING

I am not sure how all of those could evaluate to ~~ unless something odd is going on. The above code should result in two showing up at certain times of the game day, though, even if it works as intended, because DUSK and MORNING overlap DAY and NIGHT

But the workaround is a good suggestion.

Edited by cmorgan, 29 April 2010 - 04:23 AM.

I love deadlines. I love the whooshing noise they make as they go by. - Douglas Adams

#3 berelinde

berelinde

    The Typo Queen

  • Gibberlings
  • 8594 posts
  • Location:New Jersey, USA

Posted 29 April 2010 - 05:31 AM

TimeOfDay() triggers are dodgy at best. Seriously. They fail constantly.

The only way to set that trigger set up and have it work would be to use
~TimeOfDay(DAWN) !TimeOfDay(DAY) !TimeOfDay(DUSK) !TimeOfDay(NIGHT)~

and then repeat for the other three, making changes.

Also, using the numbers in the trigger won't work here. You need to use the word itself. Ditto for AreaType(), by the way. AreaType(OUTDOOR) works, AreaType(0) does not. That's why the BG2 Fixpack corrects it.

In the Auren banter, removing the triggers and just using the dialogue token would probably be the easiest fix.
Must. Write. Faster.

cmorgan: "None of us get old around here, just more proficient at doing more stuff with less braincells!"

berelinde's mods
TolkienAcrossTheWater website
TolkienAcrossTheWater Forum

#4 Kaeloree

Kaeloree

    beluga

  • Modders
  • 833 posts
  • Gender:Male

Posted 29 April 2010 - 02:22 PM

Cheers--I'll fix it up in the next version. :)

#5 berelinde

berelinde

    The Typo Queen

  • Gibberlings
  • 8594 posts
  • Location:New Jersey, USA

Posted 29 April 2010 - 02:26 PM

Actually, I might do this version after all. Cmorgan wanted to do a bulk update to WeiDU v216, so I thought I'd tackle a bunch of mods tomorrow while I have the time. The Sand flirt pack is coming along nicely, and I hope to have it in testing by then.
Must. Write. Faster.

cmorgan: "None of us get old around here, just more proficient at doing more stuff with less braincells!"

berelinde's mods
TolkienAcrossTheWater website
TolkienAcrossTheWater Forum

#6 Kaeloree

Kaeloree

    beluga

  • Modders
  • 833 posts
  • Gender:Male

Posted 29 April 2010 - 02:28 PM

Cool :) Let me know if I can help!

#7 Kaeloree

Kaeloree

    beluga

  • Modders
  • 833 posts
  • Gender:Male

Posted 29 April 2010 - 02:37 PM

Hey b, can you send PM to this account? :) You sent one to a different account, but I can't access it.

#8 berelinde

berelinde

    The Typo Queen

  • Gibberlings
  • 8594 posts
  • Location:New Jersey, USA

Posted 30 April 2010 - 09:52 AM

Changing to this. Since saying "I wanted to know how you were faring this fine dusk" makes no sense, it's better to use the more complicated checks.
== K#AURENB IF ~TimeOfDay(NIGHT) 
	  !TimeOfDay(DAY) 
	  !TimeOfDay(MORNING) 
	  !TimeOfDay(DUSK)~ THEN ~Why, I simply wanted to know how you are faring tonight. No need for hostilities, Miss Amber.~
== K#AURENB IF ~!TimeOfDay(NIGHT) 
	  TimeOfDay(MORNING) 
	  !TimeOfDay(DUSK)~ THEN ~Why, I simply wanted to know how you are faring this fine morning. No need for hostilities, Miss Amber.~
== K#AURENB IF ~!TimeOfDay(NIGHT) 
	  TimeOfDay(DAY) 
	  !TimeOfDay(MORNING) 
	  !TimeOfDay(DUSK)~ THEN ~Why, I simply wanted to know how you are faring this fine day. No need for hostilities, Miss Amber.~
== K#AURENB IF ~!TimeOfDay(DAY) 
	  !TimeOfDay(MORNING) 
	  TimeOfDay(DUSK)~ THEN ~Why, I simply wanted to know how you are faring this lovely evening. No need for hostilities, Miss Amber.~

Must. Write. Faster.

cmorgan: "None of us get old around here, just more proficient at doing more stuff with less braincells!"

berelinde's mods
TolkienAcrossTheWater website
TolkienAcrossTheWater Forum



Reply to this topic



  


0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users