Weapon Upgrade System and in game camera
Moderator: Cheaters
-
- Member
- Posts: 97
- Joined: June 18th, 2007, 12:45 am
Weapon Upgrade System and in game camera
Hi i also am wondering if there is a way for gui to have a weapon and then pay lets say 500 gold and change Example item to Example item (Upgraded) and be able to maybe do it another time and both of the weapons have different stats so like one has 20 damage and the other has 30damage, but that would come with the item switch. Also how would i make it in game so that the standard camera is lets say 2000 the entire time and doesnt revert to normal.
-
- Forum Staff
- Posts: 506
- Joined: August 5th, 2007, 1:38 pm
- Title: Gui Expert
- Location: *Unknown*
Re: Weapon Upgrade System and in game camera
OK, it works, however. There is no condition that checks for if hero has the item in his inventory first...If u can find out how to check for that it will be perfect.
EVENT:
Player - Player 1 (Red) types a chat message containing -up as An exact match
CONDITION:
((Triggering player) Current gold) Greater than or equal to 500
ACTION:
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
***MISSING***
Then - Actions
Unit Group - Pick every unit in (Units currently selected by (Triggering player)) and do (Actions)
Loop - Actions
Item - Remove (Item carried by (Picked unit) of type Sword Of Punishment(20))
Item - Create Sword Of Punishment(30) at (Position of (Picked unit))
Hero - Give (Last created item) to (Picked unit)
Player - Add -500 to (Triggering player) Current gold
Else - Actions
Do nothing
EVENT:
Player - Player 1 (Red) types a chat message containing -up as An exact match
CONDITION:
((Triggering player) Current gold) Greater than or equal to 500
ACTION:
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
***MISSING***
Then - Actions
Unit Group - Pick every unit in (Units currently selected by (Triggering player)) and do (Actions)
Loop - Actions
Item - Remove (Item carried by (Picked unit) of type Sword Of Punishment(20))
Item - Create Sword Of Punishment(30) at (Position of (Picked unit))
Hero - Give (Last created item) to (Picked unit)
Player - Add -500 to (Triggering player) Current gold
Else - Actions
Do nothing
-
- Member
- Posts: 97
- Joined: June 18th, 2007, 12:45 am
Re: Weapon Upgrade System and in game camera
Yea i will try it and for the item detection there are a few codes for the doubling system i have that i believe checks it. Thanks again and will report if more errors, but i would still like to know a way for a permanent higher camera whether in gui or jass.
-
- Forum Staff
- Posts: 506
- Joined: August 5th, 2007, 1:38 pm
- Title: Gui Expert
- Location: *Unknown*
Re: Weapon Upgrade System and in game camera
EVENT:
Time - Elapsed game time is 0.00 seconds
CONDITION:
None
ACTION:
Player Group - Pick every player in (All players controlled by a User player) and do (Actions)
Loop - Actions
Camera - Set (Picked player)'s camera Height Offset to 1000.00 over 0.00 seconds
If you need a test map, please, don't hesitate to ask
Time - Elapsed game time is 0.00 seconds
CONDITION:
None
ACTION:
Player Group - Pick every player in (All players controlled by a User player) and do (Actions)
Loop - Actions
Camera - Set (Picked player)'s camera Height Offset to 1000.00 over 0.00 seconds
If you need a test map, please, don't hesitate to ask
-
- Member
- Posts: 97
- Joined: June 18th, 2007, 12:45 am
Re: Weapon Upgrade System and in game camera
Alright i am testing both triggers now.
Edit: Ok the upgrader works, the ally changer works, but the camera doesnt but it doesnt help that i got another camera set for ingame, but i was wondering if you know of a -zoom system because i tried a few times before and never got it working right the best ive done is like -med which is 1600 or 2000. If you have a -zoom system that be great and thanks for all your help.
Edit: Ok the upgrader works, the ally changer works, but the camera doesnt but it doesnt help that i got another camera set for ingame, but i was wondering if you know of a -zoom system because i tried a few times before and never got it working right the best ive done is like -med which is 1600 or 2000. If you have a -zoom system that be great and thanks for all your help.
-
- Forum Staff
- Posts: 506
- Joined: August 5th, 2007, 1:38 pm
- Title: Gui Expert
- Location: *Unknown*
Re: Weapon Upgrade System and in game camera
If you are talking about a zoom system with people can type the settings they want for height elevation, call it as good as done.
[blinking]
Also, check out more of my tutorials at http://forum.wc3edit.net/gui-triggers-f ... t5868.html
If you can't download, heres the GUI
EVENT:
Player - Player 1 (Red) types a chat message containing -zoom as A substring
Player - Player 2 (Blue) types a chat message containing -zoom as A substring
Player - Player 3 (Teal) types a chat message containing -zoom as A substring
Player - Player 4 (Purple) types a chat message containing -zoom as A substring
Player - Player 5 (Yellow) types a chat message containing -zoom as A substring
--ect...
Condition:
(Substring((Entered chat string), 1, 6)) Equal to -zoom<space>
Action:
Camera - Set (Triggering player)'s camera Height Offset to (Real((Substring((Entered chat string), 7, 20)))) over 0.50 seconds
[blinking]
ZOOM TRIGGER SYSTEM
[/blinking]
Spoiler:
If you can't download, heres the GUI
EVENT:
Player - Player 1 (Red) types a chat message containing -zoom as A substring
Player - Player 2 (Blue) types a chat message containing -zoom as A substring
Player - Player 3 (Teal) types a chat message containing -zoom as A substring
Player - Player 4 (Purple) types a chat message containing -zoom as A substring
Player - Player 5 (Yellow) types a chat message containing -zoom as A substring
--ect...
Condition:
(Substring((Entered chat string), 1, 6)) Equal to -zoom<space>
Action:
Camera - Set (Triggering player)'s camera Height Offset to (Real((Substring((Entered chat string), 7, 20)))) over 0.50 seconds
You do not have the required permissions to view the files attached to this post.
-
- Member
- Posts: 97
- Joined: June 18th, 2007, 12:45 am
Re: Weapon Upgrade System and in game camera
Thanks man i will be testing it out. Also for the ally changer how do u make it so if blue comes and trys to capture reds that already captured neutral how would you do that? Also how would you make a teleporting spell that makes it so it teleports you to the control points that your team currently holds and not the ones the other team holds? and i will put your name in my map as thanks and wow i cannot believe i didnt see that lol.
-
- Forum Staff
- Posts: 506
- Joined: August 5th, 2007, 1:38 pm
- Title: Gui Expert
- Location: *Unknown*
Re: Weapon Upgrade System and in game camera
[blinking]
CAPTURE SYSTEM!
[/blinking]
Spoiler:
You do not have the required permissions to view the files attached to this post.
-
- Member
- Posts: 97
- Joined: June 18th, 2007, 12:45 am
Re: Weapon Upgrade System and in game camera
Alright i just thought the one you gave me earlier was that exact one or not because i wasnt sure. Thanks again though. If you could find a answer to the teleportation spell that be great.
-
- Forum Staff
- Posts: 506
- Joined: August 5th, 2007, 1:38 pm
- Title: Gui Expert
- Location: *Unknown*
Re: Weapon Upgrade System and in game camera
[blinking]
Please don't hesitate to ask for custom map tutorials
CAPTURE SYSTEM+TELEPORTATION!!
[/blinking]
Spoiler:
You do not have the required permissions to view the files attached to this post.