Hex numbering in Mapper

Yossarian

First time out of the vault
I'm trying to make a critter go to a fixed tile in the map, which in the mapper says is 19721, so here is what I did.
Code:
procedure Node003 begin
   NMessage(mstr(109));
   animate_run_to_tile(19721);
end
That didn't work, so I though it might be something else, but I tried this
Code:
procedure Node003 begin
   NMessage(mstr(109));
   animate_run_to_tile(tile_num(dude_obj)+1);
end
and that worked fine.
Is there anything im missing about the numbering?

Thanks a lot.
 
Hi there.
animate_run_to_tile(19721); is correct, I really don't know if it works properly in a Node. I'd make something like:
procedure map_update_p_proc begin
if_given_condition then begin
animate_run_to_tile(19721);
end
end
This will also ensure that your critter will move to his destination even if the PC exits and re-enters the map (You really never know :( )
Just a personal liking... Also know there's a maximum distance you can have a critter move to. Not more than a screen, less or more. I hope this helps. If you need it to travel a greater distance, then you'll have to set waypoints. Just know that to have a critter move is one of the most difficult things.
See you and goodnight.
 
Sirren67 said:
Hi there.
animate_run_to_tile(19721); is correct, I really don't know if it works properly in a Node.
The function works in nodes since the second way I posted worked fine, but I dont know if putting the number works in a node. I've also tried it in the description proc, didn't work either.
I'd make something like:
procedure map_update_p_proc begin
if_given_condition then begin
animate_run_to_tile(19721);
end
end
This will also ensure that your critter will move to his destination even if the PC exits and re-enters the map (You really never know :( )
Just a personal liking... Also know there's a maximum distance you can have a critter move to. Not more than a screen, less or more. I hope this helps. If you need it to travel a greater distance, then you'll have to set waypoints. Just know that to have a critter move is one of the most difficult things.
See you and goodnight.
Damn I didn't think it would be difficult. Thanks for the move distance info, I had no idea. Also if the little fucker moves to a spot, and I leave the map, will he still be there if I come back or will he be back to where he started? i guess I can try it out.
Thanks agains for the help.

Edit: The max distance did it. I put in closer numbers and they work fine. You're a life saver :notworthy: Now if I could get my MVARs to work... :(
 
Have a critter follow dude, or move to a given hex are different things, but you might be right nonetheless.
The critter will stay on the new spot in game, and of course it will be on its starting spot in the mapper, becouse it does not saves maps when you exit them.
See you.
 
Not even the original team was completely on top of this: the reason the Billy miniquest doesn't work in the Hub is because Dan can't be arsed to walk that many hexes over to Billy to shout at him. Does anyone know if that was fixed in the 1.3 patch?
 
Back
Top