| 03-04-2005, 05:25 PM | #91 |
2 things : 1 great FAQ, I am looking for the translation of russ sites... ( I am working with a russ on a map, and he is better than me ^_^ ...) 2 well... AI files that is a good joke, I have Adobe Illustrator so.... file.ai are files from Adobe Illustrator.... ^_^ If I don't watch out theses files are open with this program and it takes more times that with a text editor ^_^ And I have a question : There is a function to convert player to integer? It is easy to do... but if there is one... I don't have to ^_^ EDIT : I thinks you know how make a trigger? So make it in triiger and then use the trigger to custom text translator TRIGGER EVENT - A UNIT ENTERS <nameoftheregion> CONDITION - (Triggering unit) EQUALS <theunityouwant> ACTION - DISPLAY TO <yourplayergroup> for <time> seconds the text <yourtext> In custom text function Trig_D__clencheur_sans_titre_001_Conditions takes nothing returns boolean if ( not ( GetTriggerUnit() == <theunityouwant> ) ) then return false endif return true endfunction function Trig_D__clencheur_sans_titre_001_Actions takes nothing returns nothing call DisplayTimedTextToForce(<yourgroupeplayer >), <yourtime>, "TRIGSTR_024" ) endfunction //=========================================================================== function InitTrig_D__clencheur_sans_titre_001 takes nothing returns nothing set gg_trg_D__clencheur_sans_titre_001 = CreateTrigger( ) call TriggerRegisterEnterRectSimple( gg_trg_D__clencheur_sans_titre_001, <yourregion>l ) call TriggerAddCondition( gg_trg_D__clencheur_sans_titre_001, Condition( function Trig_D__clencheur_sans_titre_001_Conditions ) ) call TriggerAddAction( gg_trg_D__clencheur_sans_titre_001, function Trig_D__clencheur_sans_titre_001_Actions ) endfunction If someone could explain why ther is "TRIGSTR_024" it would be great... It seems like ti create a string... but how we can check that? |
