- Joined
- Jul 9, 2011
- Messages
- 15
For years I am playing a map in WC3, only yestreday I first tried (successfuly!) to open it using map editor.
During the years of playing I've gathered tons of important ideas regarding the map, the only problem (as expected) is that I dont have a clue about JASS which is what its written in. Therefore I decided that in the new map I will only touch the triggers regarding one important command.
After a few minutes of search I found in the map the trigger which needs to be slightly changed. Even I can understand that it is using functions (hopefuly thats the name in JASS) which are written somewhere else in the init file. I will gladly give them upon request though I hope it is avoidable! The initfile is one big pain in the ass to search in!!
The function requested is one which by a certain string typed by red, map go back and forth between whether this was written and as if the original: (eg: *game acts as if first was written* *red: "dodo"* *game acts as if second was written* *red: "dodo"* *game acts as if first was written*)
*End of line 4*. I know it is making the function completely useless, but it is important for me that it will do as typed!
Thanks for the help!
BTW hehe nice smilies you've got here!
During the years of playing I've gathered tons of important ideas regarding the map, the only problem (as expected) is that I dont have a clue about JASS which is what its written in. Therefore I decided that in the new map I will only touch the triggers regarding one important command.
After a few minutes of search I found in the map the trigger which needs to be slightly changed. Even I can understand that it is using functions (hopefuly thats the name in JASS) which are written somewhere else in the init file. I will gladly give them upon request though I hope it is avoidable! The initfile is one big pain in the ass to search in!!
JASS:
function Trig_PlayerX01_Actions takes nothing returns nothing
set udg_locations33[1]=GetUnitLoc(udg_units01[1])
set udg_locations32[1]=GetOrderPointLoc()
call SetUnitFacingTimed(udg_units01[1],(AngleBetweenPoints(udg_locations33[1],udg_locations32[1])+180.),0)
call RemoveLocation(udg_locations33[1])
call RemoveLocation(udg_locations32[1])
endfunction
JASS:
function Trig_PlayerX01_Actions takes nothing returns nothing
set udg_locations33[1]=GetUnitLoc(udg_units01[1])
set udg_locations32[1]=GetOrderPointLoc()
call SetUnitFacingTimed(udg_units01[1],(AngleBetweenPoints(udg_locations33[1],udg_locations32[1])+0.),0)
call RemoveLocation(udg_locations33[1])
call RemoveLocation(udg_locations32[1])
endfunction
Thanks for the help!
BTW hehe nice smilies you've got here!
Last edited: