Install Steam
login
|
language
简体中文 (Simplified Chinese)
繁體中文 (Traditional Chinese)
日本語 (Japanese)
한국어 (Korean)
ไทย (Thai)
Български (Bulgarian)
Čeština (Czech)
Dansk (Danish)
Deutsch (German)
Español - España (Spanish - Spain)
Español - Latinoamérica (Spanish - Latin America)
Ελληνικά (Greek)
Français (French)
Italiano (Italian)
Bahasa Indonesia (Indonesian)
Magyar (Hungarian)
Nederlands (Dutch)
Norsk (Norwegian)
Polski (Polish)
Português (Portuguese - Portugal)
Português - Brasil (Portuguese - Brazil)
Română (Romanian)
Русский (Russian)
Suomi (Finnish)
Svenska (Swedish)
Türkçe (Turkish)
Tiếng Việt (Vietnamese)
Українська (Ukrainian)
Report a translation problem
Notice:
-Unlock of chat command for players is in Myth age
-This chat command activates a camera cut
-camera cut becomes visible for all players at the same time in game (no matter if they still have not unlocked the chat command).
- All players who have reached ( researched Myth age a.k.a. age 4) unlock the chat command and are able to control the camera cut function.
(Up til now I haven't found a way to cut the camera for individual players in multiplayer rms)
This custom trigger I made a while back is perfect for solving your problem:
<Condition name="Player Current">
<Param name="info" dispName="Info" VarType="string">Use to apply effects only to a particular player in multiplayer</Param>
<Param name="Param1" dispName="Player" VarType="player">1</Param>
<Expression>trCurrentPlayer() == %Param1%</Expression>
</Condition>
This is a custom condition so you need to inject it in - this piece of code will allow you to do that:
void con(string xs3="") {
rmAddTriggerCondition("Player Defeated");
rmSetTriggerConditionParam("PlayerID","0)||("+xs3+"));//");
}
To condition on player 1 put:
con("trCurrentPlayer() == 1");
Another little tip - you can insert triggers for all players in one go using a loop which will shorten your script and make it easier to edit - e.g.
for (i = 1; <= cNumberNonGaiaPlayers){
rmSwitchToTrigger(rmTriggerID("unlockbonusp"+i));
rmAddTriggerCondition("Timer");
rmSetTriggerConditionParamInt("Param1",2);
rmAddTriggerCondition("Tech Available");
rmSetTriggerConditionParamInt("PlayerID",i);
rmSetTriggerConditionParamInt("TechID",116);
rmAddTriggerEffect("Sound Filename");
rmSetTriggerEffectParam("Sound", "cinematics\15_in\gong.wav");
rmAddTriggerEffect("Sound Filename");
rmSetTriggerEffectParam("Sound", "\dialog\genr222.mp3");
rmAddTriggerEffect("Overlay Text");
rmSetTriggerEffectParamInt("Duration",11);
rmSetTriggerEffectParam("Text","In Mythical Age type GODVIEW in your chat! Zoom in again for normal view. This chat command is looping.");
rmAddTriggerEffect("Fire Event");
rmSetTriggerEffectParamInt("EventID", rmTriggerID("bonuscameracutp"+i));
rmSetTriggerPriority(0);
rmSetTriggerActive(false);
rmSetTriggerRunImmediately(false);
rmSetTriggerLoop(false);
}
I also have written a brief crash course to RMS trigger scripting you might find useful although you seem already pretty competent. :)
http://aom.heavengames.com/cgi-bin/forums/display.cgi?action=ct&f=13,29516,,10
Your above trigger would indeed solve the chat command per player thing. and yes i have seen that loop thing and knew what it did .....but as said no clue really how to get it working (the first experiments for these rms scripts date back to 2009 and this year i finally discovered that some stuff works if i place it at the top of the script or bottom hahahaha) So I understood that it was possible to shorten the script.....but because of my n00bness i decided it would be easier for me to just copy past it per player (to at least get it working)..p.s. yes your crash course guide is also handy
LoLz My main goal was to create a map for every god in the game ( or maybe 2 per god) but these issues killed a bit my motivation. ( there is still a map under construction for Set...it should take place at an Egyptian Necropolis)