Difference between revisions of "Abducted story"
From XStoryPlayer Wiki
Line 2: | Line 2: | ||
It is not really a tutorial, but it is worth reading to gain more knowledge about modding.<br> | It is not really a tutorial, but it is worth reading to gain more knowledge about modding.<br> | ||
An important part of this chapter describes how to get the character to do a (sexual) task. | An important part of this chapter describes how to get the character to do a (sexual) task. | ||
+ | |||
+ | ==Info== | ||
+ | |||
+ | <ol> | ||
+ | <li>First copy the complete <code>pack_abducted</code> directory from the '[[Tutorial resource pack]]' to your <code>./pack</code> directory. You may want to rename your own pack directory from the previous tutorials in order to keep the results. Now start the story from the beginning and play it to the end.</li> | ||
+ | <li>You will notice that several elements have been added: | ||
+ | * The alien girl reacts to your penis being shown. | ||
+ | * The alien girl opens the door. | ||
+ | * The alien girl gets into a blowjob pose. | ||
+ | * The alarm is sounded when you try to escape. | ||
+ | * The alien girl start coughing when you eject in her mouth. | ||
+ | <li>Most (90%) of the code has been added to the <code>run.dat</code> files for both the player and the alien girl.<br> | ||
+ | There are also some small changes to some other files, but if you followed the previous tutorials it should be pretty clear what these changes are.</li> | ||
+ | </ol> | ||
+ | |||
+ | ===The alien girl reacts to your penis being shown=== | ||
+ | |||
+ | <ol> | ||
+ | <li>Open the <code>/init/story/alien/brain/run.dat</code> file.</li> | ||
+ | <li>Take a look at the <code>WAIT_REACTION</code> state.<br> | ||
+ | <syntaxhighlight lang="cpp"> | ||
+ | [state.dyn.me.avatar.penis_mode > 0] | ||
+ | { | ||
+ | SetFocusElem(PENIS); | ||
+ | |||
+ | do_set_timer(5); | ||
+ | |||
+ | state.dyn.me.do.state2 = SEE_PENIS; | ||
+ | return; | ||
+ | } | ||
+ | </syntaxhighlight> | ||
+ | When the avatar (player) its penis_mode is larger than 0 (3 = erected), the alien girl focuses on the penis and goes into <code>SEE_PENIS</code> state. | ||
+ | </li> | ||
+ | </ol> | ||
[[file:abducted_story1.jpg|800px]] | [[file:abducted_story1.jpg|800px]] |
Revision as of 15:02, 21 January 2015
We added some extra code to finish the abducted story. We will walk over the important parts of the code in this chapter.
It is not really a tutorial, but it is worth reading to gain more knowledge about modding.
An important part of this chapter describes how to get the character to do a (sexual) task.
Info
- First copy the complete
pack_abducted
directory from the 'Tutorial resource pack' to your./pack
directory. You may want to rename your own pack directory from the previous tutorials in order to keep the results. Now start the story from the beginning and play it to the end. - You will notice that several elements have been added:
- The alien girl reacts to your penis being shown.
- The alien girl opens the door.
- The alien girl gets into a blowjob pose.
- The alarm is sounded when you try to escape.
- The alien girl start coughing when you eject in her mouth.
- Most (90%) of the code has been added to the
run.dat
files for both the player and the alien girl.
There are also some small changes to some other files, but if you followed the previous tutorials it should be pretty clear what these changes are.
The alien girl reacts to your penis being shown
- Open the
/init/story/alien/brain/run.dat
file. - Take a look at the
WAIT_REACTION
state.
[state.dyn.me.avatar.penis_mode > 0] { SetFocusElem(PENIS); do_set_timer(5); state.dyn.me.do.state2 = SEE_PENIS; return; }
When the avatar (player) its penis_mode is larger than 0 (3 = erected), the alien girl focuses on the penis and goes into
SEE_PENIS
state.