How to?

Post » Sun Feb 07, 2010 7:29 am

OK, I'm new to modding and I need to know how to:

1. Make an NPC/creature appear on certain quests, in the same area. I'm doing an "Arena Upgrade" mod, so how do I? Example, player chooses "yes, i want to fight this team" and it should appear in the arena pit. Afterwards, after they die, their bodies disappear and the player chooses another team, and the new set appears. How do I?

2. What does short doOnce, duelActive do?

Help appreciated!
User avatar
katsomaya Sanchez
 
Posts: 3368
Joined: Tue Jun 13, 2006 5:03 am

Post » Sun Feb 07, 2010 12:58 am

OK, I'm new to modding and I need to know how to:

1. Make an NPC/creature appear on certain quests, in the same area. I'm doing an "Arena Upgrade" mod, so how do I? Example, player chooses "yes, i want to fight this team" and it should appear in the arena pit. Afterwards, after they die, their bodies disappear and the player chooses another team, and the new set appears. How do I?

2. What does short doOnce, duelActive do?

Help appreciated!


1. You'll need to place your NPCs in the arena, and attach a script to them that "hides" them until certain conditions are met. Something like this:

Begin viper_arena_npc_scriptif ( GetJournalIndex "viper_in_arena" == 10 )	Enableelseif ( GetDisabled == 0 )	DisableendifEnd

Then in the dialogue, you just need to include the line:
Journal "viper_in_arena" 10

This will update your journal, and relies on you creating a journal entry with the ID "viper_in_arena".
Alternatively, there are other ways of achieving this without the use of a journal entry, for instance by setting a global variable. How exactly would you prefer it to work?

2. Is this from a script in the original game or something? "short doOnce" is just a variable declaration, i.e. it's creating a variable "doOnce" to be used in a script. "duelActive" is probably a global variable to tell the game that a duel is active in the arena.
User avatar
Vicki Blondie
 
Posts: 3408
Joined: Fri Jun 16, 2006 5:33 am

Post » Sat Feb 06, 2010 10:37 pm

Thank you.

Ok, for something hard, supposedly the quest is finsihed, and I still want to fight the teams. Like I'll ask the dude he'll say "Which do you want to fight?"

Then there will be choices and I choose "Dagoth Ur and the 7 ash vampires" How do I make those creatures appear?
User avatar
Farrah Lee
 
Posts: 3488
Joined: Fri Aug 17, 2007 10:32 pm


Return to III - Morrowind