Sorry for asking again, but I took your suggestion and added a parenthesis to the end of the script.
I added one at the end first:
(script dormant legendarywave
(if (game_difficulty_get legendary)
(object_create_anew yghost1)
(vehicle_load_magic ghost1 driver (ai_actors wave5/driver1))
(vehicle_load_magic ghost1 passenger (ai_actors wave5/pas1))
(vehicle_load_magic ghost1 passenger1 (ai_actors wave5/pas2))
(object_create_anew yghost2)
(vehicle_load_magic ghost1 driver (ai_actors wave5/driver2))
(vehicle_load_magic ghost1 passenger (ai_actors wave5/pas3))
(vehicle_load_magic ghost1 passenger1 (ai_actors wave5/pas4))
(object_create_anew yghost3)
(vehicle_load_magic ghost1 driver (ai_actors wave5/driver3))
(vehicle_load_magic ghost1 passenger (ai_actors wave5/pas5))
(vehicle_load_magic ghost1 passenger1 (ai_actors wave5/pas6))
(object_create_anew yghost4)
(vehicle_load_magic ghost1 driver (ai_actors wave5/driver4))
(vehicle_load_magic ghost1 passenger (ai_actors wave5/pas7))
(vehicle_load_magic ghost1 passenger1 (ai_actors wave5/pas8))
)
(if
(not (game_difficulty_get legendary)
(game_won)
)
)
)But then I got this error:
[test_map line 65] i expected (if <condition> <then> [<else>]).: (if (game_difficulty_get legendary)
recompiling scripts after scenarios were merged.
this left parenthesis is unmatched.: (if (game_difficulty_get legendary)
Now I'm starting to think that the command has an error somewhere. That last parenthesis DID close up the script (I used Syntax Higlighting for Notepad++ in HCE Scripting language to confirm it).
PS: How do you show pictures on the forums?
Also, I recieved the Syntax Highlighter from here:
http://www.modacity.net/forums/showthread.php?t=20450EDIT: Alright, I've experimented with the (if (game_difficulty_get legendary) command. I think is must be the commmand itself now since I removed the (if (not.... command and closed up the script, and it still gave me the error in this post.
Can anyone tell me the correct command for checking a game's difficulty or anything else?
Thanks in advance.
Edited by shadowce9 on Mar 16, 2010 at 08:50 PMEdited by shadowce9 on Mar 16, 2010 at 08:51 PMEdited by shadowce9 on Mar 16, 2010 at 08:52 PMEdited by shadowce9 on Mar 18, 2010 at 06:01 PM