RPTools.net

Discussion and Support

Skip to content

It is currently Tue May 21, 2013 7:19 am 






Reply to topic  [ 6 posts ] 

Previous topic | Next topic 

  Print view

Author Message
 Offline
Kobold
 
Joined: Wed Oct 19, 2011 4:46 pm
Posts: 12
 Post subject: onTokenFacing
PostPosted: Wed Oct 19, 2011 4:57 pm 
Hello there,

I found myself using the onTokenMove event and was really happy there was such a feature in MapTool since it is exactly what i needed for my Framework, the problem is that i need the exact same feature for the facing option, since facing use some kind of action points as moving does.

All the move options would be welcome like a token.denyFacing=1 for instance and a facing freeze when it is not the player's turn to play ; Since i need also to prevent facing as much as moving when the player doesn't have anymore action points or is not in his own turn play.


Thanks for the awesome tool by the way.


Top
 Profile  
 
User avatar  Offline
Site Admin
 
Joined: Mon Jun 12, 2006 12:20 pm
Posts: 11622
Location: Tampa, FL
 Post subject: Re: onTokenFacing
PostPosted: Wed Oct 19, 2011 5:31 pm 
Hm, that could be tricky -- when does the facing take effect?

As things stand right now, I can select a token and freely spin the mouse wheel while holding down the Shift key and the facing whirls around. So does each change mean an event is fired? What if I go full circle and then stop only one position away from my original position? If I spin the facing only one step, how long before the event fires? Remember that making changes to a token cause the token to be updated on all clients as well, which means network traffic. Firing off this event might be possible only on the originating machine, since the others don't need to know about it necessarily, but the above questions still need to be answered...

It won't happen in 1.3 due to the feature freeze, but the issues discussed here can help inform us as we work on 1.4.

_________________
Interested in Time Magazine's Best Invention of 2008 Unix-powered laptop? No crashes or lockups. In fact, that series of articles has two such machines. The other is a Dell netbook. :)


Top
 Profile  
 
 Offline
Kobold
 
Joined: Wed Oct 19, 2011 4:46 pm
Posts: 12
 Post subject: Re: onTokenFacing
PostPosted: Wed Oct 19, 2011 5:52 pm 
Yea i understand the issues here, i myself doesnt use the shift+click so i didnt see how big the problem could be.

Well, i think there is no way to put an event on facing as it is now, but if facing was re-coded, then it could be, depending on how the new limitations are.

Like no full circle but limited to cardinal positions, maybe not transferring information about facing to other clients until the mouse button is released, and the event triggered as well.

Anyway, thank you for the quick answer, i think i will just go ahead without facing options for my framework, even if it will kinda spoil the game mechanics.

Keep up the good work..


Top
 Profile  
 
User avatar  Offline
Dragon
 
Joined: Wed Aug 31, 2011 8:49 pm
Posts: 323
 Post subject: Re: onTokenFacing
PostPosted: Mon Nov 14, 2011 4:33 am 
It would be a huge boon to maptools to get facing options, thats for certain. We use rear-flank, back-AC, and several other facing dependant additions to our games. In example, not being able to take opportunity attacks on people in your rear facing. While the effort may be incredible, I gotta say the results would be outstanding.

_________________
My Favorite Game Designer

Image

Image


Top
 Profile  
 
User avatar  Offline
Dragon
 
Joined: Tue Aug 23, 2011 10:41 am
Posts: 773
Location: Cornwall, UK
 Post subject: Re: onTokenFacing
PostPosted: Mon Nov 14, 2011 8:07 am 
Correct me if I'm wrong but only GMs can face tokens that way, everyone else has to use the (trusted?) macro command Wiki: setTokenFacing(). Surely you can just use your "onTokenFacing" the line after you use setTokenFacing in a macro, and you're done?

_________________
I'm working on adapting the Alternity game for MapTool, but it's on the back burner unless anyone shows any interest except for me. Current release & support thread: [Alternity] v0.2 *BETA*


Top
 Profile  
 
User avatar  Offline
Deity
 
Joined: Fri Mar 20, 2009 4:40 am
Posts: 5489
Location: Netherlands
 Post subject: Re: onTokenFacing
PostPosted: Mon Nov 14, 2011 10:55 am 
what you *can* do is save the facing of a token with e.g. a 'submit facing' macro and lock the 'submit' macro down when players may not change the facing. So when is allowed to change the facing of the token, she can change it, then press the 'submit facing' macro, which saves it on e.g. a lib:token. This is also the moment where you can calculate how much the facing has changed vs last time and calculate points.

Then when a battle is activated/resolved, e.g. someone shoots, the facing direction of the token is NOT taken from the token itself but from the saved var on the lib:token. You as gm could even create an extra macro: correct facing (apply to selected or apply to all pc tokens) that you press once and a while which automatically sets all facing of all tokens to the saved var. Or make this 'autofacingcorrection' part of the 'shoot' macro or even the 'onTokenMove' event.

_________________
My stuff
Excel Tools: Table editor and Illumination Generator
MT Tools: Dungeon Builder Tool, Bag of Tricks: Teleport pads, Pits, Traps and Warded Areas and onMouseOverEvent
Framework: Dark Heresy, Rogue Trader, Deathwatch, Black Crusade and Only War
Wiki: Debugging Tutorial, Speed Up Your Macros, Working With Two CODE Levels, Shortcut Keys, Avoiding Stack Overflow

My dropbox referral. If you use this then both you and me get 500Mb extra space. 2.5Gb total.


Top
 Profile  
 
Display posts from previous:  Sort by  
Reply to topic  [ 6 posts ] 

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:

Who is online

In total there are 2 users online :: 1 registered, 0 hidden and 1 guest (based on users active over the past 5 minutes)
Most users ever online was 243 on Sun Nov 04, 2012 6:14 am

Users browsing this forum: Bing [Bot] and 1 guest





Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group

Style based on Andreas08 by Andreas Viklund

Style by Elizabeth Shulman