SP & COOP in the same map
One way for SP & COOP to work in the same map is to determine the number of human players present with WAC script as follows
Example Extract:
if (humans == 1)
then set(v1,1)
endif
if (humans == 2)
then set(v1,2)
endif
if (humans == 3)
then set(v1,3)
endif
if (humans == 4)
then set(v1,4)
endif
if (humans == 5)
then set(v1,5)
endif
if (humans >= 6)
then set(v1,6)
endif
You can use elseif if you wish.
Other uses:
;COMPARE
;eq(#,#) true if #==#
;ne(#,#) true if #!=#
;lt(#,#) true if #<#
;gt(#,#) true if #>#
;le(#,#) true if #<=#
;ge(#,#) true if #>=#
;true(#) true if #!=0
;false(#) true if #==0
;MODIFY
;set(var,#) set var to #
;add(var,#) add # to var
;sub(var,#) subtract # from var, clamp at 0
;inc(var) add 1 to var
;dec(var) subtract 1 from var, clamp at 0
|