Visit the Ironworks Gaming Website Email the Webmaster Graphics Library Rules and Regulations Help Support Ironworks Forum with a Donation to Keep us Online - We rely totally on Donations from members Donation goal Meter

Ironworks Gaming Radio

Ironworks Gaming Forum

Go Back   Ironworks Gaming Forum > Ironworks Gaming Forums > Neverwinter Nights 1 & 2 Also SoU & HotU Forum
FAQ Calendar Arcade Today's Posts Search

Reply
 
Thread Tools Search this Thread
Old 06-25-2003, 04:42 PM   #1
Raistlin Majere
Ra
 

Join Date: March 26, 2002
Location: Finland
Age: 36
Posts: 2,323
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] ).
__________________
If the radiance of a thousand suns were to burst forth at once in the sky, that would be like the splendor of the Mighty One.

"I am become death, the destroyer of worlds."
Raistlin Majere is offline   Reply With Quote
Old 06-26-2003, 04:40 AM   #2
Xen
Symbol of Moradin
 

Join Date: June 5, 2002
Location: Slovenia,Ljubljana
Age: 36
Posts: 8,554

Good luck Raistlin Majere.
Xen is offline   Reply With Quote
Old 06-26-2003, 05:49 AM   #3
Silversten
Elite Waterdeep Guard
 

Join Date: June 14, 2003
Location: Perth, Australia
Age: 38
Posts: 32
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.
Silversten is offline   Reply With Quote
Old 06-26-2003, 08:27 AM   #4
philip
Galvatron
 

Join Date: June 24, 2002
Location: aa
Posts: 2,101
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 ]
philip is offline   Reply With Quote
Old 06-26-2003, 11:03 AM   #5
Legolas
Jack Burton
 

Join Date: March 31, 2001
Location: The zephyr lands beneath the brine.
Age: 40
Posts: 5,459
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.
Legolas is offline   Reply With Quote
Old 06-26-2003, 12:31 PM   #6
Raistlin Majere
Ra
 

Join Date: March 26, 2002
Location: Finland
Age: 36
Posts: 2,323
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
__________________
If the radiance of a thousand suns were to burst forth at once in the sky, that would be like the splendor of the Mighty One.

"I am become death, the destroyer of worlds."
Raistlin Majere is offline   Reply With Quote
Old 06-26-2003, 01:13 PM   #7
SpiritWarrior
Jack Burton
 

Join Date: May 31, 2002
Location: Ireland
Posts: 5,854
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!
__________________
Still I feel like a child when I look at the moon, maybe I grew up a little too soon...
SpiritWarrior is offline   Reply With Quote
Old 06-26-2003, 05:29 PM   #8
GForce
Guest
 

Posts: n/a
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
  Reply With Quote
Old 06-27-2003, 09:11 AM   #9
Legolas
Jack Burton
 

Join Date: March 31, 2001
Location: The zephyr lands beneath the brine.
Age: 40
Posts: 5,459
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]
Legolas is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Awsome dream loot (armour/weapon) in the Telvanni Tel Fyr tower Reggie Miscellaneous Games (RPG or not) 0 05-13-2002 09:26 PM
Check this out! its awsome! slackerboy General Conversation Archives (11/2000 - 01/2005) 29 09-29-2001 10:24 AM


All times are GMT -4. The time now is 10:40 PM.


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