2 ai characters, one is a quest giver the other is someone to rescue.
I' having trouble figuring out what to do with this winzone...it just sends a level complete.
I need a special script in it with 2 set global variables where i can say in my winzone_map1.lua ?? :
function winzone_map1_init(e)
end
function winzone_map1_main(e)
if g_Entity[e]['plrinzone']==1 then
if johnnyslapped == 1 and girlembarrassed == 1 then
JumpToLevelIfUsed(e)
end --johnny slapped if closer
end --if player is indeed within this zone closer
end -- function winzone_map1closer
are those simple things actually globals??? I mean, i'm a noob starting to hopefully understand this stuff but if those 2 global variables are set to 1 from 2 different scripts, is this going to work?
or is this better:
function winzone_map1_init(e)
end
function winzone_map1_main(e)
if g_Entity[e]['plrinzone']==1 and johnnyslapped == 1 and girlembarrassed == 1 then
JumpToLevelIfUsed(e)
end --if player is indeed within this zone/johhny got slapped/girl got embarrassed closer
end --function winzone_map1closer
Or would both work....and if so, which one is more efficient.
I just dont know how many logical ANDs, or any other for that matter, can be used in one if statement. Woudl be nice to know this one.
Thanks in advanced.
The only stupid questions are those that were never asked.