- Joined
- Feb 9, 2009
- Messages
- 64
Hi im making a map that got moderated. ap0calypse sent me a trigger that could differentiate whether a player is playing offline or online. The point of this trigger is to create different start units for player 2 if offline, but create a wisp at a specified area if online. Here is the trigger that he sent me:
Game Cache - Create a game cache from SinglePlayer.w3v
Custom Script: if ( SaveGakeCache(bj_lastCreatedGameCache) == true) then
Set SingleMultiPlayer = 1
Custom Script: else
Set SingleMultiPlayer = 2
Custom Script: endif
First, I can't find "Set SingleMultiPlayer = (1,2)"
Second, WorldEditor keeps on disabling the trigger because this keeps popping up:
Script Errors
Line 97: Expected a name
Line 100: Expected a code statement
Line 101: Expected a code statement
Please help!
Game Cache - Create a game cache from SinglePlayer.w3v
Custom Script: if ( SaveGakeCache(bj_lastCreatedGameCache) == true) then
Set SingleMultiPlayer = 1
Custom Script: else
Set SingleMultiPlayer = 2
Custom Script: endif
First, I can't find "Set SingleMultiPlayer = (1,2)"
Second, WorldEditor keeps on disabling the trigger because this keeps popping up:
Script Errors
Line 97: Expected a name
Line 100: Expected a code statement
Line 101: Expected a code statement
Please help!