Random Picking NPC

smoochy boys on tour

Sammy

Dedicated Member
Dedicated Member
Sep 9, 2007
66
1
54
How do i make an npc pick a random [@Tag] or make it pick a random @Goto statement. its for quests

I basically want to do an npc that will pick a random quest from a lot of available and give it to a user, but at the same time i need the npc to either not hand out another quest till the current one is finished or keep a check on items in bag so u can hand the quest items in for the quest it give u before allowing you to do another :S Hope i said that right :P

[@Main]
#IF
#ACT
Random 1
Goto @1
Break

#IF
#ACT
Random 2
Goto @2
Break

[@1]
#IF
#SAY
Etc

[@2]
#IF
#SAY
Etc

Thanks in advance
 
Last edited:

Sammy

Dedicated Member
Dedicated Member
Sep 9, 2007
66
1
54
[@Main]
#IF
RANDOM 0
#ACT
Goto @0

#IF
RANDOM 1
#ACT
Goto @1

[@0]
#Say

[@1]
#Say

Did a trial and error and got it working :)
 
Upvote 0