Author Topic: AI Scripts  (Read 8955 times)

Offline Elessar Telrunya

  • Hero Member
  • *****
  • Posts: 2095
    • View Profile
AI Scripts
« 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

Offline Elessar Telrunya

  • Hero Member
  • *****
  • Posts: 2095
    • View Profile
AI Scripts
« Reply #1 on: June 27, 2005, 05:16:51 PM »
woah guys, dont everyone make suggestions at once

Offline Corinthian

  • Newbie
  • *
  • Posts: 12
    • View Profile
    • Email
AI Scripts
« Reply #2 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

Offline Corinthian

  • Newbie
  • *
  • Posts: 12
    • View Profile
    • Email
AI Scripts
« Reply #3 on: July 30, 2005, 08:09:27 PM »
Quote
woah guys, dont everyone make suggestions at once
[snapback]24866[/snapback]

Offline Cobra

  • Full Member
  • ***
  • Posts: 134
    • MSN Messenger - pizza_boy_11@hotmail.com
    • View Profile
    • http://
    • Email
AI Scripts
« Reply #4 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....


Offline Elessar Telrunya

  • Hero Member
  • *****
  • Posts: 2095
    • View Profile
AI Scripts
« Reply #5 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]
« Last Edit: July 31, 2005, 01:09:20 PM by Lord Elessar »

Offline Corinthian

  • Newbie
  • *
  • Posts: 12
    • View Profile
    • Email
AI Scripts
« Reply #6 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:  <_<

Offline Elessar Telrunya

  • Hero Member
  • *****
  • Posts: 2095
    • View Profile
AI Scripts
« Reply #7 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

Offline Corinthian

  • Newbie
  • *
  • Posts: 12
    • View Profile
    • Email
AI Scripts
« Reply #8 on: July 31, 2005, 07:53:43 PM »
um my dm client wont work on my server....

Offline Illutian

  • Who knows what evil lurks in the hearts of Man...
  • Hero Member
  • *****
  • Posts: 891
  • The Legend Begins...
    • View Profile
    • Illutian
    • Email
AI Scripts
« Reply #9 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?
Our greatest glory is not in never falling but in rising everytime we fall.