VnV Trigger mechanism logic
Hi there everyone,
I've been trying out that new variable speed for the strat map thing as was described in the Some How To's sticky using the admiral as an example. I'm a bit mixed up as to the logic of the triggers. Lets say you have a VIRTUE VIRTUE_X which has one level and is changed everytime TRIGGER_X fires. Lets say TRIGGER_X fires randomly 40% of the time as long as VIRTUE_X does not have the value of 1, and Affects VIRTUE_X by 1. I'm confused about the 1 - does it load VIRTUE_X with the value of 1 or does it add one, so everytime it fires it keeps adding one (1+1+1+1,etc) - how do I make the value go down so it returns to 0? Do I make it Affect VIRTUE_X by -1? Basically what I want to happen is for the character to be given a new movement point value, lets say 100, but at random times this will be totally negated whenever this random trigger fires.
Follow up question, does the movement value given mean 100 movement points or +100 movement points on top of whatever the value in descr_characters is? So lets say originally there are 20 movement points will it automatically make it 100 movement points or will it add 100, making it 120 movement points? If I negate it as I described above, should I add a negative amount + (-100)? What if I subtract a number greater than the movement points added (like if I added 100 MP, and subtracted 110 will that work? Will the character/agent become immobile?)
Thanks very much,
Comte de Clare
Re: VnV Trigger mechanism logic
what I've done for lets say the admiral character is (not in this format of course):
FasterAdmirals VnV
level 1
threshold 1
makes speed 100
SlowerAdmirals VnV
level 1
threshold 1
makes speed -100
trigger_faster_admirals
affects Admirals
trigger fires At End of Character Turn
if NOT FasterAdmirals =1
affects FasterAdmirals 1 percent 100
trigger_slowdown_admirals
affects Admirals
trigger fires At End of Character Turn
if FasterAdmirals =1
affects SlowerAdmirals 1 percent 40
trigger_faster_admirals_again
affects Admirals
trigger fires At End of Character Turn
if SlowerAdmirals =1
affects SlowerAdmirals 1 percent 100
Basically I want the game to give new Admirals 100 movement points on creation but 40% of the time slow them down for a single turn and then boost them up to 100 movement points again.
thanks,
Clare