Friday, 29-Nov-2024, 4:57 AM
Logged in as Guest
Group "Guests"

WC3-4Life / Custom Hero Footies!!!

Need help with -ap command - Forum

 
  • Page 1 of 1
  • 1
Forum moderator: Vexslasher  
Need help with -ap command
THecashDate: Thursday, 15-Dec-2011, 7:07 AM | Message # 1
Grunt
Group: Users
Messages: 171
Awards: 0
Reputation: 116
Status: Offline
Hi, i need help i need with the trigger i want to make an -ap command. its currently -ar i want it so that when blue types -ap it shows up the heros in the tavern but if blue doesn't type -ap it just stays the same and the question mark will still be there

HPMM=THecash
 
CouDate: Thursday, 15-Dec-2011, 7:30 AM | Message # 2
Head Administrator
Group: Administrators
Messages: 1818
Awards: 4
Reputation: 7036
Status: Offline
Maybe this coding script will help.

[ap] -ap [/ap]




Legendary Team All Starz pack: http://chf.ucoz.com/forum/49-3291-1
 
THecashDate: Thursday, 15-Dec-2011, 7:57 AM | Message # 3
Grunt
Group: Users
Messages: 171
Awards: 0
Reputation: 116
Status: Offline
Sorry Cou i don't get that trigger

HPMM=THecash
 
VexslasherDate: Thursday, 15-Dec-2011, 2:11 PM | Message # 4
Site Manager
Group: Site Management
Messages: 644
Awards: 1
Reputation: 1744
Status: Offline
The way I would do that is pretty easy, just make 2 taverns 1 that just sells the random heroes and one that is ap heroes, when the player types -ap have a trigger that replaces the starting tavern of random heroes with the tavern with the ap heroes.

Code
AP Heroes
     Events
         Player - Player 2 (Blue) types a chat message containing -AP as An exact match
     Conditions
     Actions
         Unit Group - Pick every unit in (Units of type Tavern Random Heroes) and do (Actions)
             Loop - Actions
                 Unit - Replace (Picked unit) with a Tavern AP Heroes using The old unit's relative life and mana


 
THecashDate: Thursday, 15-Dec-2011, 7:39 PM | Message # 5
Grunt
Group: Users
Messages: 171
Awards: 0
Reputation: 116
Status: Offline
Cheers vex

Added (2011-12-15, 8:39 PM)
---------------------------------------------
Vex Still that doesnt work beacuse If i Dont type anything the -ap tavern will still be there


HPMM=THecash
 
VexslasherDate: Thursday, 15-Dec-2011, 9:46 PM | Message # 6
Site Manager
Group: Site Management
Messages: 644
Awards: 1
Reputation: 1744
Status: Offline
It does work.. just don't put the ap tavern in the actual map, just have it made..

 
THecashDate: Thursday, 15-Dec-2011, 10:03 PM | Message # 7
Grunt
Group: Users
Messages: 171
Awards: 0
Reputation: 116
Status: Offline
How am i supposed to do that. How do i not put the ap tavern in acutal map?

HPMM=THecash
 
VexslasherDate: Thursday, 15-Dec-2011, 10:18 PM | Message # 8
Site Manager
Group: Site Management
Messages: 644
Awards: 1
Reputation: 1744
Status: Offline
like don't place it in the map, just make the unit. Is this your first map?

 
a_chinese_kidDate: Thursday, 15-Dec-2011, 10:23 PM | Message # 9
Robotic Ninja
Group: Clan Members
Messages: 3952
Awards: 0
Reputation: 3157
Status: Offline
lol don't put it on the play field put it on the other parts
 
2DaYuDiEDate: Friday, 16-Dec-2011, 5:50 PM | Message # 10
Ninja
Group: Clan Members
Messages: 879
Awards: 0
Reputation: 1415
Status: Offline
Quote (Vexslasher)
like don't place it in the map, just make the unit. Is this your first map?

thats not a real question, is it? tongue
anyways...
u need to keep the question marks shops on the map and the trigger will replace em with the taverns where u can pick skills... read a tutorial of the editor if u know that few about it tongue
maybe in a few years, or in another life, u will be able to claim u made a replica of chf again smile cya then


 
  • Page 1 of 1
  • 1
Search:
Login Form
Search
Make Donation
Latest Posts










CHAT
Social Networking
Our poll - 1
Rate our map
Total of answers: 501
Stats
<
Copyright Bond009 © 2024 | Create a free website with uCoz