Jump to content

Would this script work?


mcole254

Recommended Posts

I haven't really worked with a script like this before. I would think it would be more like this:

 

Begin Gamemode
    If Player.GetIsRace "custom race" == 1
         Set PCVampire to 1
    EndIf
End 

Link to comment
Share on other sites

There is a way to do this through the Dialogue section.

open the CS and go to -- Conversation -- HELLO.

If you look at how other hello's are done you should soon figure out the conditions needed for people to treat you as a vamp. ( it doesn't matter what your race is, Player ref always applies ).

Just dont give it a random reply, also if you go to the very last hello's you will see how they deal with disease responses, the condition -- GetIsRace VampireRace == 1 -- is available to use anywhere in this section. But the hello's are random....so there is no guarantee just when it will be said.

A script can also be written that makes NPC's say stuff to you under certain conditions, but I only know how to do this using OBSE -- and a new quest with it's own conversation would need to be created.

 

http://i47.tinypic.com/20uwf0i.png

 

this is the quest section.

 

http://i45.tinypic.com/2pqm2rt.png

 

this is the kind of script you will need to attach to the quest.

extra conditions can be applied to the script to make it more versatile...but I must leave that to you, as you know what you want more than I.

Link to comment
Share on other sites

What I was trying to do was satisfy a condition for a sertain quest and promped dialog, all of them check for PCVampire, while I could go through and change all of them, I was just trying to make a script to add that condition to a certain race I was using.
Link to comment
Share on other sites

What I was trying to do was satisfy a condition for a sertain quest and promped dialog, all of them check for PCVampire, while I could go through and change all of them, I was just trying to make a script to add that condition to a certain race I was using.

 

 

That's different....you will still need to make a quest with it's own unique dialogue ( topics )...and set conditions for those topics to be available.

 

this script should work on the quest.

 

scn aaaVamp

 

short vamp

 

begin gamemode

 

if vamp == 0

player.addtopic <topic name>

set vamp to 1

endif

 

end

 

 

if you set conditions that only a certain NPC should say this ( GetIsID <NPC> == 1 && player.getisrace vampirerace == 1 ), then only that dialogue will show in their conversation list.

 

Setting a variable will also controll when the dialogue is available.

 

Lets say your quest is called aaaVamp1, and it has 5 stages -- and you want a conversation available at stage 3.

stage 3 has the value 30 ( for example ), so the script would look like this:

 

scn aaaVamp

 

short vamp

 

begin gamemode

 

if getstage aaaVamp1 == 30 && vamp == 0

player.addtopic <topic name>

set vamp to 1

endif

 

end

Edited by slygothmog
Link to comment
Share on other sites

Wow thanks, that is prettry helpful, however my goal was to make a compatability between a quest mod and a custom race. My thought was to make a script as i said before that would have that race satisfy the condition of the quest. However if i can't get it to work i will just have to go through and change all of the conditions for the quest.
Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...