Help

Status
Not open for further replies.
Level 8
Joined
Jul 18, 2012
Messages
136
Hello to everyone, i have 4 things i want ask:
1. How to make a unit follows the hero after player buy it.
2. Why Jass Spells don't work on my map(if i put somethink jass triggered, map don't load).
3. How to make: when hero enter region all items inside that hero to be dropped on another region.
4. Is it possible to use tileset from more than one type at same time?
Thanks for your help.
 
1- This:
  • Hero Following
    • Events
      • Unit - A unit Sells a unit
    • Conditions
    • Actions
      • Set hero_position = (Position of hero)
      • Unit - Order (Sold unit) to Right-Click hero_position
2- Jass spells depend on the dummy units and abilities and imported models and buffs . If they don't work , Check if the trigger you've copied is enabled , or check the variables and conditions .
3- This :

  • Items dropping
    • Events
      • Unit - A unit enters RegionEntering <gen>
    • Conditions
    • Actions
      • For each (Integer randominteger) from 1 to 6, do (Actions)
        • Loop - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • ((Triggering unit) is A Hero) Equal to True
            • Then - Actions
              • Set Region_Center = (Center of RegionDropping <gen>)
              • Hero - Drop the item from slot randominteger of (Triggering unit)
              • Item - Move (Last dropped item) to Region_Center
              • Custom script: call RemoveLocation(udg_Region_Center)
            • Else - Actions
4- Sorry Explain more
 
1 works . unless you haven't set the variable 'hero' . Hero is the hero whom the unit follows . you must change that variable . Look :
  • Hero Following
    • Events
      • Unit - A unit Sells a unit
    • Conditions
    • Actions
      • Set hero = Arthas 0007 <gen>
      • Set hero_position = (Position of hero)
      • Unit - Order (Sold unit) to Right-Click hero_position
They work 100 % .
  • Items dropping
    • Events
      • Unit - A unit enters RegionEntering <gen>
    • Conditions
    • Actions
      • For each (Integer randominteger) from 1 to 6, do (Actions)
        • Loop - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • ((Entering Unit) is A Hero) Equal to True
            • Then - Actions
              • Set Region_Center = (Center of RegionDropping <gen>)
              • Hero - Drop the item from slot randominteger of (Entering Unit)
              • Item - Move (Last dropped item) to Region_Center
              • Custom script: call RemoveLocation(udg_Region_Center)
            • Else - Actions

About 2 and 4 , Explain more
 
Jonhysone read my above post.

He is asking for the unit to follow the hero not move to the heroes position. I explain how to do this in above post.

When you Right-click a unit ingame the unit will follow the clicked unit all the time . I didn't put 'Move to Position Of Hero' . It is just Right click ..........
Right-click = Follow .
There is no such trigger that has 'Follow' unit .
 
4. Of course, but the normal World Editor has a limit. Better use JNGP.

When you Right-click a unit ingame the unit will follow the clicked unit all the time . I didn't put 'Move to Position Of Hero' . It is just Right click ..........
Right-click = Follow .
There is no such trigger that has 'Follow' unit .

attachment.php
 

Attachments

  • trigger.png
    trigger.png
    25.8 KB · Views: 286
I'm using the latest version on JassNewGenPack 5.0 already, however i want to put that pet system(follow) into ORPG. However the pet follow system isint the one im searcing for, im searching for ORPG, and about the dropping items when unit enters region i can't find those actions.
 
Status
Not open for further replies.
Back
Top