HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Syntax Questions (simple enough)

08-13-2002, 06:42 AM#1
Guest
1) String + String: Are the strings combined with a space in between or not? If I eg. have the strings "(Triggering Player)" and "is a team killer!" - do I have to add a " " to the beginning of the second string or will it put the space as seperator on its own?

2) Player - For (Player), turn Shared vision Off toward (OtherPlayer): Does this make (Player) or (OtherPlayer) not see what the other player sees? I wasn't able to figure this out yet - who doesn't see what?

Answers?
08-13-2002, 07:01 AM#2
Newhydra
1)If string 1 was "Hi" and string 2 was "Bye" displaying string 1 + string 2 would display "HiBye"

2)From the sounds of the trigger it would make the first player listed turn off shared vision with the second player. But I haven't tested it so I can't be sure...
08-13-2002, 07:30 AM#3
Guest
Hm... yeah.
In my RPG you have shared vision with all computer owned allies (=NPCs) in a city once you reach it and loose it once you kill more than three of their units (funny as it should actually botch the alliance with 3 kills, not 4 - even setting the 3 kills to 2 kills didn't have any effect). As the NPCs are owned by two different players (player 3 for the 'active' NPCs - like the units patrolling way points - and player 11 for the idle NPCs), I ended up making them all owned by player 11 by default (no shared vision) and giving the idle ones to player 3 on contact (shared vision) while giving the remaining units of player 11 in that region shared vision with the player. Somehow they stopped patrolling when I just gave them all to the new player...

Oh, well. Works fine now.

The waypoints are randomized - cities have streets and each corner or crossway has a way point (=3x3 region). Per trigger every entering unit is being sent to one of the available directions.
EX:
....||_
....| _
....||
A typical "T" Cross. On entering this crossing a trigger containing an IF action is fired up:
If Random number (1 to 3) Equal to 1, then Issue order Move to North WP to Triggering unit, else (If Random number (1 to 2) Equal to 1, then Issue order Move to East WP to Triggering unit, else Issue order Move to South WP to Triggering unit).

Of course a unit can walk back to where it came this way, but that's fine with me. It's just for having soldiers patrol the streets. Wondering why nobody else used this method yet.