| 10-09-2004, 02:31 PM | #1 |
Well currently im creating a single player game thats coming along nicely, however i have a question for a trigger. Ive seen this in a few protected open rpgs. What i want to do is limit my hero to one weapon of type. One helmet, shield, armor, etc. Could anyone upload a map with the triggers for this that i can see? Or maybe just try to explain it to me so that i could do this. Any help would be greatly appreciated, and good reputation will be left to anyone that got me to an end result. |
| 10-09-2004, 03:39 PM | #2 |
Have them with one of everything Ok so If Hero Learned Skill Blizzard then Set charges of (item) else do nothing so basically watever the hero is make him only learn a certain skill for his first ability then it will set all the item charges to 0 so u cant buy any more fr that player and then else do notjhing Or another way i know it works is Event: Map Initialization Condition: Custom Value of (the armor or watever) = to 2 Action: Hero Drop(last created item) from (the unit ur using) hope it hjelps |
| 10-09-2004, 04:27 PM | #3 |
I just submitted a tutorial to the tutorial section that does exactly this. you should be able to edit it to you're need if you know enough about triggers. |
| 10-09-2004, 07:23 PM | #4 | |
Quote:
I saw your tutorial there and seems pretty good, however i thought i might have made a trigger for this earlier today that was far less complex. I am trying to impliment this into my map im creating with a complex dialogue shopping trigger too. However its not working the way id hoped.... Im getting the message from my else actions ever time i try to buy a weapon. Even if i havent purchased a weapon yet. Maybe you can take a look at my trigger ive attached here and let me know what you think? My else actions are the ones for if i dont have enough gold to purchase the item and if i already have a weapon in my inventory. |
| 10-09-2004, 07:31 PM | #5 |
Weapon1 is probably equal to nothing.. one way to fix this would be have an item in the corner and at map initialization set Weapon1 to that. edit: and yours is simpler because it is a simpler item system. mine checks multiple things for multiple stuffs..lol stuffs.. hehe |
| 10-09-2004, 07:58 PM | #6 | |
Quote:
Well i tried to do that with setting the an item to initail value in map initialization... Now when i go to shop it doesnt restrict me from buying the cypress stick at all or any weapon for that matter.. I think its not resetting the weapon variable value to the current weapon being purchased.. Maybe you can take a look at my map? ive uploaded it. If you dont wanna its no big deal. To shop just pick the coins up in the beginning go down and to the left hall till you reach the steps. That takes you to the other area where all the shops are. all you gotta do is come within range of the weapon shop and the rest will be taken care of. |
| 10-09-2004, 08:29 PM | #7 | |
Guest | Quote:
Its not smart to distribute your map in the public send it to hm by email or else soemones gonna steal it and claim it as there own. |
| 10-09-2004, 08:59 PM | #8 | |
Quote:
alright man i took it off... well twistar if youll take a look at it let me know ill email it to you or something |
| 10-09-2004, 09:01 PM | #9 | |
Guest | Quote:
|
| 10-09-2004, 09:24 PM | #10 |
sure [email protected] i wish wc3c would give ur thier actual adress actually.. i think i know the prob. you check each thing.. so even if the conditions are met for sateemweaponsbuybuttons[1], it will do those actions, and then check santeemweaponsbuybuttons[2].. and that will obviously be false. so you will get the error msg. to fix this, in the then statement at the end put skip remaining actions. |
