HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

JASS expert needed

07-15-2003, 01:51 PM#1
ChronOmega
i was browsing through common.j and found something of intereset

Quote:
//===================================================
// Frozen Throne Expansion Events
// Need to be added here to preserve compat
//===================================================

//===================================================
// For use with TriggerRegisterGameEvent
//===================================================

constant gameevent EVENT_GAME_LOADED = ConvertGameEvent(256)
constant gameevent EVENT_GAME_TOURNAMENT_FINISH_SOON = ConvertGameEvent(257)
constant gameevent EVENT_GAME_TOURNAMENT_FINISH_NOW = ConvertGameEvent(258)
constant gameevent EVENT_GAME_SAVE = ConvertGameEvent(259)

//===================================================
// For use with TriggerRegisterPlayerEvent
//===================================================

constant playerevent EVENT_PLAYER_ARROW_LEFT_DOWN = ConvertPlayerEvent(261)
constant playerevent EVENT_PLAYER_ARROW_LEFT_UP = ConvertPlayerEvent(262)
constant playerevent EVENT_PLAYER_ARROW_RIGHT_DOWN = ConvertPlayerEvent(263)
constant playerevent EVENT_PLAYER_ARROW_RIGHT_UP = ConvertPlayerEvent(264)
constant playerevent EVENT_PLAYER_ARROW_DOWN_DOWN = ConvertPlayerEvent(265)
constant playerevent EVENT_PLAYER_ARROW_DOWN_UP = ConvertPlayerEvent(266)
constant playerevent EVENT_PLAYER_ARROW_UP_DOWN = ConvertPlayerEvent(267)
constant playerevent EVENT_PLAYER_ARROW_UP_UP = ConvertPlayerEvent(268)

//===================================================
// For use with TriggerRegisterPlayerUnitEvent
//===================================================

constant playerunitevent EVENT_PLAYER_UNIT_SELL = ConvertPlayerUnitEvent(269)
constant playerunitevent EVENT_PLAYER_UNIT_CHANGE_OWNER = ConvertPlayerUnitEvent(270)
constant playerunitevent EVENT_PLAYER_UNIT_SELL_ITEM = ConvertPlayerUnitEvent(271)
constant playerunitevent EVENT_PLAYER_UNIT_SPELL_CHANNEL = ConvertPlayerUnitEvent(272)
constant playerunitevent EVENT_PLAYER_UNIT_SPELL_CAST = ConvertPlayerUnitEvent(273)
constant playerunitevent EVENT_PLAYER_UNIT_SPELL_EFFECT = ConvertPlayerUnitEvent(274)
constant playerunitevent EVENT_PLAYER_UNIT_SPELL_FINISH = ConvertPlayerUnitEvent(275)
constant playerunitevent EVENT_PLAYER_UNIT_SPELL_ENDCAST = ConvertPlayerUnitEvent(276)

//===================================================
// For use with TriggerRegisterUnitEvent
//===================================================

constant unitevent EVENT_UNIT_SELL = ConvertUnitEvent(286)
constant unitevent EVENT_UNIT_CHANGE_OWNER = ConvertUnitEvent(287)
constant unitevent EVENT_UNIT_SELL_ITEM = ConvertUnitEvent(288)
constant unitevent EVENT_UNIT_SPELL_CHANNEL = ConvertUnitEvent(289)
constant unitevent EVENT_UNIT_SPELL_CAST = ConvertUnitEvent(290)
constant unitevent EVENT_UNIT_SPELL_EFFECT = ConvertUnitEvent(291)
constant unitevent EVENT_UNIT_SPELL_FINISH = ConvertUnitEvent(292)
constant unitevent EVENT_UNIT_SPELL_ENDCAST = ConvertUnitEvent(293)

does this mean we can use tese function in RoC (which is the version i have)? if we can how would it be implemented? could it be put into the GUI?

thx in advance
07-15-2003, 02:02 PM#2
DaKaN
The only way to really know is to insert that data into a map and test it. However I do not think it will work for RoC might not have the proper code in the game.dll to use these varibles.

Know that what you see here is just variable definition. It does not mean that RoC has the ability to use these varibles in game.
07-15-2003, 02:08 PM#3
ChronOmega
the reason i posted this here is because i dont know how to insert these functions, so i need someone else to either show me how or to do it for me
07-15-2003, 02:16 PM#4
DaKaN
well wait. you said you found these in the RoC 1.10 common.j?

If so you do not need to insert them. However, it would take editing the TriggerData.txt and TriggerStrings.txt to add them to WE. But like i said before. I do not think that RoC has the ability to use the TFT functions.

"// Frozen Throne Expansion Events
// Need to be added here to preserve compat
"
07-15-2003, 02:25 PM#5
ChronOmega
yes i found these in RoC 1.10 common.j and ive come here to bring it to your guys's attention so some one could figure it out because i dont have the experiance to do this, maybe scio or fyredaug could try this, i know htere exsperianced at editing the we
07-15-2003, 03:46 PM#6
AIAndy
Before doing anything like adding it to WE, try to use it in custom text and look if it works. So for example register a spell cast event, display something as action and tell us if it worked.
07-15-2003, 09:19 PM#7
ChronOmega
i dont know enough JASS to do that... :(