Jump to content


Photo

Turn-based mechanic without grids


  • Please log in to reply
20 replies to this topic

#21 ProxatorDesign

ProxatorDesign

    GMC Member

  • New Member
  • 14 posts
  • Version:GM8

Posted 28 July 2012 - 04:46 AM

It seems to believe that the dot after ds_list_find_value(adjRegions, i) is an "unexpected symbol" I'm trying to see how I can resolve the problem.

Fixed it, I used a temporary variable to store the list value for the loop

global.selected=id
var adjRegions;
var highregion;
adjRegions = global.selected.region.adjacentRegions //just to make the variable shoter for the rest of the code
for(i=0; i<ds_list_size(adjRegions); i+=1){
    highregion=ds_list_find_value(adjRegions, i)
    highregion.visible=1
    
}

Ok, so now I have a new issue. Making the army recognize that it's region is now the new one. I've got the army to properly move from one region to another (Thanks a whole bunch for the help!) but now whenever I reselect the army, the adjacent regions for the previous one are highlighted (obviously because he hasn't recognized the new region yet)

Edited by ProxatorDesign, 28 July 2012 - 06:04 AM.

  • 0




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users