The following warnings occurred:
Warning [2] Undefined variable $search_thread - Line: 60 - File: showthread.php(1617) : eval()'d code PHP 8.1.27 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/showthread.php(1617) : eval()'d code 60 errorHandler->error_callback
/showthread.php 1617 eval
Warning [2] Undefined variable $forumjump - Line: 89 - File: showthread.php(1617) : eval()'d code PHP 8.1.27 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/showthread.php(1617) : eval()'d code 89 errorHandler->error_callback
/showthread.php 1617 eval




Roll Combat Movement
#31
Sweetness!

send it to me when you are ready to test
Reply
#32
This -should- work:

[attachment=0]

Edit: It doesn't work. At all.
Reply
#33
I managed to simplify the code significantly, which will allow us to add to it without going over our character limit. Still no luck with the addon version, however, and the GHI version refuses to work within instances. :(

I know I'll get there eventually.

Code:
if IsInInstance() == 1 then
   print( "This doesn't work in instances." )
else
   origin = {}
   zoom = 100
   origin[1], origin[2] = GetPlayerMapPosition( "player" )
   origin[1] = ( origin[1] - ( ( origin[1] * zoom ) % 1 ) / zoom ) * zoom
   origin[2] = ( origin[2] - ( ( origin[2] * zoom ) % 1 ) / zoom ) * zoom
   print( "Location: ","(", origin[1],",", origin[2],")" )
end
Reply
#34
Instances don't have maps and might not have coordinates so my never work with the way we have the code
Reply
#35
I believe that instances DO have coordinates, because every instance can be 'uninstanced' as far as I can tell. I've been in I think... Four or five uninstanced dungeons before, which means that they MUST have some sort of coordinates, right?
"Every gun..."

[Image: Jonah-Hex-Counting-Corpses-Flaming-Leap.jpg]

"...Makes its own tune."


~ The Good, the Bad, and the Ugly ~
Reply
#36
There's a reason questhelper doesn't work inside instances. There are no coords in them. The developers at blizzard must have never thought of putting it in.
Reply
#37
Huh... I could've -sworn- Cartographer gave me coordinates while inside an instance, but I just double checked and that's not the case at all!

My conclusion is that it could be Blizzard didn't include coordinates for instances ( which I suppose makes sense considering they don't appear to have maps, although a few addons give the user a map of the instance which leads me to believe it is possible to create coordinates within instances too ), or the method in getting that information is different from how we get it from non-instances. Now, we can still find a way around this, I think, if we can find a way to place a point of reference somewhere in the instance that will allow the user to know their position with respect to that point. An idea I have is to use the location a player spawns when they enter an instance. I'll look into it, but I really think that specific point can be accessed if not through GHI, then through an addon!
Reply
#38
Why not give everyone a ooc teleport spell? One that has lower range then the mage spell?
-Michael

[Image: badge.jpg]
[Image: badge.jpg]
WTF is up with this? ^
Reply
#39
Vagabond Wrote:Why not give everyone a ooc teleport spell? One that has lower range then the mage spell?

Such a spell would no doubt be constant for each person, making everyone, regardless of their IC abilities, move the same distance per turn, thereby removing the tactical aspect of the system we are trying to create.
Reply
#40
no cooldown? So someone with aspect of the cheetah could use it twice..since they can move farther then someone without it? just as an example.
-Michael

[Image: badge.jpg]
[Image: badge.jpg]
WTF is up with this? ^
Reply
#41
An OOC teleport spell would not be part of the GHI system, it would have to be a literal item created by the server...and even then wouldn't work properly due to uneven terrain issues and appearing under the ground because of them, and so dying.. The teleport would also be used by some people to get to places they shouldn't.

On the other hand, if that was configured as a blink styled 'teleport' it could work. you go over terrain and so land on it.
Reply
#42
I meant a blink style teleport, actually....and didn't intend it to be a GHI item..but a item you could oocly get/use ig, just for rp fights.

aside from that, 5 character strides / round is what seems realistic. Tested it in the real world too..gave my brother some tennis balls and ran like a dummy from one end of the yard to him... Fifteen strides, and he got three balls launched off at me (had him grab them off the ground and stand back up straight before throwing to simulate time taking out an arrow/casting a spell)
-Michael

[Image: badge.jpg]
[Image: badge.jpg]
WTF is up with this? ^
Reply
#43
How's this going?
Azheron's back in business. For reals.
Reply
#44
Hope it didn't die. Sounds like a lot of work went into it, would be a real shame if it all went to waste.
Reply
#45
Duskwolf is my go-to guy for all things addon related and, since he has RL things to do, I'm pretty much in the dark in this respect. I'll try to pick it up again after the restart, however.

The GHI code I wrote works just fine, but you'll have to go in and change the value for "zoom" to match everyone else's in the fight, and to make sure you have a decent size square to stand in. As you can see by the screenshots I took, the sizes vary dramatically between territories and interior/exterior battlefields.

Just a head's up!
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Intuitive Rolling Combat Rules [WIP] DuskWolf 7 2,042 08-15-2010, 10:37 PM
Last Post: DuskWolf



Users browsing this thread: 1 Guest(s)