In Manifest, two players compete to control arcane nodes. Each player trains five heroes with whom to battle. Players take turns moving, attacking, and casting with their heroes, having five Action Points with which to act each turn. Superior tactics earns victory over the inferior.

Image RSS Feed Latest Screens
World Editor Map Wolve Raider Attacking Typhoon
Blog RSS Feed Report abuse Latest News: Display Range Revision

1 comment by Gryffin on Feb 8th, 2010

The other day, I posted about the ability to display the attack range of a selected unit. Though the code worked mostly properly, ModDB's Kerloc, being his helpful self pitched in on the idea and helped me to write a far superior version of the command.

Check it out:

actionscript code:
Ping Range
    Events
        Player - Player 1 (Red) types a chat message containing range as An exact match
        Player - Player 2 (Blue) types a chat message containing range as An exact match
    Conditions
    Actions
        Unit Group - Pick every unit in (Units owned by (Triggering player) matching (((Matching unit) is selected by (Triggering player)) Equal to False)) and do (Actions)
            Loop - Actions
                Unit Group - Remove (Picked unit) from (Units currently selected by (Triggering player))
        Unit Group - Pick every unit in (Units currently selected by (Triggering player)) and do (Actions)
            Loop - Actions
                Set SelectedUnitOrigin = (Position of (Picked unit))
                Set SelectedUnit = (Picked unit)
                For each (Integer A) from 1 to 360, do (Actions)
                    Loop - Actions
                        Unit - Create 1 Circle of Power [effect] for Neutral Passive at (SelectedUnitOrigin offset by (Current acquisition range of SelectedUnit) towards (Real((Integer A))) degrees) facing 0.00 degrees
                        Unit - Add a 3.00 second Generic expiration timer to (Last created unit)
 

Now, when players type range into chat, a helpful ring will display the attack range of the currently selected unit. The unit "circle of power" is nothing more than the special effect model for the Paladin's Holy Light. The best part of this trigger, in my opinion, is the genius expiration timer following the unit's creation. The guarantees both that the special effect's are destroyed and that players will not break the code by requesting multiple range displays in short succession.

Sadly, however, in its present form, this code sometimes glitches. The glitch comes from the "remove units from selection" action, which, somehow, causes previously selected units to remain selected and to break all sorts of triggers essential to the functioning of my turn-based infrastructure. I think the glitch has to do with the lag in the game's recognizing of the presently selected unit. I'm currently working on solutions.

In the meantime, take a look at this stellar video of the display range command in action.

Media RSS Feed Latest Video
Post comment Comments
RangerC
RangerC Feb 2 2011, 4:12am says:

Good luck!

+1 vote     reply to comment
De.Facto
De.Facto Jan 26 2010, 4:57pm says:

You're not using vJass and ZinC?

+1 vote     reply to comment
Gryffin
Gryffin Jan 26 2010, 7:07pm replied:

I never learned Jass; I don't know why, really, I just chose not to. I took two semesters of Java in college, but having not practiced it since, my understanding is basically gone. I've been using the World Editor's standard trigger editor for a long time now, and I sort of challenged myself early on to write this entire game using it alone. I could have learned Jass, and honestly, probably should have, as I'm sure triggering this game would have been much easier, but I actually enjoy using the trigger editor a lot, and it's fun finding creative solutions to problems within the editor's confines.

+1 vote     reply to comment
De.Facto
De.Facto Jan 26 2010, 10:11pm replied:

That's the point: you can't push a map to it's edges.
But of course .. GUI alone can also fulfill your needs. (;

+2 votes     reply to comment
Gryffin
Gryffin Jan 26 2010, 11:49pm replied:

Yeah. There are definitely limitations. But I appreciate the challenge of working with the trigger editor alone, and using the tools that I have available to solve development hurdles. I'm proving to myself that I can accomplish something very big and very complex using only simple tools. It would have been nice to have additional options; I've run into a couple of instances where it's impossible to implement something I'd like. But I'm also fairly swamped with all of the options available to me already. The trigger editor and ability editor are in fact quite robust, and I am currently struggling to narrow down what to keep and what to cut. By the way, I read your stuff about Arcadia, looks really interesting.

+1 vote     reply to comment
De.Facto
De.Facto Jan 27 2010, 5:08pm replied:

Thanks. :>

I'm creating Arcadia for a Solo-Mapping-Competion on hiveworkshop.com.
Our current main-Project is Chernobyl - Lost Riddles. Hopefully the beta is starting within February. (;

Good luck with your project!

+1 vote     reply to comment
Post a Comment
click to sign in

You are not logged in, your comment will be anonymous unless you join the community today (totally free - or sign in with your social account on the right) which we encourage all contributors to do.

2000 characters limit; HTML formatting and smileys are not supported - text only

Icon
Warcraft III: Frozen Throne Icon
Platforms
Windows, Wii
Developed By
Gryffin
Contact
Send Message
Official Page
Moddb.com
Release Date
Released Apr 1, 2010
Mod Watch
Track this mod
Share
Community Rating

Average

-

0 votes submitted.

You Say

-

Ratings closed.

Style
Genre
Turn Based Strategy
Theme
Fantasy
Players
Multiplayer
Embed Buttons

Promote Manifest on your homepage or blog by selecting a button and using the HTML code provided (more).

Manifest Manifest
Manifest
Statistics
Rank
7,762 of 22,181
Last Update
4 years ago
Watchers
10 members
News
11