Ironworks Gaming Forum

Ironworks Gaming Forum (http://www.ironworksforum.com/forum/index.php)
-   Neverwinter Nights 1 & 2 Also SoU & HotU Forum (http://www.ironworksforum.com/forum/forumdisplay.php?f=16)
-   -   This toolkit is awsome... (http://www.ironworksforum.com/forum/showthread.php?t=35520)

Raistlin Majere 06-25-2003 04:42 PM

but man i hate scripting!!!!!! im kind of learning how to use this toolkit(so i could possibly make mods), but man are there many different things you need to do when scripting! i decided that i would try something simple, so i made a dragon, put some dialogue options and made some weapons and armor which he would give me if i talked to him right. also i tried making him attack me if i talked wrong. well, it didnt really work. i got the dialogues working and stuff, but he wouldnt attack me, nor would he give me his items :( . back to the drawing board, i guess(any help would be appreciated aswell [img]smile.gif[/img] ).

Xen 06-26-2003 04:40 AM

<font color="gold">
Good luck Raistlin Majere. :D
</font>

Silversten 06-26-2003 05:49 AM

do a tutorial, they are very helpful, they teach you how to do all the simple stuff needed to start a module. I did the bioware one and its a good starting point.

philip 06-26-2003 08:27 AM

Bioware tutorials
NWN Lexicon -> great scripting tutorial.


the script that he attacks you:
Quote:


//Put in the actions taken tab of the dialogue
void main()
{
AssignCommand(GetObjectByTag("{dragon tag here}"), ActionAttack(GetPCSpeaker()));
//This could work with GetLastSpeaker() instead of GetObjectByTag()
//if the dragon talked before the pc
}

Can't find the right function for the other script but I'll search for it when I do something in the toolset

edit: errors with ub and spelling

[ 06-26-2003, 08:28 AM: Message edited by: philip ]

Legolas 06-26-2003 11:03 AM

The attack script needs not be more than a simple
Quote:

void main()
{
object oDragon = GetObjectByTag("the dragon's tag");

ChangeToStandardFaction(oDragon, STANDARD_FACTION_HOSTILE);
ActionAttack(GetPCSpeaker());
}
For the giving of items, you've two options. One is to create the item on the player character right away, the other is to remove it from the dragon's inventory and add it to that of the player. Both commands are included in the script below. To use the latter, the item does have to be in the dragon's inventory to begin with. You can place it there manually, or use the first script to create the item on the dragon.

Quote:

void main()
{
CreateItemOnObject("Item's blueprint", GetPCSpeaker(), 1);
AssignCommand(Dragon's tag, ActionGiveItem("Item's blueprint", GetPCSpeaker()));
}
The first one is usually best, but because the second line only works when there actually is an item to give, it can be used to give treasure which could also be had by killing the dragon, to remove a magical item the dragon had equipped or simply to prevent anyone from getting the item twice using some loop.

Raistlin Majere 06-26-2003 12:31 PM

WHAT!!!! There are tutorials?!?!? and im here sitting for hours trying to figure out how the damn thing works! crap! ah well, i guess ill try the simple stuff(which i now have tutorials for ;) . thanks), then maybe move on to more difficult stuff...time will tell

SpiritWarrior 06-26-2003 01:13 PM

Hey Leggy, just wondered if you've gotten your hands on SOU yet and if so, would like to hear what you thought of it. If so drop a line on the 'First Impressions' thread I made there. Cheers!

GForce 06-26-2003 05:29 PM

Quote:

Originally posted by Raistlin Majere:
but man i hate scripting!!!!!! im kind of learning how to use this toolkit(so i could possibly make mods), but man are there many different things you need to do when scripting! i decided that i would try something simple, so i made a dragon, put some dialogue options and made some weapons and armor which he would give me if i talked to him right. also i tried making him attack me if i talked wrong. well, it didnt really work. i got the dialogues working and stuff, but he wouldnt attack me, nor would he give me his items :( . back to the drawing board, i guess(any help would be appreciated aswell [img]smile.gif[/img] ).
Here, this might help with your scripting. Found this one today. Going to download this when I get home from work. Hope it helps you out. Wishing the same for me:

http://nwvault.ign.com/Files/other/d...98316652.shtml

Legolas 06-27-2003 09:11 AM

Quote:

Originally posted by SpiritWarrior:
Hey Leggy, just wondered if you've gotten your hands on SOU yet and if so, would like to hear what you thought of it. If so drop a line on the 'First Impressions' thread I made there. Cheers!
Nope, I haven't yet. By my knowledge it will be a while before it hits the shelves this side of the great pond. I did update to v1.30, and that one added some nice spells and skills; not to mention the script options [img]graemlins/1dizzy.gif[/img]


All times are GMT -4. The time now is 01:46 PM.

Powered by vBulletin® Version 3.8.3
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
©2024 Ironworks Gaming & ©2024 The Great Escape Studios TM - All Rights Reserved