Need help with walking NPCs in Developer Help
|
|
Code:
mob Wondering_Seed_Salesman icon = 'NPCs.dmi' icon_state = "Salesman" name = "{NPC}Traveling Seed Salesman" verb Talk() set category = "NPC's" set src in oview(2) switch(input("Would you like to trade some gold for seeds?", text) in list ("Yes","No")) if("Yes") if(usr.gold >= 50) usr << "Alrighty, it was nice doing business with you!" usr << "Come back anytime, okay?" usr.gotseeds += 5 if(usr.gold <= 49) usr << "Sorry buddy, Standard price is 50 gold, go kill some wolves or something" else return
|
Problem description:
I need to get this guy to walk back and forth in a straight line.
I don't want him to walk around the map randomly, just up and down the road.
I have tried making different procs to try to get things to move in a straight line, but I can't get them to actually move. Could anyone please help me out?
|
NORTH
SOUTH
WEST
EAST etc
Create a type of path finding procedure.
Search the resources or forums.