LucidMagic.net

Neverwinter Nights => NwN Building => Script Request => Topic started by: Elessar Telrunya on June 25, 2005, 11:53:21 AM

Title: AI Scripts
Post by: Elessar Telrunya on June 25, 2005, 11:53:21 AM
Okay, I was working on an undead monster earlier that's meant to be a meelee build, but with the X0_COMBAT_FLAG_~ I don't see anything that sounds like a meelee. 420 helped me out with my AA monsters which had X0_COMBAT_FLAG_RANGED which is a self-explanatory flag, but the others are COWARDLY, AMBUSHER, and DEFENSIVE, which are a little vague. Before people ask questions what happens with these is that you're supposed to put
Code: [Select]
#include "x0_i0_anims" after
Code: [Select]
#include "x2_inc_switches"
and then at the very end of the script put
Code: [Select]
SetCombatCondition(X0_COMBAT_FLAG_~);
of the onspawn script and then use heartbeat scripts and other scripts perhaps to work with its AI, but I can't figure out which combat flag I'm supposed to use for a meelee monster.


-Elessar
Title: AI Scripts
Post by: Elessar Telrunya on June 27, 2005, 05:16:51 PM
woah guys, dont everyone make suggestions at once
Title: AI Scripts
Post by: Corinthian on July 30, 2005, 08:08:59 PM
Ok um guys.... were do i get the stuff for the duel manager/lvl up and items/alighnment changer script? oris called a forum????????
and how do i make it were the items limit for lvl 40 is 500,000 and the limit for lvl 20 is 130,00? and the stuff were ur not aloud to use damage imunity and all that stuff? i just need to know were to get that stuff all about godspire so i can make a server like that?????????? (my clan server) no not for Secret service....
But a different 1 that me and my friends making me (no not john paul or pope or colloasian) i just need to know that sutff :crazy: muhahaha im gonna steal and make a exact copy..... and then..... i will invite everon whos new... then ill get
warf-12!!! lololol       just kiding.......................... LOL
Title: AI Scripts
Post by: Corinthian on July 30, 2005, 08:09:27 PM
Quote
woah guys, dont everyone make suggestions at once
[snapback]24866[/snapback]
Title: AI Scripts
Post by: Cobra on July 30, 2005, 08:18:31 PM
i dont know those scripts but i do know that most of those is a onEnter filter that u make....
Title: AI Scripts
Post by: Elessar Telrunya on July 31, 2005, 09:36:26 AM
Aye...one thing at a time, especially since the Duel Manager script is so complex.

The first thing you need to have for all this is the proper Module OnActivate script.
Go to Edit>Module Properties, go to the events tab, and replace the crappy default script with this:
Code: [Select]
// x1_itemactivate
//:://////////////////////////////////////////////////
/*
Common script to be used as OnActivateItem script for
all modules. Executes the script with a name matching
the tag of the item being activated. Functions like
GetItemActivator() and GetItemActivatedTarget() will
work in these scripts, since they are being executed
from the perspective of the module itself. ???

Credit for this idea belongs to tjm, who posted it to
nwvault.ign.com.

*/
//:://////////////////////////////////////////////////
//:: Created By: Naomi Novik
//:: Created On: 09/27/2002
//:://////////////////////////////////////////////////

void main()
{
    ExecuteScript(GetTag(GetItemActivated()), OBJECT_SELF);
}
Now, what this script does, is makes it so you may have multiple unique powers, which crappy ol' bioware doesn't seem to know how to account for. Bascially, what you do is take the tag of the item with the unique power(See pic below), and use that tag as the name of the script for the Unique Power.
[attachmentid=526][attachmentid=527]

Now you are ready to start working on the Duel Manager Script; however, since it is so long, I'll put it in a zipped folder with instructions in there
[attachmentid=528]

Thats the most I can give you now, because I'm too lazy to go and do the Leveler(thats 40 different scripts you know!), or the Alignment changer(9more scripts to add!), and I haven't put in an item giver into my module anyway. :D

All of these scripts originally came to me from the Scripting Guru 420, although I have edited some of them for the purposes of my module, and this post.


-Elessar

[attachment deleted by admin]
Title: AI Scripts
Post by: Corinthian on July 31, 2005, 06:22:04 PM
thx man... and um...... the lvler..... thats the mosti mportant LOL the duel manager is almost last :S heh... but i need it anyway people are randoming on my server like crazy -.-........






                                   <_<  :angry:  Freakin randomers.....  :angry:  <_<
Title: AI Scripts
Post by: Elessar Telrunya on July 31, 2005, 07:39:00 PM
Quote
thx man... and um...... the lvler..... thats the mosti mportant LOL the duel manager is almost last :S heh... but i need it anyway people are randoming on my server like crazy -.-........
                                   <_<  :angry:  Freakin randomers.....  :angry:  <_<
[snapback]26128[/snapback]
as i said, i'm too lazy to get all the scripts together atm

and for the randomers, get on dm client and kill em :D


-Elessar
Title: AI Scripts
Post by: Corinthian on July 31, 2005, 07:53:43 PM
um my dm client wont work on my server....
Title: AI Scripts
Post by: Illutian on August 02, 2005, 03:24:05 AM
Quote
um my dm client wont work on my server....
[snapback]26130[/snapback]


did you set a password for it in the nwnserver.exe app?