creep battle

  • Thread starter Thread starter darkassaisin
  • Start date Start date
Tough call. I'd say no. Don't make the prize suck. Then there is no point of doing the battle. I think it would be best to modify it once its done, so that it creates harder creeps. All you need is an integer, lets say, 'modifier'.

When you enter the battle, it would say something like:

If Hero level >= 10
Set modifier=5
else
Set modifier=0

Then, in your map init, set Creeps[6]. Creeps[7] etc. to harder creeps.

Then in the spawn trigger, instead of saying Creeps[level], you would say Creeps[level+modifier]

But... get everything finalized and done first before hacking away at it.
 
k i tested it and i found another error about everything in the map is cheap i used cheat codes i could beat the battle and see if it all worked right. but u start off with 100 gold in the game. about everything is cheap i think the most expensive thing was 700 gold. but after the battle was over and after i colected my prize i saw that i had 750 gold!!! i think that is way too much gold to get so i have to either change the amount of gold u get from creeps when they die or make everything more expensive.
 
k i changed the gold amount but can u help me on how to make a modifier?
 
Sure.

Make a new integer. Called whatever. Modifier.

Add in five new creeps to your arrays. Now you will use numbers 6-10. Thats five more, right? Add in for the type, and ammount.

In the start of the creep battle, where it sets level=1, also set the modifier.

Pick how you want it. You can say, if level of triggering hero is greater than 10, set the modifier to FIVE. Else, set it to ZERO.

So when you spawn the creeps, AND announce the creep name, it will say:

creeps[level+modifier] and creep_ammount[level+modifier]
 
i no that but what i don't understnad is the modifier level thing. if the level is over 10 it will be a differnt set of creeps but what does that do to the creeps. if the level is over ten what do i say so it spawns creeps 6-10 instead of 1-5?
 
i no but do how do i tell the modifeier that the modifier 1 is the creeps 1-5 but modifier 2 is creeps 6-10. how do i do that?
 
Just like Ryoko said...
You have modifier 0 and modifier 5, so when the entering heros lvl is below 10... you set the modifier to 0 and spawn creeps[modifier + 1], [modifier + 2], [modifier + 3]...

When he is lvl 10 or higher, you set the modifier to 5 and spawn the same thing
[modifier + 1], [modifier + 2], [modifier + 3]...
 
OMG i no that. i don't no how to make it so the modifier is the first 5 numbers of the creep array or the last 5 numbers of the creep array. i no what it does and all that i just don't know how to set it.
 
Ok, in the map Ryoko sent you the trigger that starts when a player enters the creep battle looks like this:

enter creep battle
Events
Unit - A unit enters Enter Creep Battle <gen>
Conditions
(Triggering unit) Equal to (Entering unit)
((Triggering unit) is A Hero) Equal to True
Actions
Set level = 1
Unit Group - Pick every unit in (Units owned by Neutral Extra) and do (Unit Group - Pick every unit in (Units owned by Neutral Extra) and do (Unit - Explode (Picked unit)))
Quest - Display to (All players matching ((Owner of (Triggering unit)) Equal to (Matching player))) the Quest Update message: you have been enter...
Unit - Move (Entering unit) instantly to (Center of creep battle <gen>)
Destructible - Close Enter Creep Battle Gate (Horizontal) 0039 <gen>
Destructible - Close Prize Room (Vertical) 0036 <gen>
Countdown Timer - Start creepspawntimer as a One-shot timer that will expire in 20.00 seconds
Countdown Timer - Create a timer window for creepspawntimer with title (Creep level + (String(level)))
Set CreepWindow = (Last created timer window)
Trigger - Turn on Spawn Creeps <gen>

If you wanted to add the modifier thingy you would have to change the first line of actions to something like this:

Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Level of (Triggering unit)) Less than 10
Then - Actions
Set modifier = 0
Else - Actions
Set modifier = 5

Set level = (modifier + 1)


Or you dont even have to use variables:

If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Level of (Triggering unit)) Less than 10
Then - Actions
Set level = 1
Else - Actions
Set level = 6
 
I was just thinking, the top 5 biggest threads in this forum were started by darkassaisin!

and no I'm not implying anything, its just an observation...

:-)

(off topic)
 
Originally posted by sATARa
Set level = (modifier + 1)
JDFHSKF dfgjksdfhgjkdfhgklsdfhjgdf

Satara, thats going to screw up his window timer and quest message, because it uses ''level' as a string conversion.

He needs to say:

Creeps[Level+Modifer]
Creep_Ammount[Level+Modifier]

EVERYWHERE that its found.
Originally posted by sATARa
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Level of (Triggering unit)) Less than 10
Then - Actions
Set modifier = 0
Else - Actions
Set modifier = 5
Correct.

Originally posted by Darg
I was just thinking, the top 5 biggest threads in this forum were started by darkassaisin!

and no I'm not implying anything, its just an observation...

:-)

(off topic)
Yepp, I'm about to abondone this one, before doing someones work gets out of hand. I can't explain this stuff any simpler. Your not gonna learn if people keep changing your map for you.
 
well no the more it is changed the more i learn. i look back at whatu changed so i no how to do it. at the begining of the map i had way more threads than i do now (if that is possiable :D) i never knew anything about variables and now if u look at my newest map i made it so criminals r spawned from variables. i have learned so much from this map and i m still leraning more and i m almost done. in this part of it i have learned more than any in any other part of it cause in this part i do all the parts.
 
Originally posted by SD_Ryoko

He needs to say:

Creeps[Level+Modifer]
Creep_Ammount[Level+Modifier]

ok is this a set variable or what type of trigger is it?
 
after u answer the post above could u plz check my map to see if the rest of the creep battle is right? (besides the modifeiers every is added to the creep battle that i need for the modifier thing)
 
i still don't get it what do u mean by EVERYWHERE that is found?
 
Originally posted by SD_Ryoko
JDFHSKF dfgjksdfhgjkdfhgklsdfhjgdf

Satara, thats going to screw up his window timer and quest message, because it uses ''level' as a string conversion.

Oh damn... you`re right :D
Just gave your triggers a quick look, didnt really get into everything they do :P
 
Listen Dark, this tread is getting too large :D . Ill do this thing for you, n uplaod the map. K?
Can I use WE Unlimited, or do I have to stick with the regular WE?
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • Ghan Ghan:
    Real users can't really disable Javascript anymore these days.
  • Ghan Ghan:
    The internet is broken without it.
  • Ghan Ghan:
    Bot readable, not human usable.
  • The Helper The Helper:
    got it
  • The Helper The Helper:
    Happy Thursday!
  • The Helper The Helper:
    Check out the new Featured Content feature we apparently got with the forum software upgrade! https://www.thehelper.net/featured/
  • The Helper The Helper:
    Also on the bottom right side bar we now have a Trending Content Box!
    +1
  • The Helper The Helper:
    Not on the Headline News page just on the Forums page can we get that Featured and Trending on the home page?
  • Ghan Ghan:
    Since the home page is technically a forum, it now shows on all forum views. Still in the sidebar.
    +1
  • The Helper The Helper:
    Happy Friday! Hope everyone has a fantastic day and an even better weekend!
  • The Helper The Helper:
    Happy Sunday!
  • The Helper The Helper:
    I lovc that I can post webp and X links now! :)
  • The Helper The Helper:
    Happy Thursday!
  • V-SNES V-SNES:
    Happy Friday!
    +1
  • The Helper The Helper:
    we were down for a minute - think a log file or something got too big
    +1
  • Ghan Ghan:
    The alerts say it was down for a while unfortunately.
  • Ghan Ghan:
    Didn't know what was going on while I was at work.
  • Ghan Ghan:
    Disk filled up with logs. Fixed now.
    +1
  • The Helper The Helper:
    not a problem at all thanks for getting us back up
  • The Helper The Helper:
    I think the bots are finding a way to get through the anubis
  • The Helper The Helper:
    Happy Wednesday Everyone! Hope everyone has a Fantastic Day!
  • The Helper The Helper:
    Yeah, stats are showing big bot influx like 12k page views.
  • Wizard Wizard:
    :wave:
    +1
  • Ghan Ghan:
    TH changed his avatar again. 6 more weeks of summer.
    +1
  • Wizard Wizard:
    lol
    +1

The Helper Discord

Members online

No members online now.

Affiliates

Hive Workshop NUON Dome World Editor Tutorials
Back
Top