Jump to content


Photo

To link form a new file to another new file


  • Please log in to reply
67 replies to this topic

#21 Deathsangel

Deathsangel

    Living on Wings of Dreams

  • Modder
  • 3089 posts

Posted 29 January 2006 - 04:17 AM

@SConrad:

Sorry, I am unfamiliar with .are-files and as said the areas has no script.

For the journal entry I have at the moment:

IF ~~ THEN DO ~AddJournalEntry(%Creating a Cyric Temple

After I killed the Lathander Cleric in the slums district, Dolf came along to claim the building. However, it seems that the altar first needs to be descrated for it can be devoted to Cyric, instead of Lathander. Thus, Dolf asked us to get an innocent little girl for a sacrifice. I refused, because I ain't going to kidnap some defenseless child. There is no sport in that. If I ever change my mind, Dolf will be waiting in his new accommodation in the slums district.%,QUEST)~
END

I will make it

IF ~~ THEN DO ~UNSOLVED_JOURNAL(%Creating a Cyric Temple

After I killed the Lathander Cleric in the slums district, Dolf came along to claim the building. However, it seems that the altar first needs to be descrated for it can be devoted to Cyric, instead of Lathander. Thus, Dolf asked us to get an innocent little girl for a sacrifice. I refused, because I ain't going to kidnap some defenseless child. There is no sport in that. If I ever change my mind, Dolf will be waiting in his new accommodation in the slums district.%)~
END

If you say it is better, but I would like to know why

@jastey. I need to create a new creature because of the death variable...

Example if I don't: Some one kills the cleric in the Waukeen's Promenade. They walk in the slums district temple. Script triggered for SLISMAT is dead (only somewhere else) and there in the right area, thus I need a new creature with a different DV.

Edited by Deathsangel, 29 January 2006 - 04:23 AM.

Still modding the Mod for the Wicked... It is a big project you know... And I got sidetracked (several times) a bit... sorry.
However, as we all know, Evil never really sleeps.


Sentences marking (my) life:

Winds of change... Endure them, and in Enduring grow Stronger
It takes a fool to look for logic in a man's heart
Never question the sanity of the insane
The Harmony of Life is Chaos
Living on Wings of Dreams



(1st march 2009) SHS women over me:
Kat: if there were more guys that looked like you out here, people's offspring wouldnt be so damn ugly
Noctalys: you are adorable :P

~~ I love it, and I am humbled! Yay! ~~


#22 SConrad

SConrad

    I swear to drunk I'm not God

  • Administrator
  • 11148 posts

Posted 29 January 2006 - 05:20 AM

Sorry, I am unfamiliar with .are-files and as said the areas has no script.

Then maybe you should get familiar with .are-files or simply add the script to the area.

If you say it is better, but I would like to know why

Because it's easier and avoids ~%%~ confusion.

You also have it wrong. You have to put it in after the DO ~~-action, before the end. An example from one of my mods:

IF ~~ THEN DO ~EscapeArea()~
UNSOLVED_JOURNAL ~Title

Journal entry.~
EXIT
END

Posted Image Khadion NPC mod - Team leader, head designer
Posted Image Hubelpot NPC mod - Team leader, coder
Posted Image NPC Damage - Coder
Posted Image PC Soundsets - Coder, voice actor
Posted Image Brythe NPC mod - Designer
Posted Image DragonLance TC - Glory of Istar - Designer
Posted Image The NPC Interaction Expansion Project - Writer for Cernd, Sarevok
Posted Image The Jerry Zinger Show - Producer

Iron Modder 5 - Winner


#23 Deathsangel

Deathsangel

    Living on Wings of Dreams

  • Modder
  • 3089 posts

Posted 29 January 2006 - 06:42 AM

Sorry, I am unfamiliar with .are-files and as said the areas has no script.

Then maybe you should get familiar with .are-files or simply add the script to the area.


I reckon I will use the last option, cause in IE their stands that the area is looking for script, but you can't open it as if it weren't there. Though I reckon one day I will have to understand .are files as I, in quite a while, also want to add a few areas. However, I already have a good learning curve for quest coding and cutscenes, so this time the simple route... Last question, probably, about this asuming I will make a script. Is there a way to make sure that before the player walks into the area you will never see the original priest? For I don't want him to die in front of the players eyes and seeing a similiar guy being created in an instant beside the just died cleric.

If you say it is better, but I would like to know why

Because it's easier and avoids ~%%~ confusion.

You also have it wrong. You have to put it in after the DO ~~-action, before the end. An example from one of my mods:

IF ~~ THEN DO ~EscapeArea()~
UNSOLVED_JOURNAL ~Title

Journal entry.~
EXIT
END


So For me it would be then:

SAY ~~
UNSOLVED_JOURNAL ~Title

Journal entry.~
EXIT
END

And... a new question.... I'm coding now for the same quest a cutscene and I would like to a spelleffect. It is the red beam that comes from the sky. However, I can't find the effect in spell animations in IE. Is there a way to conjure this somehow in an easy way... The idea is to have someone pray to except the sacrifice and as sign it does happen that animation should play. Thus, I do not wish to cast a spell. I merely wish to show the animation. However, I can't find it... I know I just need to do CreateVisualEffects, but I need to find it... any idea how, if you don't know the spell, just how it looks?

Edited by Deathsangel, 29 January 2006 - 07:24 AM.

Still modding the Mod for the Wicked... It is a big project you know... And I got sidetracked (several times) a bit... sorry.
However, as we all know, Evil never really sleeps.


Sentences marking (my) life:

Winds of change... Endure them, and in Enduring grow Stronger
It takes a fool to look for logic in a man's heart
Never question the sanity of the insane
The Harmony of Life is Chaos
Living on Wings of Dreams



(1st march 2009) SHS women over me:
Kat: if there were more guys that looked like you out here, people's offspring wouldnt be so damn ugly
Noctalys: you are adorable :P

~~ I love it, and I am humbled! Yay! ~~


#24 SConrad

SConrad

    I swear to drunk I'm not God

  • Administrator
  • 11148 posts

Posted 29 January 2006 - 07:18 AM

I reckon I will use the last option, cause in IE their stands that the area is looking for script, but you can't open it as if it weren't there.

That's because a script name is assigned to the area, but there's no AR0408.bcs in .bif or override. Use EXTEND_TOP in your tp2, and WeiDU will automatically create one for you.

Last question, probably, about this asuming I will make a script. Is there a way to make sure that before the player walks into the area you will never see the original priest? For I don't want him to die in front of the players eyes and seeing a similiar guy being created in an instant beside the just died cleric.

Yes, it's possible, if you patch the .are-file.

Otherwise, no.

So For me it would be then

SAY ~~
IF ~~ UNSOLVED_JOURNAL ~Title

Journal entry.~
EXIT
END

Posted Image Khadion NPC mod - Team leader, head designer
Posted Image Hubelpot NPC mod - Team leader, coder
Posted Image NPC Damage - Coder
Posted Image PC Soundsets - Coder, voice actor
Posted Image Brythe NPC mod - Designer
Posted Image DragonLance TC - Glory of Istar - Designer
Posted Image The NPC Interaction Expansion Project - Writer for Cernd, Sarevok
Posted Image The Jerry Zinger Show - Producer

Iron Modder 5 - Winner


#25 Deathsangel

Deathsangel

    Living on Wings of Dreams

  • Modder
  • 3089 posts

Posted 29 January 2006 - 08:09 AM

Last question, probably, about this asuming I will make a script. Is there a way to make sure that before the player walks into the area you will never see the original priest? For I don't want him to die in front of the players eyes and seeing a similiar guy being created in an instant beside the just died cleric.

Yes, it's possible, if you patch the .are-file.

Otherwise, no.


Chip... so I need to going looking for a tutorial then about .are files and how to change them.

So For me it would be then

SAY ~~
IF ~~ UNSOLVED_JOURNAL ~Title

Journal entry.~
EXIT
END


Thanks

Any idea for the spell animation in my my post before this one?

Still modding the Mod for the Wicked... It is a big project you know... And I got sidetracked (several times) a bit... sorry.
However, as we all know, Evil never really sleeps.


Sentences marking (my) life:

Winds of change... Endure them, and in Enduring grow Stronger
It takes a fool to look for logic in a man's heart
Never question the sanity of the insane
The Harmony of Life is Chaos
Living on Wings of Dreams



(1st march 2009) SHS women over me:
Kat: if there were more guys that looked like you out here, people's offspring wouldnt be so damn ugly
Noctalys: you are adorable :P

~~ I love it, and I am humbled! Yay! ~~


#26 SConrad

SConrad

    I swear to drunk I'm not God

  • Administrator
  • 11148 posts

Posted 29 January 2006 - 08:22 AM

Chip... so I need to going looking for a tutorial then about .are files and how to change them.

.are-files aren't any different from .itm-files or .cre-files, they all use the same structure but with different contents. What you need to do is create a FOR or WHILE action to browse through the actor list and simply replace the creature reference with the new one. I can show you how to do it if you want to.

Any idea for the spell animation in my my post before this one?

If you know a spell which uses this animation, you can look it up with NI.

Posted Image Khadion NPC mod - Team leader, head designer
Posted Image Hubelpot NPC mod - Team leader, coder
Posted Image NPC Damage - Coder
Posted Image PC Soundsets - Coder, voice actor
Posted Image Brythe NPC mod - Designer
Posted Image DragonLance TC - Glory of Istar - Designer
Posted Image The NPC Interaction Expansion Project - Writer for Cernd, Sarevok
Posted Image The Jerry Zinger Show - Producer

Iron Modder 5 - Winner


#27 Deathsangel

Deathsangel

    Living on Wings of Dreams

  • Modder
  • 3089 posts

Posted 29 January 2006 - 08:32 AM

Chip... so I need to going looking for a tutorial then about .are files and how to change them.

.are-files aren't any different from .itm-files or .cre-files, they all use the same structure but with different contents. What you need to do is create a FOR or WHILE action to browse through the actor list and simply replace the creature reference with the new one. I can show you how to do it if you want to.


Sure I am always willing to learn, though I am going to get a bit too eat, so I might be a bit 'late' with reacting, but yeah I would like to learn.

Any idea for the spell animation in my my post before this one?

If you know a spell which uses this animation, you can look it up with NI.


Problem is I don't know that... It looks like Draw Upon Holy Might, but then with a different colour. Just like the very powerful skeleton outside Ulcaster's School in BG1, when it dies I mean.

Edited by Deathsangel, 29 January 2006 - 08:32 AM.

Still modding the Mod for the Wicked... It is a big project you know... And I got sidetracked (several times) a bit... sorry.
However, as we all know, Evil never really sleeps.


Sentences marking (my) life:

Winds of change... Endure them, and in Enduring grow Stronger
It takes a fool to look for logic in a man's heart
Never question the sanity of the insane
The Harmony of Life is Chaos
Living on Wings of Dreams



(1st march 2009) SHS women over me:
Kat: if there were more guys that looked like you out here, people's offspring wouldnt be so damn ugly
Noctalys: you are adorable :P

~~ I love it, and I am humbled! Yay! ~~


#28 jastey

jastey
  • Administrator
  • 3218 posts

Posted 29 January 2006 - 08:33 AM

What you need to do is create a FOR or WHILE action to browse through the actor list and simply replace the creature reference with the new one. I can show you how to do it if you want to.

Yes, please! :D This is one of the WeiDu features I have no experience gathered with yet.

SAY ~~
IF ~~ UNSOLVED_JOURNAL ~Title

Journal entry.~
EXIT
END

I would assume there should be a "THEN" after "IF ~~" ?

#29 SConrad

SConrad

    I swear to drunk I'm not God

  • Administrator
  • 11148 posts

Posted 29 January 2006 - 09:09 AM

Yes, please! :D This is one of the WeiDu features I have no experience gathered with yet.

I'll see what I can do.

I would assume there should be a "THEN" after "IF ~~" ?

I don't think you need THEN, but I'm not completely sure. I always get it mixed up. Trial and error.

Posted Image Khadion NPC mod - Team leader, head designer
Posted Image Hubelpot NPC mod - Team leader, coder
Posted Image NPC Damage - Coder
Posted Image PC Soundsets - Coder, voice actor
Posted Image Brythe NPC mod - Designer
Posted Image DragonLance TC - Glory of Istar - Designer
Posted Image The NPC Interaction Expansion Project - Writer for Cernd, Sarevok
Posted Image The Jerry Zinger Show - Producer

Iron Modder 5 - Winner


#30 Kulyok

Kulyok
  • Modder
  • 2450 posts

Posted 29 January 2006 - 09:14 AM

You used it in Hubelpot, so it should work. :)

No, seriously, it works. It works in Coran's quest in BG1 NPC.

#31 Deathsangel

Deathsangel

    Living on Wings of Dreams

  • Modder
  • 3089 posts

Posted 29 January 2006 - 10:26 AM

Yes, please! :D This is one of the WeiDu features I have no experience gathered with yet.

I'll see what I can do.


Though it is not my quote... I can't wait. Do you wish to do this via PM to save space here? Or is it more tutorial like? Anyway, thanks for your time on forehand. :coolthumb:

edit: I still use :thumbs:.... still need to update some of my knowledge SHS. Edited a signature only a week ago...

Edited by Deathsangel, 29 January 2006 - 10:30 AM.

Still modding the Mod for the Wicked... It is a big project you know... And I got sidetracked (several times) a bit... sorry.
However, as we all know, Evil never really sleeps.


Sentences marking (my) life:

Winds of change... Endure them, and in Enduring grow Stronger
It takes a fool to look for logic in a man's heart
Never question the sanity of the insane
The Harmony of Life is Chaos
Living on Wings of Dreams



(1st march 2009) SHS women over me:
Kat: if there were more guys that looked like you out here, people's offspring wouldnt be so damn ugly
Noctalys: you are adorable :P

~~ I love it, and I am humbled! Yay! ~~


#32 Deathsangel

Deathsangel

    Living on Wings of Dreams

  • Modder
  • 3089 posts

Posted 31 January 2006 - 02:55 AM

About the spell effect.... I can find that the spell harm is SPPR608, with sound CAS_P06 and effect P06 in DLTCEP, but I don't know if that is actually same since the both end with P06 and under effects in NI I can't find EFF_P06. So in the end I took a ToB animation making it

CreateVisualEffect("urchin2",SPWIRHL)

Which is purple/black beam from heaven

By the way, is there a way to let an animation come from another direction so to speak? Like a bombardement with SPUNHBL2 and 3 is fun, if you can not only let it come from the left side, but also of the right side.

Edited by Deathsangel, 31 January 2006 - 03:01 AM.

Still modding the Mod for the Wicked... It is a big project you know... And I got sidetracked (several times) a bit... sorry.
However, as we all know, Evil never really sleeps.


Sentences marking (my) life:

Winds of change... Endure them, and in Enduring grow Stronger
It takes a fool to look for logic in a man's heart
Never question the sanity of the insane
The Harmony of Life is Chaos
Living on Wings of Dreams



(1st march 2009) SHS women over me:
Kat: if there were more guys that looked like you out here, people's offspring wouldnt be so damn ugly
Noctalys: you are adorable :P

~~ I love it, and I am humbled! Yay! ~~


#33 SConrad

SConrad

    I swear to drunk I'm not God

  • Administrator
  • 11148 posts

Posted 31 January 2006 - 03:46 AM

Though it is not my quote... I can't wait. Do you wish to do this via PM to save space here? Or is it more tutorial like? Anyway, thanks for your time on forehand. :coolthumb:

edit: I still use :thumbs:.... still need to update some of my knowledge SHS. Edited a signature only a week ago...

I'll post it here as soon as I've coded it up. Can't do it at work, and have been swamped on the evenings lately.

Posted Image Khadion NPC mod - Team leader, head designer
Posted Image Hubelpot NPC mod - Team leader, coder
Posted Image NPC Damage - Coder
Posted Image PC Soundsets - Coder, voice actor
Posted Image Brythe NPC mod - Designer
Posted Image DragonLance TC - Glory of Istar - Designer
Posted Image The NPC Interaction Expansion Project - Writer for Cernd, Sarevok
Posted Image The Jerry Zinger Show - Producer

Iron Modder 5 - Winner


#34 Deathsangel

Deathsangel

    Living on Wings of Dreams

  • Modder
  • 3089 posts

Posted 31 January 2006 - 12:08 PM

Where can I find identifiers as <PRO_HISHER> and other PRO's in IESDP. I searched all over and I might have skipped it or so, but I used the search on page function of internet and didn't find anything

And thanks SConrad

Edited by Deathsangel, 31 January 2006 - 12:08 PM.

Still modding the Mod for the Wicked... It is a big project you know... And I got sidetracked (several times) a bit... sorry.
However, as we all know, Evil never really sleeps.


Sentences marking (my) life:

Winds of change... Endure them, and in Enduring grow Stronger
It takes a fool to look for logic in a man's heart
Never question the sanity of the insane
The Harmony of Life is Chaos
Living on Wings of Dreams



(1st march 2009) SHS women over me:
Kat: if there were more guys that looked like you out here, people's offspring wouldnt be so damn ugly
Noctalys: you are adorable :P

~~ I love it, and I am humbled! Yay! ~~


#35 jastey

jastey
  • Administrator
  • 3218 posts

Posted 31 January 2006 - 01:20 PM

http://forums.pocket...topic,58.0.html

If you are looking for the tokens, I don't know where they would be in IESDP, though.

Edited by jastey, 31 January 2006 - 01:22 PM.


#36 Deathsangel

Deathsangel

    Living on Wings of Dreams

  • Modder
  • 3089 posts

Posted 01 February 2006 - 03:28 AM

http://forums.pocket...topic,58.0.html

If you are looking for the tokens, I don't know where they would be in IESDP, though.


Thanks, should have checked the other forums. I used to use a FWP link, but that I can't find in it is new form so to speak...

Still modding the Mod for the Wicked... It is a big project you know... And I got sidetracked (several times) a bit... sorry.
However, as we all know, Evil never really sleeps.


Sentences marking (my) life:

Winds of change... Endure them, and in Enduring grow Stronger
It takes a fool to look for logic in a man's heart
Never question the sanity of the insane
The Harmony of Life is Chaos
Living on Wings of Dreams



(1st march 2009) SHS women over me:
Kat: if there were more guys that looked like you out here, people's offspring wouldnt be so damn ugly
Noctalys: you are adorable :P

~~ I love it, and I am humbled! Yay! ~~


#37 SConrad

SConrad

    I swear to drunk I'm not God

  • Administrator
  • 11148 posts

Posted 01 February 2006 - 03:43 AM

Seeing how they're called "tokens" (as mentioned), it's not a great surprise to see it under the title "tokens" in IESDP. ;)

http://iesdp.gibberl...ting/tokens.htm

Posted Image Khadion NPC mod - Team leader, head designer
Posted Image Hubelpot NPC mod - Team leader, coder
Posted Image NPC Damage - Coder
Posted Image PC Soundsets - Coder, voice actor
Posted Image Brythe NPC mod - Designer
Posted Image DragonLance TC - Glory of Istar - Designer
Posted Image The NPC Interaction Expansion Project - Writer for Cernd, Sarevok
Posted Image The Jerry Zinger Show - Producer

Iron Modder 5 - Winner


#38 Deathsangel

Deathsangel

    Living on Wings of Dreams

  • Modder
  • 3089 posts

Posted 01 February 2006 - 10:22 AM

Seeing how they're called "tokens" (as mentioned), it's not a great surprise to see it under the title "tokens" in IESDP. ;)

http://iesdp.gibberl...ting/tokens.htm


Didn't know they were called tokens, but now I know ;) Thought it already strange they 'weren't' in IESDP

Still modding the Mod for the Wicked... It is a big project you know... And I got sidetracked (several times) a bit... sorry.
However, as we all know, Evil never really sleeps.


Sentences marking (my) life:

Winds of change... Endure them, and in Enduring grow Stronger
It takes a fool to look for logic in a man's heart
Never question the sanity of the insane
The Harmony of Life is Chaos
Living on Wings of Dreams



(1st march 2009) SHS women over me:
Kat: if there were more guys that looked like you out here, people's offspring wouldnt be so damn ugly
Noctalys: you are adorable :P

~~ I love it, and I am humbled! Yay! ~~


#39 SConrad

SConrad

    I swear to drunk I'm not God

  • Administrator
  • 11148 posts

Posted 04 February 2006 - 02:52 AM

COPY_EXISTING ~AR0408.are~ ~override~
  READ_LONG  0x54 "act_off"
  READ_SHORT 0x58 "act_num"
  FOR ( actor = ("%act_off%" + ("%act_num%" * 0x110)); actor >= "%act_off%"; actor = actor - 0x110 ) BEGIN
	READ_ASCII ("%actor%" + 0x80) "creature"
	  PATCH_IF ("%creature%" STRING_COMPARE_CASE "SLILMAT" = 0) BEGIN
		WRITE_ASCII ("%actor%" + 0x80) ~DSLILMAT~
	  END
  END
BUT_ONLY_IF_IT_CHANGES
This patch browses all different actors in the .are-file, and if one of them is named "SLILMAT", it changes that creature reference to "DSLILMAT".

Posted Image Khadion NPC mod - Team leader, head designer
Posted Image Hubelpot NPC mod - Team leader, coder
Posted Image NPC Damage - Coder
Posted Image PC Soundsets - Coder, voice actor
Posted Image Brythe NPC mod - Designer
Posted Image DragonLance TC - Glory of Istar - Designer
Posted Image The NPC Interaction Expansion Project - Writer for Cernd, Sarevok
Posted Image The Jerry Zinger Show - Producer

Iron Modder 5 - Winner


#40 Deathsangel

Deathsangel

    Living on Wings of Dreams

  • Modder
  • 3089 posts

Posted 07 February 2006 - 02:32 AM

Thanks SConrad. Pretty heavy code. Buy the looks of it this needs to go in the .tp2 right?

Still modding the Mod for the Wicked... It is a big project you know... And I got sidetracked (several times) a bit... sorry.
However, as we all know, Evil never really sleeps.


Sentences marking (my) life:

Winds of change... Endure them, and in Enduring grow Stronger
It takes a fool to look for logic in a man's heart
Never question the sanity of the insane
The Harmony of Life is Chaos
Living on Wings of Dreams



(1st march 2009) SHS women over me:
Kat: if there were more guys that looked like you out here, people's offspring wouldnt be so damn ugly
Noctalys: you are adorable :P

~~ I love it, and I am humbled! Yay! ~~