|
|
|
|
|
River_God
Member
Offline
Posts: 184
|
|
« Reply #5 on: November 16, 2008, 03:28:20 PM » |
|
ok, I get the whole send message thing, and the end globals to end it. What I don't get yet are the triggers themselves. Blood sport is all very nicely complicated, I can get the gist of what is going on, but there is no basic trigger I can learn from.
So, for the specific questions, I have to use the tr - trigger code yes? that I can find in the Type test? Then, to make a trigger, do I need to stick it in a function that I have to call? or can I just call up an effect if I don't want any conditions? For example:
AddXS("trChatSend(0, \"Made by River_God\");");
I know this is a little specific to AoE, but this above should be working for me and it isn't.
|
|
|
Logged
|
"I am not sure why people are so afraid of new ideas, I am afraid of the old ones" :p
|
|
|
|
|
|
|
|
|
|
River_God
Member
Offline
Posts: 184
|
|
« Reply #13 on: November 26, 2008, 12:16:38 PM » |
|
I didn't have any other triggers. But I will try that to see if they do. This was my code: void AddTriggerCode(string code="") { rmAddTriggerEffect("Send Chat"); rmSetTriggerEffectParam("Message", "*/"+code+"/*", false); } void InjectXS() { int id = rmCreateTrigger("DeclareGlobalsStart"); rmSwitchToTrigger(id); rmSetTriggerActive(false); rmAddTriggerEffect("Send Chat"); rmSetTriggerEffectParam("Message", "\"); }} /*", false); AddTriggerCode("true; trChatSend(0, \"hmmmm\");");
rmAddTriggerEffect("Send Chat"); rmSetTriggerEffectParam("Message", "*/ rule _DeclareGlobalsEnd inactive { if (1==1) { trChatSend(0, \"", false); }
then in the main:
InjectXS();
|
|
|
Logged
|
"I am not sure why people are so afraid of new ideas, I am afraid of the old ones" :p
|
|
|
|