Jump to content


Photo

Yet another thing that makes me go Hmmm


  • Please log in to reply
5 replies to this topic

#1 JDH

JDH
  • Member
  • 15 posts

Posted 15 June 2005 - 12:31 PM

Ok I've been doing it again playing around with NI seeing what I could see. I came across this trigger AreaType(Weather) in a script. I got to thunking does this trigger mean when there is weather ie:Rain/snow/fog what ever, that is what it seems to me to indicate, but I digress ;). I loaded a mod for Yasraena and she makes this comment about weather. Now IIRC she will make the comment weither or not it is raining. So the little hamster in my brain started turning the wheels and I thunked it would be great if she or any other NPC would hold off their comment until it started raining in game. **No offence meant to the writers of Yasraena mod, so far it is a great mod, it is just a personnal thingie for me if somebody is talking about rain I want it to be raining. ;)**

So to get to the point has anybody used the trigger AreaType(WEATHER) before in a script or dialog and what does it do?
Thanks

Edit :I saw the typo in the title my rented fingers seem to working over time. ;)

Edited by JDH, 15 June 2005 - 12:33 PM.


#2 CamDawg

CamDawg

    ALL GLORY TO THE HYPNOTOAD

  • Modder
  • 1505 posts

Posted 15 June 2005 - 12:36 PM

AreaType(WEATHER) corresponds to the flag in an are file that determines whether an area should have weather patterns, i.e. if it's outdoors and should receive rain from time to time. AFAIK there's no actual way to identify the current weather as a trigger, though you can change it with an action.

Why is this Hypnotoad video so popu... ALL GLORY TO THE HYPNOTOAD.
____
The Gibberlings Three - Home of IE Mods

The BG2 Fixpack - All the fixes of Baldurdash, plus a few hundred more. Now available, with more fixes being added in every release.


#3 Meira

Meira

    I'm the snow on your lips

  • Member
  • 411 posts

Posted 15 June 2005 - 12:42 PM

The AreaType trigger does not work like that. I believe it merely checks that the area *has* weather, if you get my meaning.

The areatype.ids looks like this:

1 OUTDOOR
2 DAYNIGHT
4 WEATHER
8 CITY
16 FOREST
32 DUNGEON
64 EXTENDEDNIGHT
128 CANRESTOTHER


So, for example with AreaType you could check if the area is a forest location for a banter about bunnies. ;)

There is not check for if it rains, is sunny or snows. What you can do is to set the weather you like with Weather() action and then trigger the banter about it.

-Meira

EDIT: Still not the fastest in the west. :P

Edited by Meira, 15 June 2005 - 12:45 PM.

Ihmeellinen meri

Kummalliset kalat liukuvat syvyydessä,
tuntemattomat kukat loistavat rannalla;
olen nähnyt punaista ja keltaista ja kaikki toiset värit -
mutta ihana meri on vaarallista nähdä,
se herättää tulevien seikkailujen janon:
mitä on tapahtunut sadussa, on tapahtuva minullekin.

- Edith Södergran


Amber - The BG2 NPC Mod Project Now released!
Amber's discussion forum at Gibberlings 3

#4 JDH

JDH
  • Member
  • 15 posts

Posted 15 June 2005 - 12:54 PM

The AreaType trigger does not work like that. I believe it merely checks that the area *has* weather, if you get my meaning. 

The areatype.ids looks like this:

1 OUTDOOR
2 DAYNIGHT
4 WEATHER
8 CITY
16 FOREST
32 DUNGEON
64 EXTENDEDNIGHT
128 CANRESTOTHER


So, for example with AreaType you could check if the area is a forest location for a banter about bunnies. ;)

There is not check for if it rains, is sunny or snows. What you can do is to set the weather you like with Weather() action and then trigger the banter about it.

-Meira

View Post


Thanks guys I no longer have to go Hmmm ;)
Meira, I see theareatype.ids now that irriatates me, I ran a search in NI of the word weather for IDS, 2DAs, and BCS and the only thing that came up was the script. If'in I'd have seen the IDS I would have figured that it wasn't a trigger for rain. JDH Makes mental note to self ask on the forums, before trusting NI search. ;)

#5 Meira

Meira

    I'm the snow on your lips

  • Member
  • 411 posts

Posted 15 June 2005 - 01:05 PM

I think you might also take a look at IESDP if you're interested in the inner workings of IE. Among many, many other things you can find descrptions and examples of use for scripting actions there. :) It's a goldmine, really.
Ihmeellinen meri

Kummalliset kalat liukuvat syvyydessä,
tuntemattomat kukat loistavat rannalla;
olen nähnyt punaista ja keltaista ja kaikki toiset värit -
mutta ihana meri on vaarallista nähdä,
se herättää tulevien seikkailujen janon:
mitä on tapahtunut sadussa, on tapahtuva minullekin.

- Edith Södergran


Amber - The BG2 NPC Mod Project Now released!
Amber's discussion forum at Gibberlings 3

#6 -avenger_work-

-avenger_work-
  • Guest

Posted 16 June 2005 - 06:28 AM

Heh, what a shame, you cannot detect if it is raining in any of the engines :)
You can however take over weather control and set variables.

Useful actions:
StartRainNow()
Weather(weathertype)