Page 2 of 2 FirstFirst 1 2
Results 11 to 18 of 18

Thread: Got an idea about time bomb spell, also having perhaps an issue

  
  1. #11

    Default Re: Got an idea about time bomb spell, also having perhaps an issue

    The issue you mentioned there is strange. No surprise it couldn't be reproduced, you probably have something strange in your script. I'd attach it to the issue for review.

  2. #12
    Spider UnknownMaster21's Avatar
    Join Date
    Jul 2010
    Location
    Finland
    Posts
    201

    Default Re: Got an idea about time bomb spell, also having perhaps an issue

    Quote Originally Posted by YourMaster View Post
    The issue you mentioned there is strange. No surprise it couldn't be reproduced, you probably have something strange in your script. I'd attach it to the issue for review.
    yeah, except no matter what did I do, it always get researched, maybe I need to upload a map ( once again ) to here to test it and see what is wrong...




    EDIT: BTW, I changed the map layout and script command, I stopped to use any spell book to having other meanings. However, I will use it on next time in next map ( simple, it has better simulation of time attacking)

    Also, your script code what did you post, did not have a timer in corner, just a blank. Anyway...


    EDIT2: I absolutely want to use the spell book mentioned in thread, so I leave some of levels as open and not finished yet. I am pretty sure the problem will be solved eventually

    EDIT3: Attached a map in issue tracker
    Last edited by UnknownMaster21; October 27th, 2014 at 10:25.

  3. #13

    Default Re: Got an idea about time bomb spell, also having perhaps an issue

    I've tested the map, and I can reproduce your issue. Did not expect that. See no reason for it to happen like this.

    The map has quite a few script issues though: You've used Sorcerer quite a few times, while DK expects "Sorceror". You've also had a typo in the objective ''ATTACK_ENEMIES', and you've used the objective 'DUNGEON_HEART' instead of 'ATTACK_DUNGEON_HEART'.

    Why with my code doesn't show the timer is because I also made a script error. I used '=' as a comparison, should be '==' or '>='. The below code does work:
    Code:
    REM Time to get POWER_HOLD_AUDIENCE
    SET_TIMER(PLAYER0,TIMER0)
    BONUS_LEVEL_TIME(80000)
    
    REM Stop timer when player has spell in library
    IF_AVAILABLE(PLAYER0,POWER_HOLD_AUDIENCE == 1)
    	SET_FLAG(PLAYER0,FLAG1,1)
    	BONUS_LEVEL_TIME(0)
    	QUICK_OBJECTIVE(20,"No more time limit",PLAYER0)
    ENDIF
    	
    REM When time is up without POWER_HOLD_AUDIENCE available, lose game.
    IF(PLAYER0,FLAG1 == 0)
    	IF(PLAYER0,TIMER0 >= 80000)
    		QUICK_OBJECTIVE(21,"Time is up. You failed to get on here in time, so you have been defeated!",5)
    		LOSE_GAME
    	ENDIF
    ENDIF
    
    REM When ACTION_POINT 5 is reached, win game and stop timer.
    IF_ACTION_POINT(5,PLAYER0)
    	BONUS_LEVEL_TIME(0)
    	WIN_GAME
    	QUICK_OBJECTIVE(21,"Praise",PLAYER0)
    ENDIF

  4. #14
    Spider UnknownMaster21's Avatar
    Join Date
    Jul 2010
    Location
    Finland
    Posts
    201

    Default Re: Got an idea about time bomb spell, also having perhaps an issue

    I did see something like that, but didn't thought enoughly.

    Oops! Yeah, that happens when a Warlock is not Warlock and so on... however, I will fix them after the work I have to go ( about right now )

    Also, I have to fix the script in all maps then, didn't thought it needs an ATTACK as well

    Thank you. You are saving alot of time for me.

    Anyway, I will try that script on next time on map ( But a lot shorter, so it does not take too much time to play, though)

    EDIT: Nice test :P

  5. #15

    Default Re: Got an idea about time bomb spell, also having perhaps an issue

    There's not much too test,... I open the script in notepad++, and immediately see all the typo's because of the syntax highlighting. Then if I run the map, I check the log, and that lists any errors you've missed. Just search for 'Error'.

  6. #16
    Spider UnknownMaster21's Avatar
    Join Date
    Jul 2010
    Location
    Finland
    Posts
    201

    Default Re: Got an idea about time bomb spell, also having perhaps an issue

    Quote Originally Posted by YourMaster View Post
    There's not much too test,... I open the script in notepad++, and immediately see all the typo's because of the syntax highlighting. Then if I run the map, I check the log, and that lists any errors you've missed. Just search for 'Error'.
    Sorry, I think you misunderstood a bit for sure, but I do not remember anymore what I was saying for lol


    Anyway, Thanks to you. I will make a good one on next map on my campaign by having using a script

  7. #17

    Default Re: Got an idea about time bomb spell, also having perhaps an issue

    Quote Originally Posted by UnknownMaster21 View Post
    yeah, except no matter what did I do, it always get researched, maybe I need to upload a map ( once again ) to here to test it and see what is wrong...
    Did you notice mefistotelis posted the solution? Remove this line from the script:
    Code:
    MAGIC_AVAILABLE(PLAYER0,POWER_SLAP,1,0)

  8. #18
    Spider UnknownMaster21's Avatar
    Join Date
    Jul 2010
    Location
    Finland
    Posts
    201

    Default Re: Got an idea about time bomb spell, also having perhaps an issue

    Quote Originally Posted by YourMaster View Post
    Did you notice mefistotelis posted the solution? Remove this line from the script:
    Code:
    MAGIC_AVAILABLE(PLAYER0,POWER_SLAP,1,0)

    Yes

Similar Threads

  1. Top 30 Games of All-Time
    By MeinCookie in forum Off Topic
    Replies: 59
    Last Post: February 11th, 2021, 13:58
  2. When was the last time you played DK or DK2?
    By Patrician in forum General Discussion
    Replies: 15
    Last Post: July 5th, 2013, 10:28
  3. Time Bomb spell.
    By friscmanseby in forum KeeperFX
    Replies: 2
    Last Post: September 19th, 2012, 05:38

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
  •