Jump to content


Photo

Script problem


  • Please log in to reply
15 replies to this topic

#1 Shitman

Shitman
  • Members
  • 84 posts
  • Location:Greece
  •  Now registered as Silent Death

Posted 29 August 2007 - 01:36 PM

Hey i do not how to add time to my maps.You know when the time expires some units get in the map.Something like that.One of my friends told me that i can do this with scripts.But i still do not know how.Can anyone help me please???????????????????????????????????????? :) :sad: :sad: :sad: :sad: :sad: :sad: :sad:

Edited by Shitman, 29 August 2007 - 04:52 PM.


#2 Grizzlez

Grizzlez

    title available

  • Project Team
  • 667 posts
  • Location:England
  •  Coder/ini/FX writer, Skinner

Posted 29 August 2007 - 03:43 PM

if you bothered to look at scripts you could figure it out easily on your own, it took me about 10 misn to realuise how it was all done, also making a topic title I NEED HELP is pointless, if you said script tiemr problems or something then experienced scripters would see it and help
Posted Image
Posted Image
Posted Image
Posted Image

Posted Image

#3 m@tt

m@tt

    #######

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

Posted 29 August 2007 - 04:01 PM

Agreed. I bet you haven't even tried.

But as we're here to help:

Scripts > New Script > IF True, THEN set timer to expire in x seconds.
New Script > IF timer y has expired THEN spawn unit at waypoint z.
Posted Image

#4 Shitman

Shitman
  • Members
  • 84 posts
  • Location:Greece
  •  Now registered as Silent Death

Posted 29 August 2007 - 04:32 PM

I am a newbi here which means still looking solutions to problems.I just couldn't find it.What's the big deal?You shouldn't tell me these bad things.Thanks though.If i hadn't tried i would just had asked.Ok?

Edited by Shitman, 29 August 2007 - 05:16 PM.


#5 Shitman

Shitman
  • Members
  • 84 posts
  • Location:Greece
  •  Now registered as Silent Death

Posted 29 August 2007 - 04:57 PM

As you can see i changed the pointless topic name and i need some more help i you do not mind.I created new script and i left IF TRUE as it is.When i found ''set timer??? to expire in 0.00??? seconds'' i had to change the seconds and the timer???.I do not know what to write at timer???.Can you help me again.





A friend of mine told me that at the timer???, which i have to change, i need to type the name of the timer i have already made with another script.You did not mention something like that.Can you help me again?Meanwhile i will try to find out by myself.If i will i will post it here.

Edited by Shitman, 29 August 2007 - 05:26 PM.


#6 m@tt

m@tt

    #######

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

Posted 29 August 2007 - 06:15 PM

You set the name of the timer in the first script :)
Posted Image

#7 Shitman

Shitman
  • Members
  • 84 posts
  • Location:Greece
  •  Now registered as Silent Death

Posted 29 August 2007 - 06:20 PM

You mean when i do this? Scripts > New Script > IF True, THEN set timer to expire in x seconds.If you mean that when i put a name for the timer it has a warning lower that it doesn't exist.

#8 m@tt

m@tt

    #######

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

Posted 29 August 2007 - 08:28 PM

I know, its just a bug. The next time you open the Scripts window, the error message will be gone.
Posted Image

#9 Shitman

Shitman
  • Members
  • 84 posts
  • Location:Greece
  •  Now registered as Silent Death

Posted 29 August 2007 - 10:56 PM

Are you kidding me?All this trouble for the bug?Anyway thanks i will give it a try.If anything goes wrong i will post it here.

#10 Shitman

Shitman
  • Members
  • 84 posts
  • Location:Greece
  •  Now registered as Silent Death

Posted 29 August 2007 - 11:14 PM

Hey it works.For 3 days i was trying to solve that problem.When i saw the warning i thought there was no point pressing ok.Thanks!!!!!!!!!

#11 HERRvonR0HAN

HERRvonR0HAN
  • Members
  • 81 posts
  •  {IP}HERRvonR0HAN

Posted 30 August 2007 - 08:17 AM

hi dudes ...

well i did the same but i think i made something wrong... but another question:

does ur timer show on the map?
cuz i can't see it ingame...
and if i have to do something for showing it ingame, pls tell me what :p

thx

#12 Shitman

Shitman
  • Members
  • 84 posts
  • Location:Greece
  •  Now registered as Silent Death

Posted 30 August 2007 - 10:22 AM

My timer is working as far as i know but i have the same question as you do.I can not see it.

#13 Guess Who

Guess Who

    title available

  • Project Team
  • 969 posts
  • Location:Australia, Sydney
  • Projects:Wars of The East, Project Siege
  •  2d Artist, Modeller, Skinner, Binder, Basic Coder, Learning Animating, mapping, fx coding.

Posted 30 August 2007 - 10:33 AM

good job :p just if i knew how to map but no point on me learning.
Posted Image Posted Image
My current projects: Wars of The East, Project Siege
--------------------------------------
99% Fat Free.

#14 Grizzlez

Grizzlez

    title available

  • Project Team
  • 667 posts
  • Location:England
  •  Coder/ini/FX writer, Skinner

Posted 30 August 2007 - 12:03 PM

there is a script for that, show timer blah blah or something
Posted Image
Posted Image
Posted Image
Posted Image

Posted Image

#15 {IP}WrathChild

{IP}WrathChild
  • Members
  • 30 posts
  • Location:Belgium

Posted 30 August 2007 - 04:03 PM

So


IF True

THEN
Set timer 'Timer1' to 10 seconds
Show Timer 'Timer1' with Localised string: 'Time left'


NOTE: U'll find show timer at the section 'Interface' => 'Counters And Timers' and with localised string you'll get MISSING: Time left in game. To erase that you will have to make a map.str file with notepad and write:

SCRIPT:TIMER01
"Time left"
END

then save ur file into the map folder and change 'Show Timer 'Timer1' with Localised string: 'Time left' ' to
'Show Timer 'Timer1' with Localised string:SCRIPT:TIMER01'


Hope I could be of any help :xcahik_:
Let him who hath understanding reckon the number of the beast
Posted Image
Posted Image

#16 Shitman

Shitman
  • Members
  • 84 posts
  • Location:Greece
  •  Now registered as Silent Death

Posted 30 August 2007 - 04:42 PM

Hey i have found a way to show the timer but you have given me more info that is useful.Thanks




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users