[Plugin] slg_movement

Post your completed addons to share with the community

Post » Sun Nov 25, 2012 3:30 pm

@ rexrainbow

Excellent! You are our hero!
It works like a charm now.



Thanks a lot

ps: I saw your last post. Incredible! You never sleep!!aktarus2012-11-25 15:33:28
B
9
S
1
Posts: 20
Reputation: 1,242

Post » Mon Nov 26, 2012 12:00 am

I had added some conditions for picking chess like "Pick chess above tile UID" in board plugin, so that user could get chess instance more easily in cost function/filter function, just passing Movement.TileUID to get chess.rexrainbow2012-11-26 00:01:45
B
97
S
22
G
176
Posts: 4,108
Reputation: 103,019

Post » Mon Nov 26, 2012 12:24 am

Another sample capx --
Pick enemies
Filter function in "move-able area" could get attack-able (in this capx, the attack range is 2 (tiles)) enemy instances.
Just put target chess.uid at "action:Append filter result". Then pick chess from instance group after doing "action:Get moveable area".

More over, user could pick target chess with more conditions like checking the HP (saved in instance variables) , or something else.

PS. user need to update board plugin to open this sample capx.
B
97
S
22
G
176
Posts: 4,108
Reputation: 103,019

Post » Mon Feb 18, 2013 5:37 pm

The example capx's just seem to open a page of garbled text for me?

Apart from that, this seems to be just what I needed! I'll go try it out right away.
B
10
S
3
G
3
Posts: 110
Reputation: 2,206

Post » Mon Feb 18, 2013 9:48 pm

@Vati-nyan

Right click the link, download file by "save as..." (I guess)
I don't know why the browser treat capx file as a text file.
B
97
S
22
G
176
Posts: 4,108
Reputation: 103,019

Post » Mon Feb 18, 2013 10:51 pm

An isometric map example
Demo
- click or touch any green tile

Capx
The direction is -
[code]0: right
1: down
2: left
3: up[/code]

It need install scroll behavior (for textbox).rexrainbow2013-02-18 23:02:07
B
97
S
22
G
176
Posts: 4,108
Reputation: 103,019

Post » Mon Feb 18, 2013 11:25 pm

Ah I see, thanks!
B
10
S
3
G
3
Posts: 110
Reputation: 2,206

Post » Fri Mar 22, 2013 2:09 am

Hello Rexrainbow,

I must begin by thanking you for creating such great work of art (in the form of plugins and behaviors!).

I am encountering some problems when trying to integrate your previous capx examples into a turn-based strategy game (i.e. movement seems good but I can't select/pick enemies).

I would like to know if you could be so kind as to review my capx and see where I am making any mistakes.

For everyone, please do take a look into my capx as well and if there is anything you like in this humble "1st try", do feel free to take it and share it around! :)

https://www.dropbox.com/s/ki3fu87az693l3s/Test101.capx

Thanks!
B
25
S
8
G
1
Posts: 13
Reputation: 3,133

Post » Sat Mar 23, 2013 6:24 am

@Sobieski74

To get enemies in a range, you might reference this capx

The description ("Pick enemies") is at first post of this thread.

Shortly, it uses "filter function" to get enemies which stand on tiles in a range.
B
97
S
22
G
176
Posts: 4,108
Reputation: 103,019

Post » Sat Mar 23, 2013 2:13 pm

Hello Rexrainbow,

I have indeed used your referenced capx and it works perfectly on its own. The issue comes when I try to integrate it with the slg_movement plugin.

I seem to run into selection problems when trying to make the "pick" as I do not use the same single chess piece (with GV) for both player,partner,enemies (as you do in your capx example).

I will try to find a way to make it work, but if you or anyone else has any idea where I go wrong, please do let me know; it would be highly appreciated (and surely useful for anyone else as well).

Thank you very much!

https://www.dropbox.com/s/ki3fu87az693l3s/Test101.capxSobieski742013-03-23 14:16:46
B
25
S
8
G
1
Posts: 13
Reputation: 3,133

PreviousNext

Return to Completed Addons

Who is online

Users browsing this forum: No registered users and 3 guests