• 💀 Happy Halloween! 💀 It's time to vote for the best terrain! Check out the entries to Hive's HD Terrain Contest #2 - Vampire Folklore.❗️Poll closes on November 14, 2023. 🔗Click here to cast your vote!
  • 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • 🏆 HD Level Design Contest #1 is OPEN! Contestants must create a maze with at least one entry point, and at least one exit point. The map should be made in HD mode, and should not be openable in SD. Only custom models from Hive's HD model and texture sections are allowed. The only exceptions are DNC models and omnilights. This is mainly a visual and design oriented contest, not technical. The UI and video walkthrough rules are there to give everyone an equal shot at victory by standardizing how viewers see the terrain. 🔗Click here to enter!

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