
How to trigger a mod
#1
-Jerdol-
Posted 25 July 2004 - 10:05 PM
#3
Posted 25 July 2004 - 11:59 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
#4
-Guest-
Posted 26 July 2004 - 06:04 PM
#5
Posted 26 July 2004 - 06:46 PM
If it's a new NPC, I don't know how to place him.
First of all, you write the script to make him spawn.
Example:
IF
Global("Globalname","AR0020",0)
THEN
RESPONSE #100
SetGlobal("Globalname","AR0020",1)
CreateCreature("Creaturename",[x.y],3)
END
(X,Y being the coordinates, not sure what the "3" is for though. Ehehehe)
Then, you put this in the Folder for your WeiDU installation, and in the TP2 file, you write: EXTEND_BOTTOM ~AreaName.bcs~ ~foldername\NameOfScript.baf~
For Example:
EXTEND_BOTTOM ~AR0020.bcs~ ~Abram\scripts\AR0020.baf~
Thats the way to make a custom NPC to appear, as for your other question:
I don't know how to set the random trigger for someone to accost him.
I believe you would write a script for the NPC, then attach it as an override script. For example of the script:
IF
See([PC])
NumTimesTalkedTo(0)
THEN
RESPONSE #100
Dialogue(Nearest([PC]))
END
This would cause the NPC to begin dialogue as soon as it sees your CHARNAME.
Hope this helps, and I hope I didn't make any mistakes ;<
Edited by DevilishPope, 26 July 2004 - 06:47 PM.
#7
Posted 26 July 2004 - 11:43 PM
And to do a random quest, you can always check out already existing mods, like UB.
And if you want other players to be able to play your mod, you need to know how to do a .tp2.
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
#8
Posted 27 July 2004 - 12:36 AM
Yikari, monk NPC
Shed's Mods - Three time TeamBG Contest winner!
The Jerry Zinger Show
ShedPlant.net
#9
-Jerdol-
Posted 27 July 2004 - 05:53 AM
#10
Posted 27 July 2004 - 06:36 AM
Read WeiDU. Read tutorials. Read .tp2, .d, .baf, etc.
Analyze it. Every single line. Start with a .d-file, read the first line, and ask yourself: Did I understand that? Did I understand what happened in the game? Did I understand what that action/phrase/global/etc. meant? If you do, continue. If you don't, look up the answer in the WeiDU-readme or in a tutorial. If you still can't find it, ask here. Make sure you understand what's happening before continuing.
That's the best way of learning weidu. You can find all information you need by looking at examples. Everything you're likely to want to know is already there.
And if you don't understand, ask specific questions. A question like "How do I do [a very general subject]" is bound to be interpreted in many diffrent ways. Therefore, you'll get loads of diffrent answers who might, in the worst case, not be what you're looking for.
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