• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

Help with ORPG scripts/triggs.

Status
Not open for further replies.
Level 5
Joined
Mar 19, 2008
Messages
58
First off, I would like to thank those who help me.
One question on scripts that you see in games and ORPGs. How do you make them? I need help with all sorts of triggers and scripts such as:
-name **** <- How do you make them have there name be changed?
-save/-load <- How do you make a script like that?
How do you make Objectives (F9)
How do you make heros respawn in a certain area when they die, such as when your main hero dies he has to respawn at the center of the village. <- How?
How do you make tomes and other items that permanantly give your hero an ability when he uses it?
One last question, how do you make quests from people in the game. What I mean by that is that when you talk to an NPC in the game (that has a ! above their head) all ORPGs give you a quest then, how do you do that!?
Please respond ASAP and I hope it isn't too confusing. Thanks again to those who help me.
 
Last edited:
For the creep respawn you can use a simple trigger I'll post it in a second :)

  • CreepSpawnInitialization
    • Events
      • Map initialization
    • Conditions
    • Actions
      • Unit Group - Pick every unit in (Units owned by Neutral Hostile) and do (Actions)
        • Loop - Actions
          • Set CreepCounter = (CreepCounter + 1)
          • Set CreepSpawnPoint[CreepCounter] = (Position of (Picked unit))
          • Unit - Set the custom value of (Picked unit) to CreepCounter
  • CreepSpawn
    • Events
      • Unit - A unit owned by Neutral Hostile Dies
    • Conditions
    • Actions
      • Wait 60.00 seconds
      • Unit - Create 1 (Unit-type of (Triggering unit)) for Neutral Hostile at CreepSpawnPoint[(Custom value of (Triggering unit))] facing (Random real number between 1.00 and 360.00) degrees
      • Unit - Set the custom value of (Last created unit) to (Custom value of (Triggering unit))
That will spawn creep at their death point, if you use a different player slot just change the player accordingly.

If you do not know about variables, in trigger editor you will see a yellow X up top in the toolbar click it to make custom variables.
CreepCounter is an integer variable

CreepSpawnPoint is a point variable. For this one make sure to CHECK the box that says array next to it.
 
Status
Not open for further replies.
Top