Jump to content


Photo

Map script for victory?


  • Please log in to reply
14 replies to this topic

#1 fistersn

fistersn
  • Members
  • 20 posts
  • Location:Norway

Posted 07 March 2008 - 01:00 PM

It is possible to make a script that make it possible to start a map without porters in a wotr map?
Now I will be defeated if I start a map without buildings and porters.
I will like so make a script how says that you only loose the game if there is no units left.

#2 m@tt

m@tt

    #######

  • Project Team
  • 4,056 posts
  • Location:England
  • Projects:The Dwarf Holds
  •  T3A Chamber Member

Posted 07 March 2008 - 01:47 PM

Create a map.ini file for the map, and add in

PlayerTemplate FactionDwarves
	StartingUnit1 = NONE
	StartingUnitOffset1 = X:30 Y:215 Z:0
	
	StartingUnit0 = NONE
	StartingUnitOffset0 = X:1 Y:120 Z:0
End

for each of the factions. I think that's how it's done.

And if you want to start without a fortress, use a beacon instead of a waypoint for the Player_X_Start starting points.
Posted Image

#3 fistersn

fistersn
  • Members
  • 20 posts
  • Location:Norway

Posted 07 March 2008 - 09:28 PM

I have found a code in playertemplate.cfg, that will remove the porters.

StartingUnitTacticalWOTR		= None		;// This unit is placed in tactical mode when playing WOTR. Add multiple lines for multiple units.
	StartingUnitTacticalWOTR		= None

For now the player imminently loose the game. So what I need is a script for that a player doesn't loose before all units is killed, any idea?

Edited by fistersn, 08 March 2008 - 10:00 PM.


#4 fistersn

fistersn
  • Members
  • 20 posts
  • Location:Norway

Posted 11 March 2008 - 02:47 PM

I have played with the script function in world builder for a while no, with no success.
Aren't there any good tutorial for this? The Video Tutorial links dosen't work.

I want a player to be defeated when all units is killed and not when the porters and buildings is destroyed.

#5 Thorongil45

Thorongil45
  • Members
  • 173 posts

Posted 11 March 2008 - 05:49 PM

i'll check scripts and get back to you if i find a script like that.
Posted ImagePosted Image Posted Image Posted Image
Posted ImagePosted Image
Posted ImagePosted Image
Posted Image Posted Image

#6 fistersn

fistersn
  • Members
  • 20 posts
  • Location:Norway

Posted 11 March 2008 - 06:35 PM

Thanks.. :p

Maybe I can add a fortress for each faction outside the map itself?
And have a script saying that the fortress for a player will be destroyed if all units is killed.
Will that work for a wotr map?

#7 m@tt

m@tt

    #######

  • Project Team
  • 4,056 posts
  • Location:England
  • Projects:The Dwarf Holds
  •  T3A Chamber Member

Posted 11 March 2008 - 06:39 PM

Like I said earlier, use a beacon instead of a waypoint and a fortress wont be built. You can then (I think) specify through scripts to say how teams should lose.
Posted Image

#8 fistersn

fistersn
  • Members
  • 20 posts
  • Location:Norway

Posted 11 March 2008 - 07:52 PM

I don't need to start without fortress (In wotr mode, the players often starts without a fortress).
My issues is to start without buildings and porters, and then don't be defeated.

#9 fistersn

fistersn
  • Members
  • 20 posts
  • Location:Norway

Posted 15 March 2008 - 07:08 PM

Oki. If a players starts with a fortress outside the map, how can I make a script that says that this fortress shall be destroyed when all of the players units is kileld?

#10 m@tt

m@tt

    #######

  • Project Team
  • 4,056 posts
  • Location:England
  • Projects:The Dwarf Holds
  •  T3A Chamber Member

Posted 15 March 2008 - 07:29 PM

Create a polygon covering the whole map, but make sure the fortress isn't in it, and name it ABC or whatever

IF
Player_X has no units in area ABC
THEN
Kill Player_X

Or something like that.
Posted Image

#11 fistersn

fistersn
  • Members
  • 20 posts
  • Location:Norway

Posted 15 March 2008 - 07:34 PM

Oki thanks, are I suppose to assaing the fortress to Player_1 or skrimishMen/teamSkirmishMen ?

#12 fistersn

fistersn
  • Members
  • 20 posts
  • Location:Norway

Posted 15 March 2008 - 08:02 PM

Have worked it out now. The fortress should be assaigned to Player_1, Player_2 and so on.

I am no not deafeted, my problem now is that the player is not killed

My script

IF
Player'<This Player'>has dosen't have units in are 'Kart'
Actions if true
All of player'<This Player'>"buildings and units are dealt a lethal amount of damage
Actions if false
Null operation

I also need help with how to disable buildings for the computer players.

Edit: 16.03-08: I have fixed the defeat code. My problem now is to avoid the computer players to be defeated when they dosen't have any buildings left. How can I do that?

Edited by fistersn, 16 March 2008 - 12:04 AM.


#13 fistersn

fistersn
  • Members
  • 20 posts
  • Location:Norway

Posted 18 March 2008 - 12:38 PM

Is there none how can help me with this issues?

#14 fistersn

fistersn
  • Members
  • 20 posts
  • Location:Norway

Posted 19 March 2008 - 06:26 PM

How does I assaign objects to a computer player?

#15 fistersn

fistersn
  • Members
  • 20 posts
  • Location:Norway

Posted 09 May 2008 - 11:04 AM

I have had a pause from this modifications, as I diden't managed to solve this issues. So I now try again.

The problem what I have is, that in a "War of the ring mode, map" all ai players that come inn to the map without any building are been defeated. I have solved this problem for the human players, as I added a fortress for each player outside the map.

How can I solve this for the ai players?




2 user(s) are reading this topic

0 members, 2 guests, 0 anonymous users