Jump to content


Photo

Disable Scripts - Not Working


  • Please log in to reply
22 replies to this topic

#1 DreamWar

DreamWar
  • Members
  • 23 posts

Posted 12 September 2015 - 07:35 AM

Hi.

I am trying to disable certain powers. The ones shown in the picture do work. (I am not able to use them in game). However, when I try to disable Elven Wood - it does not work, and I am able to use it. No matter what script I use, it doesn't get disabled Ideas?

(I do not play RotWK). I use BFME2 1.08.

 

Thanks in advance!

Also, how do I disable Fire Arrows from being researched?

Attached Thumbnails

  • Script.png


#2 Maximan

Maximan

    Some Dude

  • Hosted
  • 572 posts
  • Projects:BFME: Classic Edition

Posted 12 September 2015 - 09:10 AM

Instead of using 'This Player'  try using the actual players, like 'Player 1'


Edited by Maximan, 12 September 2015 - 09:11 AM.


#3 DreamWar

DreamWar
  • Members
  • 23 posts

Posted 12 September 2015 - 09:52 AM

Instead of using 'This Player'  try using the actual players, like 'Player 1'

 

I have tried that, no avail. Even 'All Players' doesn't seem to work.



#4 Maximan

Maximan

    Some Dude

  • Hosted
  • 572 posts
  • Projects:BFME: Classic Edition

Posted 12 September 2015 - 10:24 AM

Try looking inside the campaign maps in bfme 1, where abilities are disabled, or google the command, I think there's a different one than the one that you use. I distinctly remember using another one, but not what it was



#5 DreamWar

DreamWar
  • Members
  • 23 posts

Posted 12 September 2015 - 11:14 AM

Try looking inside the campaign maps in bfme 1, where abilities are disabled, or google the command, I think there's a different one than the one that you use. I distinctly remember using another one, but not what it was

 

I do not have BFME1.



#6 Maximan

Maximan

    Some Dude

  • Hosted
  • 572 posts
  • Projects:BFME: Classic Edition

Posted 12 September 2015 - 12:02 PM

**IF** True.
**THEN** Player ??? set Science SCIENCE_??? availability to Science availability to 'Disabled'.

 

is this how it looks for you? and is your script enabled without a timer on?



#7 DreamWar

DreamWar
  • Members
  • 23 posts

Posted 12 September 2015 - 01:38 PM

**IF** True.
**THEN** Player ??? set Science SCIENCE_??? availability to Science availability to 'Disabled'.

 

is this how it looks for you? and is your script enabled without a timer on?

Yes, that's how it looks.

No, I just copy the other 'disabled' science scripts and edit it as they seem to work fine.



#8 Maximan

Maximan

    Some Dude

  • Hosted
  • 572 posts
  • Projects:BFME: Classic Edition

Posted 12 September 2015 - 02:11 PM

Also to test if it's disabled, you don't force the player to start with the ability right?



#9 DreamWar

DreamWar
  • Members
  • 23 posts

Posted 13 September 2015 - 08:38 AM

Also to test if it's disabled, you don't force the player to start with the ability right?

No, I don't. It's optional. 



#10 Maximan

Maximan

    Some Dude

  • Hosted
  • 572 posts
  • Projects:BFME: Classic Edition

Posted 13 September 2015 - 09:11 AM

Try this: **THEN** Player ??? set Science SCIENCE_??? availability to Science availability to 'Hidden'.

 

Worked for me



#11 -SilverBane-

-SilverBane-

    Inactive Noob

  • Project Team
  • 474 posts
  • Location:Bucharest
  • Projects:Life
  •  Mapper & Coder

Posted 13 September 2015 - 06:51 PM

Try recreating the script. Sometimes they get corrupted and its nooo other way to fix them but re-writting them.


2qm3dd5.jpg


#12 DreamWar

DreamWar
  • Members
  • 23 posts

Posted 14 September 2015 - 03:30 AM

Try this: **THEN** Player ??? set Science SCIENCE_??? availability to Science availability to 'Hidden'.

 

Worked for me

I tried hidden as well. Did not work.

 

Try recreating the script. Sometimes they get corrupted and its nooo other way to fix them but re-writting them.

The entire script or just the one liner?



#13 Maximan

Maximan

    Some Dude

  • Hosted
  • 572 posts
  • Projects:BFME: Classic Edition

Posted 14 September 2015 - 03:04 PM

This works perfectly for me, it was also the ones used in the campaign. Maybe try to disable it in the map.ini?



#14 Bashkuga

Bashkuga

    Because good guys are too mainstream

  • Project Team
  • 2,039 posts
  • Location:On my way to besiege Minas Tirith
  • Projects:Age of the Ring Betatester and Mapper, Edain Mod Betatester
  •  Out of the frying pan, and into the fire..

Posted 14 September 2015 - 10:12 PM

For some reason I always had problems with scripting BFME2; it doesn't work as well as BFME1's. What are your "If" conditions? Perhaps the problem lies in there?



#15 -SilverBane-

-SilverBane-

    Inactive Noob

  • Project Team
  • 474 posts
  • Location:Bucharest
  • Projects:Life
  •  Mapper & Coder

Posted 15 September 2015 - 06:09 AM

Try recreating the script. Sometimes they get corrupted and its nooo other way to fix them but re-writting them.

The entire script or just the one liner?

 

Entire script


2qm3dd5.jpg


#16 DreamWar

DreamWar
  • Members
  • 23 posts

Posted 15 September 2015 - 06:21 AM

Untitled.png Untitled1.png

For some reason I always had problems with scripting BFME2; it doesn't work as well as BFME1's. What are your "If" conditions? Perhaps the problem lies in there?

***IF***

True

 

(Deleting the entire script did not work either).


Edited by DreamWar, 15 September 2015 - 06:24 AM.


#17 DreamWar

DreamWar
  • Members
  • 23 posts

Posted 15 September 2015 - 06:27 AM

This works perfectly for me, it was also the ones used in the campaign. Maybe try to disable it in the map.ini?

I am not sure how to do that.



#18 -SilverBane-

-SilverBane-

    Inactive Noob

  • Project Team
  • 474 posts
  • Location:Bucharest
  • Projects:Life
  •  Mapper & Coder

Posted 15 September 2015 - 09:51 AM

Check if the script is not disabled (by itself or by other scripts)


2qm3dd5.jpg


#19 Maximan

Maximan

    Some Dude

  • Hosted
  • 572 posts
  • Projects:BFME: Classic Edition

Posted 15 September 2015 - 01:47 PM

Ok try this, screenshot the Script Properties, change this player to the actual player while using "Hidden" instead of "Disabled"



#20 DreamWar

DreamWar
  • Members
  • 23 posts

Posted 16 September 2015 - 01:15 AM

Check if the script is not disabled (by itself or by other scripts)

It isn't. It's stand alone. I don't see anything that can disable the script.

 

aUntitled.png aaUntitled.png

 

Actual Player and hidden didn't work either.


Edited by DreamWar, 16 September 2015 - 01:25 AM.





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users