• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

[Trigger] I have a question about Axis's -Last Post ='d different question

Status
Not open for further replies.
Level 3
Joined
May 24, 2008
Messages
27
I've been working with my script for a tower building game.

Quick Question...

  • Events
  • Unit - A unit Finishes construction
-
  • Actions
    • Set C = (C + 1)
    • If (C Equal to 1) then do (Set C1 = 1) else do (Do nothing)
    • If (C Equal to 2) then do (Set C2 = 1) else do (Do nothing)
    • If (C Equal to 3) then do (Set C3 = 1) else do (Do nothing)
    • If (C Equal to 4) then do (Set C4 = 1) else do (Do nothing)
    • If (C Equal to 5) then do (Set C = 1) else do (Do nothing)
    • If (C1 Equal to 1) then do (Set CPV1 = (Point-value of (Constructed structure))) else do (Do nothing)
    • If (C2 Equal to 1) then do (Set CPV2 = (Point-value of (Constructed structure))) else do (Do nothing)
    • If (C3 Equal to 1) then do (Set CPV3 = (Point-value of (Constructed structure))) else do (Do nothing)
    • If (C4 Equal to 1) then do (Set CPV4 = (Point-value of (Constructed structure))) else do (Do nothing)

Insted of Point-Value, How can i adress the x's of points for CVP's so that later i can use the differences of them.
The CVP's Are the unique points of each new structure as they are built.


Bc Later I ...

  • Finding the Difference between CPC1 4
    • Events
      • Unit - A unit Finishes construction
    • Conditions
      • C Equal to 4
    • Actions
      • Set Differencenumber = (CPV1 - CPV2)
      • If ((CPV3 - CPV4) Equal to (Integer((X of CastleDifference)))) then do (Unit - Create 1 Farm for Player 1 (Red) at (Center of (Playable map area)) facing Default building facing degrees) else do (Do nothing)
 
Level 3
Joined
May 24, 2008
Messages
27
:pal: Villanous. But still doesnt answer my question dog. This needs to be "Notch" u know what im sayin. I want pro results For this mistresses question :ned::razz::eek:
 
Level 5
Joined
Jan 6, 2006
Messages
106
Use dummy abilities. You may need to preload them and they are limited to 100, however.

Or you may want to attach another unit as a handle to it, and change the attached unit's custom values. Requires some knowledge of JASS though.
(Damn, I'm still using that crappy LocalHandleVars script while vJASS has better solutions to all those...)
 
Status
Not open for further replies.
Top