
To link form a new file to another new file
#41
Posted 07 February 2006 - 03:20 AM
Khadion NPC mod - Team leader, head designer
Hubelpot NPC mod - Team leader, coder
NPC Damage - Coder
PC Soundsets - Coder, voice actor
Brythe NPC mod - Designer
DragonLance TC - Glory of Istar - Designer
The NPC Interaction Expansion Project - Writer for Cernd, Sarevok
The Jerry Zinger Show - Producer
Iron Modder 5 - Winner
#42
Posted 07 February 2006 - 08:12 AM
SConrad, on Feb 7 2006, 12:20 PM, said:
It's a COPY_EXISTING. Where else would you put it?
.baf script of the area?


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
~~ I love it, and I am humbled! Yay! ~~
#43
Posted 21 February 2006 - 01:47 PM
Can you let someone talk that has no dialog file of their own, like:
BEGIN KICHCLR CHAIN ~Global("Kidochallstart","GLOBAL",3)~ THEN KICHCLR angrypast ~bla bla~ DO ~SetGlobal("Kidochallstart","GLOBAL",4)~ == KIDOJ ~bla bla~ == KICHCLR ~bla bla~ == KICHWAR ~bla bla~ == KICHTH ~bla bla~ == KIDOJ ~bla bla~ == KICHCLR ~bla bla~ END IF ~~ THEN REPLY ~bla bla~ EXTERN KICHCLR angrypast2 IF ~~ THEN REPLY ~bla bla~ EXTERN KICHCLR angrypast3 IF ~Global("Kidochallstart","GLOBAL",4)~ THEN BEGIN angrypast2 SAY ~bla bla~ IF ~~ THEN REPLY ~bla bla~ GOTO angrypast4 IF ~~ THEN REPLY ~bla bla~ GOTO angrypast5 END
The file comes from Kichclr, to whom this dialog file is appointed, but kichwar and kichth have no dialog files. Can they speak? Or will that lead to an error?
Also, is the extern needed or can I just use a GO TO, I used this code as I have it from, I believe, SConrad for a banter between kido and korgan and possible replies of the PC, where one led to BKorgan file again, which is an external file for the file this is all called from (BKido), so I don't know if it is needed here.
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
~~ I love it, and I am humbled! Yay! ~~
#44
Posted 21 February 2006 - 11:15 PM
Deathsangel, on Feb 21 2006, 10:47 PM, said:
If the dialogue files are appointed to the creature, but the dialogue is empty, the CHAIN should just add to the dlg.The file comes from Kichclr, to whom this dialog file is appointed, but kichwar and kichth have no dialog files. Can they speak? Or will that lead to an error?
Deathsangel, on Feb 21 2006, 10:47 PM, said:
EXTERN is necessary.Also, is the extern needed or can I just use a GO TO, I used this code as I have it from, I believe, SConrad for a banter between kido and korgan and possible replies of the PC, where one led to BKorgan file again, which is an external file for the file this is all called from (BKido), so I don't know if it is needed here.
You also need to put the CHAIN below all other 'normal' dialogue, or use APPEND after it.
Khadion NPC mod - Team leader, head designer
Hubelpot NPC mod - Team leader, coder
NPC Damage - Coder
PC Soundsets - Coder, voice actor
Brythe NPC mod - Designer
DragonLance TC - Glory of Istar - Designer
The NPC Interaction Expansion Project - Writer for Cernd, Sarevok
The Jerry Zinger Show - Producer
Iron Modder 5 - Winner
#45
Posted 22 February 2006 - 03:15 AM
== KICHCLR ~~ END IF ~~ THEN REPLY ~~ EXTERN KICHCLR angrypast2 APPEND KICHCLR IF ~Global("Kidochallstart","GLOBAL",4)~ THEN BEGIN angrypast2 SAY ~~ IF ~~ THEN REPLY ~~ GOTO angrypast3 END IF ~~ THEN BEGIN angrypast3 SAY ~~ IF ~~ THEN REPLY ~~ GOTO angrypast.. IF ~~ THEN REPLY ~~ GOTO angrypast.. END IF ~~ THEN BEGIN angrypast.. SAY ~~ IF ~~ THEN REPLY ~~ GOTO angrypast.. IF ~~ THEN REPLY ~~ GOTO angrypast.. END END
Edited by Deathsangel, 22 February 2006 - 03:16 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
~~ I love it, and I am humbled! Yay! ~~
#46
Posted 23 February 2006 - 08:54 AM
Khadion NPC mod - Team leader, head designer
Hubelpot NPC mod - Team leader, coder
NPC Damage - Coder
PC Soundsets - Coder, voice actor
Brythe NPC mod - Designer
DragonLance TC - Glory of Istar - Designer
The NPC Interaction Expansion Project - Writer for Cernd, Sarevok
The Jerry Zinger Show - Producer
Iron Modder 5 - Winner
#47
Posted 23 February 2006 - 11:05 AM
What I do find strange is the following. I made five enemies, however, kichth does not open in NI after modification, but still does in SK. Whereas it is the other way around with another. If I load any of them in DLTCEP, it says their harmless inconsistency and that he changes this... however all stats, thaco; just the whole first page is gone...?

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
~~ I love it, and I am humbled! Yay! ~~
#48
Posted 23 February 2006 - 11:51 AM
Khadion NPC mod - Team leader, head designer
Hubelpot NPC mod - Team leader, coder
NPC Damage - Coder
PC Soundsets - Coder, voice actor
Brythe NPC mod - Designer
DragonLance TC - Glory of Istar - Designer
The NPC Interaction Expansion Project - Writer for Cernd, Sarevok
The Jerry Zinger Show - Producer
Iron Modder 5 - Winner
#49
Posted 23 February 2006 - 01:44 PM
SConrad, on Feb 23 2006, 08:51 PM, said:
You shouldn't release a mod with broken .cre-files. I'd fix them or create new ones.
I've attached them, cause I don't see why they are broken. Would you be so kind as to look at them? It is kichth that doesn't open in NI and kicharc not in SK, I haven't tested all of them in SK, so I don't know about that problem. I made this team in game (wanted the right proficiencies and stuff and I know I can do that otherwise, but I just did it...) and made changes to equipment and spells via SK and scripts (and removal of the player ones) via NI. Or should I just let DLTCEP make the corrections it saying and fill in the stats anew in DLTCEP?
Edit: Oh and for the record I wasn't planning on releasing it like this. I said I wanted to test this in game first...
Attached Files
Edited by Deathsangel, 23 February 2006 - 01:52 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
~~ I love it, and I am humbled! Yay! ~~
#50
Posted 23 February 2006 - 02:25 PM
It is an oddity I have brought up before that happens with DLTCEP. The portraits tab is probably the best one to select before opening the cre file as I have experienced the least problems with this one. Once you have made your changes be sure to save the cre into your mod folder as DLTCEP automatically saves to the Override unless directed elsewhere.
I tested your files and while I did get the harmless inconsistency message there were no missing stats, savings throws etc.
Edited by Rabain, 23 February 2006 - 02:27 PM.
#51
Posted 23 February 2006 - 02:48 PM
Rabain, on Feb 23 2006, 11:25 PM, said:
Try this, before you open the cre file in DLTCEP click on one of the other edit tabs for the cre file (the one for assigning the portraits for example). Then go to the file menu, choose Open External Cre and select your cre file, you should still get the harmless inconsistency message but when you go back to the other tabs the correct information should still be there.
It is an oddity I have brought up before that happens with DLTCEP. The portraits tab is probably the best one to select before opening the cre file as I have experienced the least problems with this one. Once you have made your changes be sure to save the cre into your mod folder as DLTCEP automatically saves to the Override unless directed elsewhere.
I tested your files and while I did get the harmless inconsistency message there were no missing stats, savings throws etc.
Great! I'll try it at once!
Edit: Okay, so I did this... though none has sound I found out (but good screen to load in DLTCEP or else the colours go away) and now DLTCEP says there is nomore harmless inconsistency. SK finds them all, NI still not satisfied with kichth... is that still seen as a corrupted .cre or just something funny?
Edited by Deathsangel, 23 February 2006 - 03:18 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
~~ I love it, and I am humbled! Yay! ~~
#52
Posted 26 February 2006 - 04:49 AM
I have two different conditions in which my NPC needs to be created at a different place so I coded this as an extend on the area script of aread ar0509:
IF Global("KidoExists","AR0509",0) Dead("Mekrath") !Global("KidoExists","AR0510",1) THEN RESPONSE #100 SetGlobal("KidoExists","AR0509",1) CreateCreature("Kido",[568.712],11) END
For Kido is created in AR0510 is Mekrath isn't dead. Can this area script check the global of the other area or do I need to make a common ExistKido global so that both areas can check that global to see if he exists...
Second question that comes up; I just added a script to a .cre file that was already in game (or else cleric wouldn't defend himself very well) and I thought of putting this in the override, but for compatibility and such I think it is better if I could assign to him via .tp2. Is there a code for that?
Edited by Deathsangel, 26 February 2006 - 07:26 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
~~ I love it, and I am humbled! Yay! ~~
#53
Posted 27 February 2006 - 03:31 PM
Deathsangel, on Feb 26 2006, 12:49 PM, said:
That should work ok.Can this area script check the global of the other area or do I need to make a common ExistKido global so that both areas can check that global to see if he exists...
Quote
Second question that comes up; I just added a script to a .cre file that was already in game (or else cleric wouldn't defend himself very well) and I thought of putting this in the override, but for compatibility and such I think it is better if I could assign to him via .tp2. Is there a code for that?
For your tp2:
COPY ~mymod/jim.cre~ ~override/jim.cre~ WRITE_ASCII SCRIPT_OVERRIDE ~jim~ WRITE_ASCII SCRIPT_CLASS ~jim~ WRITE_ASCII SCRIPT_RACE ~jim~ WRITE_ASCII SCRIPT_GENERAL ~jim~ WRITE_ASCII SCRIPT_DEFAULT~jim~
Yikari, monk NPC
Shed's Mods - Three time TeamBG Contest winner!
The Jerry Zinger Show
ShedPlant.net
#54
Posted 28 February 2006 - 12:07 AM
Perhaps for clarity I am talking about Arenthis the cleric in the Graveyard district with the little girl for whom he seeks a new parent. If you attack him, he has no script to make use of his lovely spells (though those spells contain wizard ones whereas he is only a cleric, but if you use a nice script he won't use those anyway...). Thus I asigned him a normal in game cleric script exported this new .cre file to my mod's cre folder and call upon it via
COPY ~Kido/cre/Arenthis.cre~ ~override/Arenthis.cre~
Whereas I hope for something like
COPY ~Arenthis.cre~ WRITE_ASCII SCRIPT_GENERAL ~pries8a~
So that the .cre file is just extended in the game and there is no need for it to be come from my mod, so that anyone else adding something to this character can do it likewise without the mods being incompatible
Edited by Deathsangel, 28 February 2006 - 12:11 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
~~ I love it, and I am humbled! Yay! ~~
#55
Posted 28 February 2006 - 12:45 AM
COPY_EXISTING ~Arenthis.cre~ ~override~ WRITE_ASCII SCRIPT_GENERAL ~pries8a~
#56
Posted 28 February 2006 - 03:15 AM
Note to self: dig in to this "COPY EXISTING & WRITE_ASCII businesss"
Edited by Deathsangel, 28 February 2006 - 03:29 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
~~ I love it, and I am humbled! Yay! ~~
#57
Posted 05 March 2006 - 09:14 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
~~ I love it, and I am humbled! Yay! ~~
#58
Posted 05 March 2006 - 09:20 AM
Khadion NPC mod - Team leader, head designer
Hubelpot NPC mod - Team leader, coder
NPC Damage - Coder
PC Soundsets - Coder, voice actor
Brythe NPC mod - Designer
DragonLance TC - Glory of Istar - Designer
The NPC Interaction Expansion Project - Writer for Cernd, Sarevok
The Jerry Zinger Show - Producer
Iron Modder 5 - Winner
#59
Posted 05 March 2006 - 10:59 AM
SConrad, on Mar 5 2006, 06:20 PM, said:
You're much better off doing that by scripting. That kind of .are-patching is a bit complex.
Okay, I reckon you mean the script of the area? I look in IESDP then how to add it to a container
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
~~ I love it, and I am humbled! Yay! ~~
#60
Posted 05 March 2006 - 12:06 PM
Khadion NPC mod - Team leader, head designer
Hubelpot NPC mod - Team leader, coder
NPC Damage - Coder
PC Soundsets - Coder, voice actor
Brythe NPC mod - Designer
DragonLance TC - Glory of Istar - Designer
The NPC Interaction Expansion Project - Writer for Cernd, Sarevok
The Jerry Zinger Show - Producer
Iron Modder 5 - Winner