• 🏆 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!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

I need help on my cheat..

Status
Not open for further replies.
Level 2
Joined
May 10, 2011
Messages
5
Greetings readers. First of all, I would like to thank you for spending your time to read this post and replying (if you did).

As we all know, When ever a person types a cheat in single player mode, e.g 'whosyourdaddy', the string: 'Cheat enabled' appears instead of 'whosyourdaddy'.

First question:
Assuming that my cheat code is '-qwerty'. How do i change the text shown from:
[WorldEdit]: -qwerty
to
[WorldEdit]: Cheat Enabled!

Second question:
Assuming that Cheat code '-qwerty' gives an item to the triggered player, how do i make it send the item to the triggered player? [doesn't nessisary need to be in the inventory, can send to this 'storage' unit that can be built]
_______

Heres a W3X file... [in mediafire and attachment]

http://www.mediafire.com/download.php?skp422wt3mwa46w

Hope you can help me on my problem :)

___
i'm sorry if i posted at the wrong place or something, but i'm kinda new here, even though i joined in may 2011
 

Attachments

  • Item Cheat.w3x
    18.9 KB · Views: 47
Level 2
Joined
May 10, 2011
Messages
5
hmm. but what if the Hero is not present in the map at first? e.g like need to purchase a hero. and at the same time, the storage unit is not present? e.g requires to build storage unit?
 
When the hero enters the map, store him in the variable (by checking first if Hero[Player number of (Triggering player)] Not Equal to No unit (Unit comparison)) as Set Hero[Player number of (Triggering player)] = (Triggering unit).
If you create him under specific event, e.g. when it is purchased or trained, then go for the respective event, Unit - A unit sells a unit and set Hero[Player number of (Owner of (Sold unit))] = (Sold unit) or Unit - A unit finishes training a unit, Condition: ((Trained unit) is a Hero) Equal to True, Actions: Set Hero[Player number of (Owner of (Trained unit))] = (Trained unit).
 
Status
Not open for further replies.
Top