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

Scenario Design
Moderated by alincarpetman

Hop to:    
Welcome! You are not logged in. Please Login or Register.4 replies
Rise of Nations Heaven » Forums » Scenario Design » Disabling the Armageddon Clock
Bottom
Topic Subject:Disabling the Armageddon Clock
MrMew
Huskarl
posted 09-25-14 07:05 PM EDT (US)         
So I want to make a script to disable to armageddon clock so a map can be flooded with nukes. So far I found this:

//disable armageddon for all players
scenario {
run_once {
disable_type("armageddon");
print_game_msg("The armageddon clock has been disabled");
}
}

However it doesn't work. The clock still enables. Is there something wrong with this script or does it need looping or something?

Time of Tea
Still in the Dark Age
Don't be a melodramatic clown. ~Mr Wednesday
AuthorReplies:
MrMew
Huskarl
posted 09-25-14 09:36 PM EDT (US)     1 / 4       
Tried a new script I wrote and it worked. I'll also upload it to the downloads section.

//disable armageddon for all players
scenario {
run_once {
disable_type("armageddon");
print_game_msg("The armageddon clock has been disabled");
}
//Main script body.
set_timer("no armageddon clock",900);
if(timer_expired("no armageddon clock")){
disable_type("armageddon");
print_game_msg("15 min. Armageddon disabled");
}
set_timer("NoA",600);
if(timer_expired("NoA")){
disable_type("armageddon");
print_game_msg("10 min. Armageddon disabled");
}
set_timer("no clock",300);
if(timer_expired("no clock")){
disable_type("armageddon");
print_game_msg("5 min. Armageddon disabled");
}
}

Time of Tea
Still in the Dark Age
Don't be a melodramatic clown. ~Mr Wednesday
argwolffe
Member
posted 09-29-14 03:02 PM EDT (US)     2 / 4       
it gives me an error when I try to compile it. line 4
MrMew
Huskarl
posted 09-30-14 06:05 PM EDT (US)     3 / 4       
Hmmm... I'll look into it and see what I come up with.

Time of Tea
Still in the Dark Age
Don't be a melodramatic clown. ~Mr Wednesday
MrMew
Huskarl
posted 10-01-14 05:44 PM EDT (US)     4 / 4       
Was the error? Error: (Line 4): Syntax Error: Scenario
The only thing I can think of is that you copied the entire post by mistake including:
'Tried a new script I wrote and it worked. I'll also upload it to the downloads section.'
I compiled it a number of times and had no problems. Unless you unintentionally deleted part of the script.

Time of Tea
Still in the Dark Age
Don't be a melodramatic clown. ~Mr Wednesday

[This message has been edited by MrMew (edited 10-01-2014 @ 05:45 PM).]

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

Hop to:    

Rise of Nations Heaven | HeavenGames