Jump to content


Photo

How to get explosive mine to explode via Script?


  • Please log in to reply
7 replies to this topic

#1 B1tchFight

B1tchFight
  • New Members
  • 4 posts

Posted 21 May 2020 - 10:49 AM

Hey guys, this might be a simple question. I am playing around with the world builder a little bit just for fun. I downloaded some maps and checked their scripts and it seems pretty simple. After a few hours I understood the mechanic since I am used to it from other games in similar ways (Empire Earth) 

 

I like to build my own version of Helms Deep (I know, old story I think) In fact most of my scripts are working just fine. Spawns, units, Teams, attack priority, ladders, towers, gates and all that fancy stuff. 

 

I have one problem I can't mange to get to work. Trying it for 2 days now. 

 

How to get the explosive mine to blow up after placing? I have 4 scripts

 

1. Spawn + Move mine

2. Place Mine and activate spawn of Berserker

3. Spawn Berserker and move them to the mine

4. face them to the mine, light the torch, and "use special ability detonate mine"

 

The mine and the Berserker are set up team PlyrCivilian. 

 

Fun fact: If I set the mine to a different team that is a enemy, it works. But PlyrCivilian will attack the Mine on the way in this case. I also tried to use workarounds: After placing of the Mine, change team to different player - no success.

 

So basically my understanding and use of the scripting works... Just the player seem to be the issue.

 

btw.: I also tried to copy the scripts from a working custom map. Similar teams, triggers and stuff. 

 

Any hint or idea how to light the candle? 


Edited by B1tchFight, 21 May 2020 - 10:50 AM.


#2 seemann

seemann
  • Members
  • 231 posts
  • Location:Bucharest

Posted 21 May 2020 - 01:14 PM

yeah, Civilian works funny sometimes. Since you need this just once i could suggest a workaround, like making an archer unit that has fire upgrade shoot the mine. Any fire damage should ignite it.

 

if 

    condition

then

    unit x stats attacking unit mine   (make sure that x and mine are enemies)

 

I remember back in the bfme1 days when the Balrog blew fie on the gate where there were a couple of casual mines left :p kabooooom


Apocaliptica & Nina Hagen - seemann

#3 B1tchFight

B1tchFight
  • New Members
  • 4 posts

Posted 21 May 2020 - 02:31 PM

Thanks for your Reply.

 

Sorry, I should have mentioned that I just attempt to copy Helms deep. I will turn it into a kind of Endless horde Map. A winning Condition is optional. 

 

With this in mind, I need a reliable loop. (The loop is no problem) I already have them valid for other units. I just need the "boom". Do you think another team works better? Like "player 8"?  I will test it with a mini version right away. 

 

 

With a current gen PC BFME II can support up to 200+ hordes.  I already tried it with basic Uruks.   



#4 seemann

seemann
  • Members
  • 231 posts
  • Location:Bucharest

Posted 21 May 2020 - 06:10 PM

ok then, 2 suggestion: one - open the official Helm's Deep map and see how EA did it (it should be in the maps.big file inside the game's folder. You extract it with FINAL.big). You can also try downloading other mapper's helm's deep maps and see how they did it, there should be a ton of them; and second - just set the bombs on fire in any way (fire arrows, fire spells like Saruman's fireball, balista fire-projectiles, dragon breath or even ignite the terrain should work).

 

Player 8 should work but you need to instruct the user to always put an enemy player in player8 spot .. i don't like that ..


Apocaliptica & Nina Hagen - seemann

#5 B1tchFight

B1tchFight
  • New Members
  • 4 posts

Posted 21 May 2020 - 07:06 PM

Thanks for the hint with the original Map. but to be honest. As I said above. I downloaded a working custom Map and basically copied the script including areas, waypoints and stuff. All but the Reenable trigger since it shall work once before I loop it. And it wasn't working like the custom map I investigated.  I think it's because any hidden setting or trigger i can't find a relation to. 



#6 seemann

seemann
  • Members
  • 231 posts
  • Location:Bucharest

Posted 22 May 2020 - 11:53 AM

another thing: try to use PlayerCreeps instead of Civilian. Civilian is more a neutral (non-combat) faction but Creeps might work.


Apocaliptica & Nina Hagen - seemann

#7 B1tchFight

B1tchFight
  • New Members
  • 4 posts

Posted 24 May 2020 - 08:25 AM

I found a solution. Maybe you have a hint for another point. 

 

I try to increase the HP for certain teams I spawn on the enemy site. It looks like you can only change these using Level and Unit Upgrades.  Only placed units have a HP multiplier it seems. 



#8 JUS_SAURON

JUS_SAURON

    El Shaddai

  • Members
  • 1,581 posts
  • Location:Trinidad
  • Projects: BFME2 MOD - Power Of The Ring
  •   INI Coder

Posted 28 May 2020 - 02:19 AM

good luck with this 

Also do a Minas Tirith if you can 






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users