|
Development Forum |
 |
|
 Tea Queen
Laura
    

|
8/20/2013 | |
I have a male adult Norn, and I can't seem to get the roses I'm working on to raise his sex drive when he picks them up. Saying that though, his testosterone level appears to be permanently high, as indicated by Hoverdoc. Here's the relevant snippet of code:
*pickup:
scrp 2 7 14853 4
inst
***if it's attr is still 67, you (or a creature) are picking it directly off the plant and need to set it so it doesn't act attached to the patch anymore.
doif attr = 67
attr 195
stim writ from 84 1
***increase their sex drive when picked up. Change "0.1" to increase the intensity:
targ from
driv 13 0.9
targ ownr
*clear the patch_id variable so a new one can spawn:
setv name "patch_id" 0
endi
endm |
I did try increasing 'driv 13 0.75' to 0.9, as shown above. Does the number need to be even higher? I'm just worried about increasing it too much; I don't want to be responsible for people being saddled with kisspop-mad creatures.
Any suggestions? Is there is any point I'm missing, or another line of code I could use? Thanks a lot!  |
 Tea Queen
Laura
    

|
8/20/2013 | |
I'm going to give this a try (at Papriko's suggestion). Any thoughts?
*pickup:
scrp 2 7 14853 4
inst
*if it's attr is still 67, you (or a creature) are picking it directly off the plant and need to set it so it doesn't act attached to the patch anymore.
doif attr = 67
attr 195
stim writ from 84 1
*increase their sex drive when picked up (previously used 'driv 13 0.9'):
targ from
chem 161 0.3
*reward chem:
chem 204 0.2
doif gnus eq 1
*urge writ for Norns:
urge writ targ 36 0.3 1 0.3
elif gnus eq 2
*urge writ for Grendels:
urge writ targ 37 0.3 1 0.3
elif gnus eq 3
*urge writ for Ettins:
urge writ targ 38 0.3 1 0.3
else
*urge writ for Geats:
urge writ targ 39 0.3 1 0.3
endi
targ ownr
*clear the patch_id variable so a new one can spawn:
setv name "patch_id" 0
endi
endm |
|
 Peppery One
Papriko
    
|
8/20/2013 | |
I'd like to mention that I mostly sliced Cupid's Lyre into pieces. It is just an adaption of the tricks it uses. Mind control, drive changing on chemical level...
The reward chemical was a new idea, though. GirlySatan came up with the idea and the Addicting Suicide Juice showed that it works.
Lets play plants! Photosynthesis... Photosynthesis... Photosynthesis... |
 Tea Queen
Laura
    

|
8/24/2013 | 1 |
For the benefit of others (and for SCIENCE!) this is the correct and working script I used - with Liam's help - to raise a creature's sex drive when the roses are picked up:
*pickup:
scrp 2 7 14853 4
inst
*if it's attr is still 67, you (or a creature) are picking it directly off the plant and need to set it so it doesn't act attached to the patch anymore.
doif attr = 67
attr 195
stim writ from 84 1
*clear the patch_id variable so a new one can spawn:
setv name "patch_id" 0
endi
*increase their sex drive when picked up (previously used 'driv 13 0.9'):
targ from
*sex drive chemical, 0.3 = strength of chemical:
chem 161 0.3
*reward chemical, 0.2 = strength of chemical:
chem 204 0.2
doif gnus eq 1
*urge writ for Norns:
urge writ targ 36 0.3 1 0.3
elif gnus eq 2
*urge writ for Grendels:
urge writ targ 37 0.3 1 0.3
elif gnus eq 3
*urge writ for Ettins:
urge writ targ 38 0.3 1 0.3
else
*urge writ for Geats:
urge writ targ 39 0.3 1 0.3
endi
targ ownr
endm | |

Malkin
     Manager

|
8/24/2013 | |
I'm glad you're sharing the code for this feature with us (for SCIENCE!) - I'd love to see the full code with the roses when you get your login sorted out. 
My TCR Norns |

Liam
  

|
8/24/2013 | 2 |
If you check the diff between mine and Laura's code, you'll see it's identical, except I just moved it around a little.
What was happening is that in Laura's code, the relevant stim/chem bits were inside the DOIF (meaning they only occured when the hand or the norn picked the rose from the plant).
I moved them out of the DOIF check to ensure they happened every time the rose is picked up. 
- Liam / K'aeloree
Spellhold Studios, a Baldur's Gate II, Neverwinter Nights and Oblivion Modding Community |
 Tea Queen
Laura
    

|
8/24/2013 | |
Thanks for explaining it far better than I could (if I'd tried)! Hopefully this'll help more fledgling developers like myself; I've certainly found it a useful learning curve. |

Malkin
     Manager

|
8/24/2013 | |
Aha, those doifs will get you every time! Thanks for pointing out the difference, Liam!
My TCR Norns |
 Sanely Insane
RisenAngel
     Manager

|
8/24/2013 | 1 |
While it really doesn't affect anything, if I was writing that I'd throw in a "doif crea from = 1" before the chemical and stimulus alterations as those CAOs commands effect only creatures and there's no point in running them for other things.
Granted, there's no downside to not doing it; I just think it makes the code look better. 
~ The Realm ~
Risen Angel's Creatures Blog
|