You must be logged in to post messages.
Please login or register

Scenario Design
Moderated by Yeebaagooon, TAG

Hop to:    
Welcome! You are not logged in. Please Login or Register.8 replies
Age of Mythology Heaven » Forums » Scenario Design » Howto invoke Earthquake?
Bottom
Topic Subject:Howto invoke Earthquake?
Gnork
Mortal
posted 11 December 2002 01:40 PM EDT (US)         
Hi!

I want to invoke an Earthquake on a certain point at the map. How can I achieve this? I tried to add another player and grand him godpower to do it, but it won't work

Plz help!

AuthorReplies:
DarkKnight_
Mortal
(id: PW_DarkKnight)
posted 11 December 2002 02:00 PM EDT (US)     1 / 8       
1) Grant the god power to the player 1st.

2) The area that it will be casted must be within the LOS of the player. A good way to do this is to use vision at that spot before EQ is used.


DK
Gnork
Mortal
posted 16 December 2002 08:46 AM EDT (US)     2 / 8       
In your suggestion, is Player 1 set to a CPU or human player who takes care of this? Until now I tried to add a 4th cpu player for the trick but that won't work.

I don't mind granting and using a godpower to a human player, but when he/she advances to a next age it will happen that the last GodPower will be unavailable to that player, cause of insufficient GP slots on top. Killing all Godpowers before granting earthquake isn't nice either (player would loose all his GP's just cause I want gaia to have an earthquake invoked somewhere on the map), so I hope there's a way to just kill the used GP slot, not the whole series. Anyone?

Or is it a fact that Player 1 should always be the cpu player taking care of extra effects? Killing godpowers for cpu would be good enough...

Gnork
Mortal
posted 16 December 2002 09:08 AM EDT (US)     3 / 8       
Hmmm... reading in the forums... should this be a good way to invoke earthquake?

players: 3 human, 4th cpu.

invoke gp: do a vision spell first with player 4 so area gets revealed, then do earthquake with player 4 on that area

if player 4 needs to see the map b4 he can do a spell on it, this should solve my problem i guess?

TwentyOneScore
Mortal
posted 16 December 2002 10:19 AM EDT (US)     4 / 8       
You want to grant the power to player 0 - Here's a nice function:

void WallopArea(float x = 0.0,float z = 0.0, string powername="") {
if (powername=="") {
int i = rmRandInt(1,3); // RANDOM
if (i==1) powername = "Earthquake";
if (i==2) powername = "Meteor";
if (i==3) powername = "Forest Fire";
}
rmAddTriggerEffect("Grant God Power");
rmSetTriggerEffectParamInt("PlayerID",0);
rmSetTriggerEffectParam("PowerName","Vision");
rmSetTriggerEffectParamInt("Count",1);
rmAddTriggerEffect("Invoke God Power");
rmSetTriggerEffectParamInt("PlayerID",0);
rmSetTriggerEffectParam("PowerName","Vision");
rmSetTriggerEffectParam("DstPoint1",x+",0,"+z);
rmAddTriggerEffect("Grant God Power");
rmSetTriggerEffectParamInt("PlayerID",0);
rmSetTriggerEffectParam("PowerName",powername);
rmSetTriggerEffectParamInt("Count",1);
rmAddTriggerEffect("Invoke God Power");
rmSetTriggerEffectParamInt("PlayerID",0);
rmSetTriggerEffectParam("PowerName",powername);
rmSetTriggerEffectParam("DstPoint1",x+",0,"+z);

//rmAddTriggerEffect("Send Chat");
//rmSetTriggerEffectParamInt("PlayerID",0);
//rmSetTriggerEffectParam("Message","Striking At x,z !" + x + " : " + z);
}


Then in your main() routine call it like so:

float jj=.5;
float kk=.5;
rmCreateTrigger("eruptvolcano1");
rmSwitchToTrigger(rmTriggerID("eruptvolcano1"));
WallopArea(jj,kk);

This will strike with a random volcano-type effect at the center of the map.

call it like so to specify the effect:

WallopArea(jj,kk,"earthquake");

To see this in all it's glory look at my RM called EscapeMonkeyIsland - at
EscapeMonkeyIsland.com

This RM has a center volcano (doesn't everyone?) that erupts in 5 seperate cycles randomly striking around the map and on the 5th hitting each players tc directly - at about the 30min mark.

Go luck.


"Just invite him over for dinner. Turn him from an enemy into a friend. Then when he's least expecting, BAM! The old fork in the eye!" - M.S.
--
Member Tsunami Studios <<< Play TOS Maps - 9 Maps - Avg Rating: 4.67! >>>
Cannibal Shadow
Mortal
posted 16 December 2002 05:12 PM EDT (US)     5 / 8       
I think he's talking about a scenario, not a random map.
Gnork
Mortal
posted 18 December 2002 09:33 AM EDT (US)     6 / 8       
yeah, i am talking about a scenario....


btw, i played escape from monkey island with some folks, but all we see is timers counting down... nothing happened after that?

[This message has been edited by Gnork (edited 12-18-2002 @ 09:34 AM).]

TwentyOneScore
Mortal
posted 18 December 2002 11:01 AM EDT (US)     7 / 8       
Nothing happened because you were playing Multiplayer - which for some stupid reason does not allow any of the "good" triggers to work. BOO!

Play it alone and it should work fine.


"Just invite him over for dinner. Turn him from an enemy into a friend. Then when he's least expecting, BAM! The old fork in the eye!" - M.S.
--
Member Tsunami Studios <<< Play TOS Maps - 9 Maps - Avg Rating: 4.67! >>>
Gnork
Mortal
posted 18 December 2002 12:09 PM EDT (US)     8 / 8       
That sux

SOOOO when is 1.03 patch coming out?.......

You must be logged in to post messages.
Please login or register

Hop to:    

Age of Mythology Heaven | HeavenGames