Results 1 to 6 of 6

Thread: scripting problems

  
  1. #1

    Default scripting problems

    I've just made a new map but I'm having scripting problems. I really could use some help on this. I'm trying to script the level so that when a wizard is killed a quick objective and the bridge becomes available but it doesn't work. What is the script command? Please help.

  2. #2

    Default Re: scripting problems

    You could try to make sure it is the only wizard on the map, and then use this command:

    Code:
    IF(PLAYER_GOOD,WIZARD==0)
    
    QUICK_OBJECTIVE(1,"You now have a bridge",ALL_PLAYERS) ROOM_AVAILABLE(PLAYER0,BRIDGE,1,1)
    ENDIF

  3. #3

    Default Re: scripting problems

    Quote Originally Posted by YourMaster View Post
    You could try to make sure it is the only wizard on the map, and then use this command:
    Code:
    IF(PLAYER_GOOD,WIZARD==0)
    QUICK_OBJECTIVE(1,"You now have a bridge",ALL_PLAYERS)ROOM_AVAILABLE(PLAYER0,BRIDGE,1,1)
    ENDIF
    Tried it with just one wizard, but the information and the bridge appear at the beginning of the level when the Wizard is still on the map. Any other suggestions?

  4. #4

    Default Re: scripting problems

    This can work, so either a mistake in my script, or how you've placed it. There are a few levels which have something similar, you can copy the script from those. Look at the gamescript of level 102 or 20 or something.

  5. #5

    Default Re: scripting problems

    You most likely haven't set his allegiance correctly.
    Go into item/thing mode and hover over the wizard. Press O until his allegiance is HERO.

    I'll bet it says he's unowned/unclaimed at the moment. The script is looking at it and going "Oh, there are no (HERO) Wizards left on the map, here's your bridge Mr Player, sir.

  6. #6
    Beetle Ecarus's Avatar
    Join Date
    Dec 2013
    Location
    Venezuela
    Posts
    108
    Gamer IDs

    Steam ID: ecarus333

    Default Re: scripting problems

    If the warlock isnt hero this wont work, you have to correct it into the warlock correct allegiance.

    If he is of the blue keeper then you have to write player0 instead of player_good.

Similar Threads

  1. Camera scripting
    By Hades in forum KeeperFX
    Replies: 1
    Last Post: February 8th, 2013, 01:15
  2. Primary Jobs and scripting, question
    By Skyman in forum KeeperFX
    Replies: 3
    Last Post: January 1st, 2013, 22:10
  3. 2 Problems
    By Randy19 in forum DK1 Mapmaking
    Replies: 11
    Last Post: September 2nd, 2011, 09:31
  4. Replies: 32
    Last Post: January 17th, 2011, 06:15
  5. Replies: 4
    Last Post: January 9th, 2011, 14:46

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •