Page 1 of 1

Modding Problem: Result Window

Posted: Wed Oct 22, 2008 10:16 am
by Armadillo Rage
Hi, Im having a little problem with my plugin i have been working on for ages.

the npc thanks the pc for completing a quest and gives them a special item starting another quest, it also needs to add topics.

this is what the result window looks like:

journal "entry" 20 - to finish this quest
player->removeitem "item" 1 - so the pc doesnt have the item anymore
additem "item" 1 - to add it to the npcs inventory so she will hold it
player->additem "book" 1 - adds a book to the pcs inventory
journal "entry" 10 - starts a new quest
addtopic "topic" - adds a topic?
addtopic "anothertopic" - adds a topic?

but, when i test the mod, the npc says her line...and NOTHING happens. none of this happens. i looked for typos i might have made by comparing to others i know work (none that add topics, i havnt seen any that do this) it looks like it should work to me. but obviously im wrong.

some help would be appreciated. thanks!!

Posted: Wed Oct 22, 2008 1:52 pm
by Magelord648
With all that I'd suggest a script.

In the result window put:

Startscript "script"

The script should read.

Code: Select all

Begin "script"

journal "entry" 20
;to finish this quest

player->removeitem "item" 1
;so the pc doesn't have the item anymore

"NPC"->additem "item" 1
;to add it to the npc's inventory so she will hold it

player->additem "book" 1
;adds the book to the pc's inventory

journal "entry" 10 
;starts the new quest

"NPC"->addtopic "topic"
;adds the topic

"NPC"->addtopic "anothertopic"
;adds the topic

stopscript "script"

end
The way I've wrote that you just need to copy and paste, then fill in the IDs. Any thing after a semi colon isn't processed. It may need some tweaking however as I haven't wrote a script for a long time.

Posted: Wed Oct 22, 2008 7:15 pm
by Armadillo Rage
Thanks for the help!!! i got it working =)

Posted: Thu Oct 23, 2008 9:59 am
by Magelord648
Through the script or the result window?