Jump to content


How to trigger a mod


  • Please log in to reply
9 replies to this topic

#1 -Jerdol-

-Jerdol-
  • Guest

Posted 25 July 2004 - 10:05 PM

I have no experience in modding, and just picked up weidu today. Looking through several weidu tutorials, I was able to figure out how to make a mod (at least a small one, so far). However, I have no idea how to actually it come up in a game! It's a bit silly to make a mod when it'll never show up in the game! How do I actually make triggers?

#2 Sillara

Sillara

    He made me love him without looking at me.

  • Member
  • 537 posts

Posted 25 July 2004 - 11:12 PM

Do you have an .exe file for it? Do you have a Setup-MyMod.exe, where MyMod is whatever you named your mod? Without that, Weidu will not install the mod.

Sillara
Check out my RPG forum!

#3 SConrad

SConrad

    I swear to drunk I'm not God

  • Administrator
  • 11149 posts

Posted 25 July 2004 - 11:59 PM

You'll also need a .tp2-file. There's a lot of tutorials out there on how to do those.

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


#4 -Guest-

-Guest-
  • Guest

Posted 26 July 2004 - 06:04 PM

I must have been unclear. My problem is not with the installation (though I also don't know how to do that), but the trigger of the mod itself. For example, if my mod were a quest for Valygar, I don't know how to set the random trigger for someone to accost him. If it's a new NPC, I don't know how to place him.

#5 DevilishPope

DevilishPope

    Hail to the Pope, baby.

  • Member
  • 108 posts

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.

If you are interested in free mod hosting, PM me. I am willling to host a variety of Mods, from Baldur's Gate 2 to Doom 3 and beyond.

#6 Sillara

Sillara

    He made me love him without looking at me.

  • Member
  • 537 posts

Posted 26 July 2004 - 06:50 PM

(X,Y being the coordinates, not sure what the "3" is for though. Ehehehe)

The 3 is for his facing, which direction your NPC is looking when you spawn him in.

Sillara
Check out my RPG forum!

#7 SConrad

SConrad

    I swear to drunk I'm not God

  • Administrator
  • 11149 posts

Posted 26 July 2004 - 11:43 PM

That applies to all creatures you spawn. There is a lot of ways to make 'em appear in the mod, but this is the easiest.

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.

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


#8 Shed

Shed

    -Shed-

  • Modder
  • 2638 posts

Posted 27 July 2004 - 12:36 AM

I think it would help if you told us exactly what you were trying to do, Jerdol.

#9 -Jerdol-

-Jerdol-
  • Guest

Posted 27 July 2004 - 05:53 AM

The actual mod I'm doing is trying to make a small piece of banter with Cernd, but that's simply a practice mod to help me understand weidu. I phrased the question generally because I'm looking to understand how to use weidu, not trying to make a specific mod. And getting the text to trigger is the main problem I'm having with understanding weidu.

#10 SConrad

SConrad

    I swear to drunk I'm not God

  • Administrator
  • 11149 posts

Posted 27 July 2004 - 06:36 AM

A strong recommendation:

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.

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