So I want to generate a few at a time, so basically they have a range of age, health, abilities, etc.
So can I generate npc2 if I have a npc1, and so on and so forth. Is there than an easier way than this?
Like "generate new npc" and it'd more onto npc3 from two and all.
Also, I'm very bad with python and coding!
Code: Select all
label group_start:
call npc_name
call count_npc
call npc_name
call count_npc
call npc_name
call count_npc
call npc_name
call count_npc
call npc_name
call count_npc
return
label count_npc:
if npc_count == 4:
$ npc5_first_name, npc5_last_name = npc_first_name,npc_last_name
$npc_count += 1
elif npc_count == 3:
$ npc4_first_name, npc4_last_name = npc_first_name,npc_last_name
$npc_count += 1
elif npc_count == 2:
$ npc3_first_name, npc3_last_name = npc_first_name,npc_last_name
$npc_count += 1
elif npc_count == 1:
$ npc2_first_name, npc2_last_name = npc_first_name,npc_last_name
$npc_count += 1
elif npc_count == 0:
$ npc1_first_name, npc1_last_name = npc_first_name,npc_last_name
$npc_count += 1