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

Game Modifications
Moderated by alincarpetman

Hop to:    
Welcome! You are not logged in. Please Login or Register.1 reply
Rise of Nations Heaven » Forums » Game Modifications » Either I am really stupid or....
Topic Subject:Either I am really stupid or....
posted 09-15-19 11:18 PM EDT (US)         

if ( (ctw_get_player_nation() == "Russians") && ctw_is_vassal("Germans") && (ctw_get_master("Germans") == "Russians") )
warsaw_tax = get_num_tribute("Germans") * 30 / 100;
give_ctw_tribute("Germans", -warsaw_tax);
give_ctw_tribute("Russians", warsaw_tax);
popup_dialog(parse("Warsaw Pact contributes $d0 tribute.", warsaw_tax));

What is wrong with this? The script editor keeps saying syntax error when compiling. I cannot see any error.
Terikel Grayhair
(id: Terikel706)
posted 09-19-19 11:47 AM EDT (US)     1 / 1       
Usually an error is one too many parenthesis or a missing comma or such, but I could not see any of those in there, either.

Unless that first tab before the warsaw tax is screwing up the alignment, yet that should not have any effect.

|||||||||||||||| A transplanted Viking, born a millennium too late. |||||||||||||||||
|||||||||||||||| Too many Awards to list in Signature, sorry lords...|||||||||||||||||
|||||||||||||||| Listed on my page for your convenience and envy.|||||||||||||||||
Somewhere over the EXCO Rainbow
Master Skald, Order of the Silver Quill, Guild of the Skalds
Champion of the Sepia Joust- Joust I, II, IV, VI, VII, VIII

[This message has been edited by Terikel Grayhair (edited 09-19-2019 @ 11:48 AM).]

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

Hop to:    

Rise of Nations Heaven | HeavenGames