Beispiel #1
0
def san_dialog( attachee, triggerer ):
	if game.global_vars[923] == 0:
		tempp = 0
		for p in range(0, 12):
			tempp += game.random_range(0, 8)
		tempp -= 24
		if tempp < 5:
			tempp = 5
		game.global_vars[923] = tempp
	elif tpsts('s_ranths_bandits_1', 0) == 0:
		record_time_stamp('s_ranths_bandits_1')
	attachee.turn_towards(triggerer)
	if (game.quests[78].state == qs_completed and game.quests[107].state == qs_unknown and game.quests[112].state == qs_mentioned):
		triggerer.begin_dialog( attachee, 430 )
	if (game.quests[74].state == qs_completed and game.quests[78].state == qs_unknown and game.quests[111].state == qs_mentioned):
		triggerer.begin_dialog( attachee, 450 )
	elif (game.global_vars[993] == 7):
		triggerer.begin_dialog( attachee, 630 )
	elif (game.global_vars[993] == 9):
		triggerer.begin_dialog( attachee, 710 )
	elif (attachee.map == 5156):
		triggerer.begin_dialog( attachee, 910 )
	else:
		triggerer.begin_dialog( attachee, 1 )
	return SKIP_DEFAULT
Beispiel #2
0
def san_dying(attachee, triggerer):
    # if should_modify_CR( attachee ):
    # modify_CR( attachee, get_av_level() )
    record_time_stamp(518)
    game.global_flags[110] = 1
    if (attachee.leader_get() != OBJ_HANDLE_NULL):
        game.global_vars[29] = game.global_vars[29] + 1
    return RUN_DEFAULT
Beispiel #3
0
def schedule_bandits_1( attachee, triggerer ):
	tempp = game.global_vars[923]
	if game.global_vars[923] == 0:
		for p in range(0, 12):
			tempp += game.random_range(0, 8)
		tempp -= 24
		if tempp < 5:
			tempp = 5
		# approximate a gaussian distribution by adding together 12 uniformly distributed random variables
		# average result will be 24 days, standard deviation will be 8 days
		# it is then truncated at 5 days minimum (feel free to change) (roughly 1% of results might reach 5 or lower otherwise, even negative is possible though rare)
		game.global_vars[923] = tempp
	game.timevent_add( set_bandits, (), tempp * 24 * 60 * 60 * 1000 )
	record_time_stamp('s_ranths_bandits_1')
	return RUN_DEFAULT
Beispiel #4
0
def schedule_reward(attachee, triggerer):
    game.global_flags[152] = 1
    attachee.object_flag_set(OF_OFF)
    game.timevent_add(give_reward, (), 1209600000)  #1209600000ms is 2 weeks
    record_time_stamp('s_thrommel_reward')
    return RUN_DEFAULT
Beispiel #5
0
def f41():
    if game.global_flags[41] == 0:
        game.global_flags[41] = 1
        record_time_stamp(432)
    return
Beispiel #6
0
def q16():
    if game.quests[16].state == qs_accepted or game.quests[
            16].state == qs_mentioned:
        game.quests[16].state = qs_completed
        record_time_stamp(431)
    return
Beispiel #7
0
def rngfighttime_set():
    if game.global_flags[426] == 0:
        record_time_stamp(426)
        game.global_flags[426] = 1
    return
Beispiel #8
0
def destroy_orb(attachee, triggerer):
    game.global_flags[326] = 1
    # set timer for 4 days and then end game or go to verbo
    game.timevent_add(return_Zuggtmoy, (attachee, triggerer), 345600000)
    record_time_stamp('s_zuggtmoy_banishment_initiate')
    return RUN_DEFAULT