Staredit Network

Staredit Network -> UMS Assistance -> Questions About My RPG
Report, edit, etc...Posted by Devils_Angel on 2005-07-08 at 00:54:17
Okay, my RPG is a Battle Arena type (player and enemy close together brings them into a fight) at first it gos into the fight, but when i try again, it gos in then right back out. i checked the trigger and it was because i set the victory trigger to

Condition
-Player (X) brings atleast ("warrio unit") to location "Battle Arena"
-Player (X) has suffered atleast (5) deaths of any unit

i set it so when the battle starts it create 5 units in the battle arena so after the player kilss the 5 it gos back.

But i cant fight again because player (X) has already suffered the amount of deaths.

How do i fix this, can I only fix this using switches?

--> I want my RPG to be like XURU RPG, walk around run into enemy go into battle beat them then go back..i just dont know the trigger for finishing the battle
I have look at "Prophecy RPG" and the sample "Battle.scx" but both are different, one with triggers one without. In prophecy the unit you fight with is in the bottom corner and u walk aroun with a Defiler, so thats pretty easy to understand. In the Sample "Battle.scx" it uses switches and its randomized, with no units (enemies) running around, its just random

----> Sry i have sso much problems.. sad.gif im such a noob
------> But for real....Plz help me

helpsmilie.gif helpsmilie.gif
Report, edit, etc...Posted by slayer766 on 2005-07-08 at 01:00:50
You can fix this just by simply having another seperate trigger like this:


Trigger
Description:
Human Players
Conditions:
¤ Computer player has suffered at least 5 deaths of any unit
Actions:
¤ Set deaths for Computer player set to 0 for any unit
¤ Preserve Trigger


Now just replace the "Any unit" with the actual enemy units that are spawned in the battlefield. Like -

Condition:
Computer player has suffered at least 5 deaths of *Zergling*

Action:
Set deaths for computer player set to 0 for *Zergling*
Preserve Trigger

That should work, if not then just post back that it didn't work and if I still can't figure it out, someone else will. biggrin.gif
Report, edit, etc...Posted by Oo.Vic.oO on 2005-07-08 at 01:02:40
just do:

Conditions:
Player -- bring exactly 0 men to "Battle Arena"

Actions:
Set deaths for -- to 0
Preserve Trigger

Now everytime u exit the battle arena the deaths will b 0 again
Report, edit, etc...Posted by Devils_Angel on 2005-07-08 at 01:14:42
THX GUYS!!!!

w00t.gif
Report, edit, etc...Posted by slayer766 on 2005-07-08 at 02:08:58
Hey no problem man, we SEN member's are always here to help anyone who needs it. biggrin.gif

ADDITION:
The recent problem that you had it is fixed right here.

Hey man I fixed it for you. biggrin.gif But I changed it to switches because that is best worked with that sort of system ok. Now the pattern that you will have to follow would be this:

[center]Battle Trigger[/center]

Trigger
Description:
Player1
Conditions:
¤ Player1 brings exactly 1 any unit to player1 start
¤ Player8 brings at least 1 Zerg Zergling to p1 start
Actions:
¤ Set Battle 1
¤ Center view for current player at battle arena
¤ Play Battle .wav
¤ Display Text Battle
¤ Move all any unit for player 1 at location p1 start to battle arena player
¤ Disable invincibility for the player and enemy at battle arena
¤ Create enemy units at Battle arena enemy
¤ Preserve Trigger


[center]Victory Trigger[/center]

Trigger
Description:
Player1
Conditions:
¤ Player 1 brings exactly 1 unit to Battle arena
¤ Player8 brings exactly 0 any unit to Battle arena
¤ Battle 1 is set
Actions:
¤ Clear Battle 1
¤ Display Text Victory
¤ Move the players unit from battle arena
¤ Enable invicibility for player at p1 start
¤ Play Victory .wav
¤ Preserve Trigger


Now for every time that you encounter a differnet enemy just change the Zerg Zergling to the unit that you would encounter, and change the switch Battle 1 to Battle 2 and Clear Battle 1 to Clear Battle 2 and just keep that pattern going for each of the different enemy units that you would encounter.
Next Page (1)