• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

How are these done? or are they possible?

Status
Not open for further replies.
Level 8
Joined
Dec 9, 2009
Messages
397
I have been working on an ORPG map and have many ideas that I have not figured out myself. I've been looking at a lot of tutorials, and many message boards and I have not found anything on these topics:

I am using all triggers and don't know JASS

1. Stat based healing
Problem, the variable you set as hero stat must be a "real" where the
variable in the set "unit hp to unit hp + Variable x 5" requires an integer.

2. Disable Patrol
I would like a unit to be able to use move to follow, but not patrol.
(I don't want an AFK player to assist in battle)

3. Item rot system
I want an item to be destroyed after sitting on the field for 5 mins, but
if someone touches it, the timer is reset.
I tried to do something with unit groups ever 60 seconds, change unit
value of item to 1, all items with unit value of 1 to 2, all items with unit
value of 3 to 4, all items with value of 4 get destroyed.
But I don't see a way to add items to unit groups.

4. Aggro system
Have some ideas, would like to see if you guys know where one is.
 
Level 12
Joined
Mar 10, 2008
Messages
869
I have been working on an ORPG map and have many ideas that I have not figured out myself. I've been looking at a lot of tutorials, and many message boards and I have not found anything on these topics:

I am using all triggers and don't know JASS

1. Stat based healing
Problem, the variable you set as hero stat must be a "real" where the
variable in the set "unit hp to unit hp + Variable x 5" requires an integer.

2. Disable Patrol
I would like a unit to be able to use move to follow, but not patrol.
(I don't want an AFK player to assist in battle)

3. Item rot system
I want an item to be destroyed after sitting on the field for 5 mins, but
if someone touches it, the timer is reset.
I tried to do something with unit groups ever 60 seconds, change unit
value of item to 1, all items with unit value of 1 to 2, all items with unit
value of 3 to 4, all items with value of 4 get destroyed.
But I don't see a way to add items to unit groups.

4. Aggro system
Have some ideas, would like to see if you guys know where one is.
It's very vaigue...

1. Integer 2 Real or Real 2 Integer.

2. Use some triggers like...
Every 5 seconds - If unit is patrolling a unit...

3. I saw an answer in a different help thread.

4. I have no idea.
 
Level 15
Joined
Aug 11, 2009
Messages
1,606
3. Item rot system
I want an item to be destroyed after sitting on the field for 5 mins, but
if someone touches it, the timer is reset.
I tried to do something with unit groups ever 60 seconds, change unit
value of item to 1, all items with unit value of 1 to 2, all items with unit
value of 3 to 4, all items with value of 4 get destroyed.
But I don't see a way to add items to unit groups.

The only thing i can think of is to make a trigger that would check when items are dropped either from heroes or creeps, then wait 5 minutes and remove them from game.You can also add an if/then/else condition to help you detect if another hero has picked it and stop his removal from game.
 
Level 8
Joined
Dec 9, 2009
Messages
397
Oh, I didn't reply to this one because I thought it was deleted. I had added it to favorites but It didn't exist when i tried going back the next day and didn't see it on list.

1. I found there was a trigger to convert real to integer and integer to real
so that problem was solved.

2. Is a unit considered an object in this event?
Unit - A unit Is issued an order targeting an object


3. Getting help in a new thread I had made after I couldn't find this one.

4. I was thinking of variable array where each skill has a point value, example
melee attack 1pt, fireball 2pt, heal 2pt, and then have a trigger for the
enemies around them to check the players unit with the highest point
value and attack it.
 
Status
Not open for further replies.
Top