rally question

W!†A_cRaft

Ultra Cool Member
Reaction score
28
If my unit has ability "Rally" and i set it's rally point to a certain point.
then it will have it's data stored so that when i use GetUnitRallyPoint(unit u)
i will get the point it has as a rally point.

Now, if i use a a trigger to remove the ability Rally, and I use the same command GetUnitRallyPoint(unit u). Would i get the latest data that the unit had or?
 
No, you would not be able to get rally point, without the rally ability - but you could do this instead:
Trigger:
  • Untitled Trigger 001
    • Events
      • Unit - A unit Finishes training a unit
    • Conditions
    • Actions
      • Set PointVariable[(Custom value of (Trained unit))] = (Center of (Playable map area))
      • Unit - Order (Trained unit) to Move To PointVariable[(Custom value of (Trained unit))]
Trigger:
  • Untitled Trigger 002
    • Events
      • Unit - A unit enters <REGION>
    • Conditions
    • Actions
      • Unit - Order (Triggering unit) to Move To PointVariable[(Custom value of (Triggering unit))]
I hope you get the idea of what I'm trying to express :)
 
nooo actually i dont but that is mostly because you dont know what im trying to accomplish :p

I am using a rally ability to sort of "save" the target of the unit's last order, so that i can recall it and and recreate the unit's movement pattern...

think of patrols, now if you attack a patrol and die, they should continue their standard route, this will not happen if they received any orders during your fight. That is why I am checking if the fight still lasts and if it doesn't, I'm ordering the patrol to move to it's rally.

I was just wondering if the GetUnitRallyPoint() would give me the data if i have removed the ability, so that i dont need to use "attack" order in my "combat triggers" but could rather use "smart order"
 
ah - well then you can still use my method - save the units point order into a point variable and make array Custom Value of unit, and then everytime you need to get the order, just recall the Point[Custom value] :thup:
 
with an exception that there is no way to see a unit's order target :D

i will figure something out
 
Trigger:
  • Set TempPoint = (Target point of issued order)

what about this?
 
Trigger:
  • Set TempPoint = (Target point of issued order)

what about this?

i solved the issue by temporary storing a rally point into a local variable, removing the ability, ordering a smart order, adding the ability and resetting the rally point.
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • V-SNES V-SNES:
    Happy Friday!
    +1
  • The Helper The Helper:
    News portal has been retired. Main page of site goes to Headline News forum now
  • The Helper The Helper:
    I am working on getting access to the old news portal under a different URL for those that would rather use that for news before we get a different news view.
  • Ghan Ghan:
    Easily done
    +1
  • The Helper The Helper:
    https://www.thehelper.net/pages/news/ is a link to the old news portal - i will integrate it into the interface somewhere when i figure it out
  • Ghan Ghan:
    Need to try something
  • Ghan Ghan:
    Hopefully this won't cause problems.
  • Ghan Ghan:
    Hmm
  • Ghan Ghan:
    I have converted the Headline News forum to an Article type forum. It will now show the top 20 threads with more detail of each thread.
  • Ghan Ghan:
    See how we like that.
  • The Helper The Helper:
    I do not see a way to go past the 1st page of posts on the forum though
  • The Helper The Helper:
    It is OK though for the main page to open up on the forum in the view it was before. As long as the portal has its own URL so it can be viewed that way I do want to try it as a regular forum view for a while
  • Ghan Ghan:
    Yeah I'm not sure what the deal is with the pagination.
  • Ghan Ghan:
    It SHOULD be there so I think it might just be an artifact of having an older style.
  • Ghan Ghan:
    I switched it to a "Standard" article forum. This will show the thread list like normal, but the threads themselves will have the first post set up above the rest of the "comments"
  • The Helper The Helper:
    I don't really get that article forum but I think it is because I have never really seen it used on a multi post thread
  • Ghan Ghan:
    RpNation makes more use of it right now as an example: https://www.rpnation.com/news/
  • The Helper The Helper:
  • The Helper The Helper:
    What do you think Tom?
  • tom_mai78101 tom_mai78101:
    I will have to get used to this.
  • tom_mai78101 tom_mai78101:
    The latest news feed looks good

      The Helper Discord

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top