• 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.

Small yet important

Status
Not open for further replies.
Level 2
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!!

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
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*)
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
*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! :grin:
 
Last edited:
Status
Not open for further replies.
Top